Initializer

init(device:centerWeight:)

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

Declaration

convenience init(device: MTLDevice, centerWeight: Float)

Parameters

device

The device the filter will run on.

centerWeight

Defines the form of the filter kernel through the outer product ww^T, where w = [(1/4 - a/2), 1/4, a, 1/4, (1/4 - a/2)]^T and a is the value of centerWeight.

Return Value

A valid MPSImagePyramid object or nil, if failure.

See Also

Methods

init(device: MTLDevice)

Initializes a downwards 5-tap image pyramid with the default filter kernel 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.