A normalization kernel applied across feature channels.
- iOS 10.0+
- macOS 10.13+
- Mac Catalyst 13.0+
- tvOS 10.0+
- Metal Performance Shaders
The normalization kernel applies the kernel to a local region across nearby feature channels, but with no spatial extent (i.e., they have the shape
kernel size x 1 x 1). The normalized output is given by the function:
Where the normalizing factor is:
N is the kernel size. The window
Q(k) itself is defined as:
It is your responsibility to ensure that the combination of the values of the
alpha properties does not result in a situation where the denominator becomes zero - in such situations the resulting pixel-value is undefined.