Class

MPSImageMedian

A filter that applies a median filter in a square region centered around each pixel in the source image.

Declaration

@interface MPSImageMedian : MPSUnaryImageKernel

Overview

An MPSImageMedian filter finds the median color value for each channel within a kernelDiameter * kernelDiameter window surrounding the pixel of interest. It is a common means of noise reduction and also as a smoothing filter with edge preserving qualities.

Topics

Methods

- initWithDevice:kernelDiameter:

Initializes a filter for a particular kernel size and device.

+ maxKernelDiameter

Queries the maximum diameter, in pixels, of the filter window supported by the median filter.

+ minKernelDiameter

Queries the minimum diameter, in pixels, of the filter window supported by the median filter.

Properties

kernelDiameter

The diameter, in pixels, of the filter window.

Relationships

Inherits From

See Also

Convolution Image Filters

MPSImageConvolution

A filter that convolves an image with a given kernel of odd width and height.

MPSImageBox

A filter that convolves an image with a given kernel of odd width and height.

MPSImageTent

A filter that convolves an image with a tent filter.

MPSImageGaussianBlur

A filter that convolves an image with a Gaussian blur of a given sigma in both the x and y directions.

MPSImageGaussianPyramid

A filter that convolves an image with a Gaussian pyramid.

MPSImageSobel

A filter that convolves an image with the Sobel operator.

MPSImageLaplacian

An optimized Laplacian filter, provided for ease of use.

MPSImageLaplacianPyramid

A filter that convolves an image with a Laplacian filter.

MPSImageLaplacianPyramidAdd

A filter that convolves an image with an additive Laplacian pyramid.

MPSImageLaplacianPyramidSubtract

A filter that convolves an image with a subtractive Laplacian pyramid.

MPSImagePyramid

A base class for creating different kinds of pyramid images.