Instance Method

initWithDevice:kernelSize:

Initializes a normalization kernel in a channel.

Declaration

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

Parameters

device

The device the filter will run on.

kernelSize

The size of the kernel, in both x and y dimensions.

Return Value

A valid MPSCNNCrossChannelNormalization object or nil, if failure.