performs median filtering of the matrix
A in two dimensions. Each output pixel contains the median
value in the M-by-N neighborhood around the corresponding
pixel in the input image. medfilt2 pads the image with zeros
on the edges, so the median values for the points within
[M N]/2 of the edges may appear distorted.