A filter that calculates the sum of squared pixels over a specified region in an image.
- iOS 9.0+
- macOS 10.13+
- Mac Catalyst 13.0+
- tvOS 9.0+
- Metal Performance Shaders
The value at each position is the sum of all squared pixels in a source image rectangle,
sumListing 1 shows the pseudocode used to calculate
If the channels in the source image are normalized, half-float or floating values, the destination image is recommended to be a 32-bit floating-point image. If the channels in the source image are integer values, it is recommended that an appropriate 32-bit integer image destination format is used.