Documentation
|
|
Apply a median filter to an image. More...
Modules | |
| medfilt | |
| The C++ interface for medfilt. | |
| af_medfilt | |
| The C interface for medfilt. | |
Apply a median filter to an image.
Apply a median filter of a given size to an image. 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.
For instance, if we apply a median filter to an simple sequential image:
This example highlights that pixels outside the image are treated as zeros. So, for the first pixel, the neighborhood looks like:
the median of which is zero.