Instance Method

initWithDevice:kernelWidth:kernelHeight:

Initializes a spatial 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 MPSCNNSpatialNormalization object or nil, if failure.

Discussion