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