MPSImageBox(3) | MetalPerformanceShaders.framework | MPSImageBox(3) |
MPSImageBox
#import <MPSImageConvolution.h>
Inherits MPSUnaryImageKernel.
Inherited by MPSImageTent.
(nonnull instancetype) -
initWithDevice:kernelWidth:kernelHeight:
(nullable instancetype) - initWithCoder:device:
(nonnull instancetype) - initWithDevice:
NSUInteger kernelHeight
NSUInteger kernelWidth
The MPSImageBox convolves an image with given filter of odd width and height. The kernel elements all have equal weight, achieving a blur effect. (Each result is the unweighted average of the surrounding pixels.) This allows for much faster algorithms, espcially for larger blur radii. The box height and width must be odd numbers. The box blur is a separable filter. The implementation is aware of this and will act accordingly to give best performance for multi-dimensional blurs.
NSSecureCoding compatability While the standard NSSecureCoding/NSCoding method -initWithCoder: should work, since the file can't know which device your data is allocated on, we have to guess and may guess incorrectly. To avoid that problem, use initWithCoder:device instead.
Parameters:
Returns:
Reimplemented from MPSUnaryImageKernel.
Standard init with default properties per filter type
Parameters:
Returns:
Reimplemented from MPSUnaryImageKernel.
Initialize a filter for a particular kernel size and device
Parameters:
Returns:
The height of the filter window.
The width of the filter window.
Generated automatically by Doxygen for MetalPerformanceShaders.framework from the source code.
Mon Jul 9 2018 | Version MetalPerformanceShaders-119.3 |