Initializer

init(device:)

Initializes a downwards 5-tap image pyramid with the default filter kernel and device.

Declaration

convenience init(device: MTLDevice)

Parameters

device

The device the filter will run on.

Return Value

A valid MPSImagePyramid object or nil, if failure.

Discussion

The filter kernel is the outer product of w = [1/16, 1/4, 3/8, 1/4, 1/16]^T, with itself.

See Also

Methods

init(device: MTLDevice, centerWeight: Float)

Initialize a downwards 5-tap image pyramid with a central weight parameter and device.

init(device: MTLDevice, kernelWidth: Int, kernelHeight: Int, weights: UnsafePointer<Float>)

Initialize a downwards n-tap image pyramid with a custom filter kernel and device.