Contents

init(device:centerWeight:)

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

Declaration

convenience init(device: any 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