Class

MPSImageBox

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

Declaration

@interface MPSImageBox : MPSUnaryImageKernel

Overview

The kernel elements all have equal weight, achieving a blur effect (each result is the unweighted average of the surrounding pixels). This allows for much faster algorithms, especially for larger blur radii. The box height and width must be odd numbers.

The box blur is a separable filter and the Metal Performance Shaders framework will act accordingly to give best performance for multi-dimensional blurs.

Topics

Methods

Properties

kernelHeight

The height of the filter window. Must be an odd number.

kernelWidth

The width of the filter window. Must be an odd number.

Relationships

Inherits From

See Also

Convolution Image Filters

MPSImageConvolution

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

MPSImageMedian

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

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.