Introduction - If you have any usage issues, please Google them yourself
Median filter replaces the intensity value in each pixel by the local median taken over a local n x m processing window where is a local m x n window around the pixel (x,y) in the image g (to be processed), and MED is the median value taken over the window