ImageFilter
ImageFilter[f, image, r] applies the function f to the range-r neighborhood of each pixel in each channel of image.
Examples
Apply a mean filter to an image:
ImageFilter[Mean, image, 2]Apply a custom filter function:
ImageFilter[Max[#] - Min[#] &, image, 3]Please visit the official Wolfram Language Reference for more details.