This filter implements several median type filters.
Median is a quite popular non-linear filter in image processing. Most often it is used to remove impulsive noise, like "salt & pepper" noise, "dead" and "hot" pixels, dirt on film, etc. This is because it behaves kind of "inversely" compared to linear denoisers. The more a bad pixel stands out from the surrounding area, the bigger residual it will leave with a linear filter - but the more probably it will be eliminated by the median.
The down side is that the median operation is quite slow. As an order-statistic filter, it is similar to sorting, that must be done for each pixel, so using a fast algorithm is very important. For the small medians, the algorithms of the type described in this page are used here, with some small modifications for a further slight improvement in speed. For the "Variable size" median, code from  is used. The compound filters (ArceBI, ML3D, ML3dEX) are made according to the formulas given in the corresponding work. For more info on median filtering see Wikipedia article.
- Median of the pixel with its top, bottom, left and right neighbor.
- Median of the pixel with the surrounding 8 pixels. (3x3 box)
- First, make cross5 median, then make median of the pixel with its four diagonal neighbors, and finally take the median of the pixel and the two previously calculated medians. Slightly better preserves detail than the simple medians above.
- Takes median of the pixel with 12 neighboring pixels arranged in a diamond pattern.
- Median of the pixel with the 5x5 surrounding box.
- Temporal only median of three frames. Can be used to reduce single frame time-impulsive noise like photoflash. Delays the video by 1 frame.
- Temporal only median of five frames. Can be used to reduce double frame time-impulsive noise, but the artifacts on fast moving objects are stronger than with temp3. Delays the video by 2 frames.
- Spatio-temporal multilevel median, as described by Arce. See the corresponding work. Delays the video by 1 frame.
- Spatio-temporal multilevel median, as described by Alp. See the corresponding work. Delays the video by 1 frame.
- Spatio-temporal multilevel median. Further development of ML3D by Kokaram, see the corresponding work. Delays the video by 1 frame.
- Simple spatial only median in a user selected size square box around each pixel. The effect could be described as "quasi edge preserving, corner rounding, small stuff eliminator". Or maybe just an "artsy blur".
- Selects one of the eleven algorithms
- Only active when "VarSize" type is selected. Determines the size of the square area over which the median is taken.
- ↑ Simon Perreault, Patrick Hebert: Median filtering in constant time, PDF version, HTML version
- ↑ 2.0 2.1 2.2 2.3 Anil Christopher Kokaram: Motion Picture Restoration, Ph.D. thesis
This page was last modified on 17 August 2017, at 10:30. Content is available under Creative Commons License SA 4.0
unless otherwise noted.