MPSImagePyramid(3) | MetalPerformanceShaders.framework | MPSImagePyramid(3) |
MPSImagePyramid
#import <MPSImageConvolution.h>
Inherits MPSUnaryImageKernel.
Inherited by MPSImageGaussianPyramid, and MPSImageLaplacianPyramid.
(nonnull instancetype) - initWithDevice:
(nonnull instancetype) - initWithDevice:centerWeight:
(nonnull instancetype) -
initWithDevice:kernelWidth:kernelHeight:weights:
(nullable instancetype) - initWithCoder:device:
NSUInteger kernelHeight
NSUInteger kernelWidth
The MPSImagePyramid is a base class for creating different kinds of pyramid images
Currently supported pyramid-types are:
@ref MPSImageGaussianPyramid
The Gaussian image pyramid kernel is enqueued as a in-place operation using
@ref MPSUnaryImageKernel::encodeToCommandBuffer:inPlaceTexture:fallbackCopyAllocator:
and all mipmap levels after level=1, present in the provided image are filled using
the provided filtering kernel. The fallbackCopyAllocator parameter is not used.
The Gaussian image pyramid filter ignores @ref clipRect and @ref offset and fills
the entire mipmap levels.
Note:
Recall the size of the nth mipmap level:
w_n = max(1, floor(w_0 / 2^n)) h_n = max(1, floor(h_0 / 2^n)),
where w_0, h_0 are the zeroth level width and height. ie the image dimensions
themselves.
NSSecureCoding compatability See MPSKernel::initWithCoder.
Parameters:
Returns:
Reimplemented from MPSUnaryImageKernel.
Initialize a downwards 5-tap image pyramid with the default filter kernel and device
Parameters:
The filter kernel is the outer product of w = [ 1/16, 1/4, 3/8, 1/4, 1/16 ]^T, with itself
Returns:
Reimplemented from MPSUnaryImageKernel.
Initialize a downwards 5-tap image pyramid with a central weight parameter and device
Parameters:
Returns:
Initialize a downwards n-tap pyramid with a custom filter kernel and device
Parameters:
Returns:
The height of the filter window. Must be an odd number.
The width of the filter window. Must be an odd number.
Generated automatically by Doxygen for MetalPerformanceShaders.framework from the source code.
Mon Jul 9 2018 | Version MetalPerformanceShaders-119.3 |