Instance Method

initWithDevice:kernelWidth:kernelHeight:

Initializes a local contrast normalization kernel.

Declaration

- (instancetype)initWithDevice:(id<MTLDevice>)device kernelWidth:(NSUInteger)kernelWidth kernelHeight:(NSUInteger)kernelHeight;

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.

Discussion

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software