|
Median Filter. More...
Functions | |
AFAPI array | medfilt (const array &in, const dim_t wind_length=3, const dim_t wind_width=3, const borderType edge_pad=AF_PAD_ZERO) |
C++ Interface for median filter. More... | |
AFAPI af_err | af_medfilt (af_array *out, const af_array in, const dim_t wind_length, const dim_t wind_width, const af_border_type edge_pad) |
C Interface for median filter. More... | |
Median Filter.
A median filter is similar to the arbitrary filter except that instead of a weighted sum, the median value of the pixels covered by the kernel is returned.
AFAPI af_err af_medfilt | ( | af_array * | out, |
const af_array | in, | ||
const dim_t | wind_length, | ||
const dim_t | wind_width, | ||
const af_border_type | edge_pad | ||
) |
C Interface for median filter.
[out] | out | array is the processed image |
[in] | in | array is the input image |
[in] | wind_length | is the kernel height |
[in] | wind_width | is the kernel width |
[in] | edge_pad | value will decide what happens to border when running filter in their neighborhood. It takes one of the values [AF_PAD_ZERO | AF_PAD_SYM] |
AFAPI array af::medfilt | ( | const array & | in, |
const dim_t | wind_length = 3 , |
||
const dim_t | wind_width = 3 , |
||
const borderType | edge_pad = AF_PAD_ZERO |
||
) |
C++ Interface for median filter.
[in] | in | array is the input image |
[in] | wind_length | is the kernel height |
[in] | wind_width | is the kernel width |
[in] | edge_pad | value will decide what happens to border when running filter in their neighborhood. It takes one of the values [AF_PAD_ZERO | AF_PAD_SYM] |