MedianFilter finds the median in × blocks centered on each pixel.
At the edges of an image, MedianFilter uses smaller neighborhoods.
MedianFilter uses neighborhoods with vertical range and horizontal range .
For multichannel images, MedianFilter replaces each pixel by a pixel in its neighborhood that has the median total intensity, averaged over all channels.
In MedianFilter, data can be an array of any rank.