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.
C Interface for median filter.
- Parameters
-
[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] |
- Returns
- AF_SUCCESS if the median filter is applied successfully, otherwise an appropriate error code is returned.
C++ Interface for median filter.
- Parameters
-
[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] |
- Returns
- the processed image
- Examples:
- adaptive_thresholding.cpp, and filters.cpp.