Nonlinear Filtering |
Nonlinear filtering is based on a logical decomposition of a filter into a set of relatively simple operators.
Filter size: Define the size of the kernel.
Filter shape:
x | x | x |
x | x | x |
x | x | x |
|
Then the overall (non-separable) median value is 5, while the separable median is equal to the median of the three row medians: median (1, 2, 3) = 2, median(5, 6, 7) = 6, and median(4, 8, 9) = 8, yielding an overall median of 6. |
x | ||
x | x | x |
x |
x | x | |
x | ||
x | x |
A median filter is based upon moving a window over an image (as in a convolution) and computing the output pixel as the median value of the pixel intensities within the input window. The effect is that noise is removed while the position of edges is preserved. The median filter is very efficient for the removal of impulse noise (also known as binary noise).
This filter is similar to the median filter, except that it computes the output pixel as the minimum value.
This filter is similar to the median filter, except that it computes the output pixel as the maximum value.
The kuwahara filter is an edge preserving blur filter as the median filter. It works by calculating the mean and variance for four subquadrants, and chooses the mean value for the region with the smallest variance.
See also: