MPSCNNPoolingAverage
An average pooling filter.
Declaration
class MPSCNNPoolingAverageOverview
For each pixel in an image, the filter returns the average value of the pixels in the filter region defined by kernelWidth x kernelHeight.
When the value of the edgeMode property is set to MPSImageEdgeMode.clamp, the filtering window is shrunk to remain within the source image borders. For pixels close to the image borders, the filtering window will be smaller in order to fit inside the source image and less values will be used to compute the average value. In case the filtering window is entirely outside the source image border, the output value will be 0.