init(device:kernelWidth:kernelHeight:)
Initializes a local contrast normalization kernel.
Declaration
init(device: any MTLDevice, kernelWidth: Int, kernelHeight: Int)Parameters
- device:
The device the kernel will run on.
- kernelWidth:
The width of the kernel.
- kernelHeight:
The height of the kernel.
Return Value
A valid MPSCNNLocalContrastNormalization object or nil, if failure.