A filter that applies a median filter in a square region centered around each pixel in the source image.
- iOS 9.0+
- macOS 10.13+
- Mac Catalyst 13.0+
- tvOS 9.0+
- Metal Performance Shaders
MPSImage filter finds the median color value for each channel within a
kernel window surrounding the pixel of interest. It is a common means of noise reduction and also as a smoothing filter with edge preserving qualities.