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, wherew = [(1/4 - a/2), 1/4, a, 1/4, (1/4 - a/2)]^Tandais the value ofcenterWeight.
Return Value
A valid MPSImagePyramid object or nil, if failure.