ETRI IVCL 1.0.0
Acceleration SW Platform for Ondevice
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions | Variables
wmf.cl File Reference

Functions

__kernel void wmf (__global ushort *input, __global ushort *output, int width)
 
__kernel void weightedMedianFilter (__global ushort *input, __global ushort *output, int width)
 

Variables

__constant sampler_t sampler = CLK_FILTER_NEAREST | CLK_NORMALIZED_COORDS_FALSE | CLK_ADDRESS_CLAMP_TO_EDGE
 
__constant float kernel_wmf [25]
 Assumes Kernel is 5x5; weighted median; sum = 45. More...
 
__constant float kernel_mf [25]
 Assumes Kernel is 5x5; not a weighted mean filter; sum = 37. More...
 

Function Documentation

◆ weightedMedianFilter()

__kernel void weightedMedianFilter ( __global ushort *  input,
__global ushort *  output,
int  width 
)

Weighted Median Filter
perform partial bitonic sort to find current channel median

◆ wmf()

__kernel void wmf ( __global ushort *  input,
__global ushort *  output,
int  width 
)

Weighted Median Filter

Variable Documentation

◆ kernel_mf

__constant float kernel_mf[25]
Initial value:
=
{
1, 1, 1, 1, 1,
1, 2, 2, 2, 1,
1, 2, 5, 2, 1,
1, 2, 2, 2, 1,
1, 1, 1, 1, 1 }

Assumes Kernel is 5x5; not a weighted mean filter; sum = 37.

◆ kernel_wmf

__constant float kernel_wmf[25]
Initial value:
=
{
1, 1, 1, 1, 1,
2, 2, 2, 2, 2,
3, 3, 3, 3, 3,
2, 2, 2, 2, 2,
1, 1, 1, 1, 1 }

Assumes Kernel is 5x5; weighted median; sum = 45.

◆ sampler

__constant sampler_t sampler = CLK_FILTER_NEAREST | CLK_NORMALIZED_COORDS_FALSE | CLK_ADDRESS_CLAMP_TO_EDGE