Initializer

init(device:kernelSize:)

Initializes a normalization kernel in a channel.

Declaration

init(device: MTLDevice, kernelSize: Int)

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.