Documentation
|
|
The C++ interface for medfilt. More...
| array | medfilt (const array &image, const unsigned height=3, const unsigned width=3) |
| Median filtering within window (default 3x3) More... | |
The C++ interface for medfilt.
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.
| array af::medfilt | ( | const array & | image, |
| const unsigned | height = 3, |
||
| const unsigned | width = 3 |
||
| ) |