MPSImageGaussianBlur(3) | MetalPerformanceShaders.framework | MPSImageGaussianBlur(3) |
MPSImageGaussianBlur
#import <MPSImageConvolution.h>
Inherits MPSUnaryImageKernel.
(nonnull instancetype) - initWithDevice:sigma:
(nullable instancetype) - initWithCoder:device:
(nonnull instancetype) - initWithDevice:
float sigma
The MPSImageGaussianBlur convolves an image with gaussian of given sigma in both x and y direction.
The MPSImageGaussianBlur utilizes a very fast algorith that typically runs at approximately
1/2 of copy speeds. Notably, it is faster than either the tent or box blur except perhaps
for very large filter windows. Mathematically, it is an approximate gaussian. Some
non-gaussian behavior may be detectable with advanced analytical methods such as FFT.
If a analytically clean gaussian filter is required, please use the MPSImageConvolution
filter instead with an appropriate set of weights. The MPSImageGaussianBlur is intended
to be suitable for all common image processing needs demanding ~10 bits of precision or
less.
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 gaussian blur filter for a particular sigma and device
Parameters:
Returns:
Read-only sigma value with which filter was created
Generated automatically by Doxygen for MetalPerformanceShaders.framework from the source code.
Mon Jul 9 2018 | Version MetalPerformanceShaders-119.3 |