Consider each release matrix matrix P and 5x5 from size calculation of the median and replace all the images in a sub with a matrix of calculated the median individual points. From left to right and from top to bottom of the picture.
Consider each sub-matrix sizes from 5x5 matrix P and calculated the median. And all the sub-pixel matrix with median was calculated by points. From left to right And from top to bottom of the image.
Consider each sub matrix size 5x5 from matrix P and calculate the median. For every pixel in the matrix and sub median calculated at points, starting from left to right and from top to bottom of the picture