MEDIAN FILTER
Median filter is a non linear filter which replace the intensity value with the median of the neighborhood. Note that this is not a liner filter because
So with a neighborhood like this:
The median value is the value in the middle of the range ()
The median filter is good at removing impulse noise from an image as the noise point frequently fall into the higher or lower range, is not good at managing gaussian noise cause it does not introduce new values