Median Filter
- •
What it is
- •
a nonlinear local filter replacing a pixel with the median value in its neighborhood
- •
- •
Example
- •
the median of is , whereas the mean is
- •
- •
Use
- •
particularly useful for suppressing isolated salt-and-pepper impulses
- •
- •
- •
Implementation example
- •
OpenCV provides medianBlur with and odd kernel size
- •
- •
Related