MaxFilter finds the maximum in × blocks centered on each pixel.
At the edges of an image, MaxFilter uses smaller neighborhoods.
MaxFilter uses neighborhoods with vertical range and horizontal range .
For multichannel images, MaxFilter replaces each pixel by a pixel in its neighborhood that has the maximum total intensity, averaged over all channels.