MPSCNNUpsampling(3) | MetalPerformanceShaders.framework | MPSCNNUpsampling(3) |
MPSCNNUpsampling
#import <MPSCNNUpsampling.h>
Inherits MPSCNNKernel.
Inherited by MPSCNNUpsamplingBilinear, and MPSCNNUpsamplingNearest.
(nonnull instancetype) - initWithDevice:
double scaleFactorX
double scaleFactorY
BOOL alignCorners
This depends on Metal.framework The MPSCNNUpsampling filter can be used to resample an existing MPSImage using a different sampling frequency for the x and y dimensions with the purpose of enlarging the size of an image.
The number of output feature channels remains the same as the number of input feature channels.
The scaleFactor must be an integer value >= 1. The default value is 1. If scaleFactor == 1, the filter acts as a copy kernel.
Nearest and bilinear variants are supported.
Standard init with default properties per filter type
Parameters:
Returns:
Reimplemented from MPSCNNKernel.
If YES, the centers of the 4 corner pixels of the input and output regions are aligned, preserving the values at the corner pixels. The default is NO.
The upsampling scale factor for the x dimension. The default value is 1.
The upsampling scale factor for the y dimension. The default value is 1.
Generated automatically by Doxygen for MetalPerformanceShaders.framework from the source code.
Mon Jul 9 2018 | Version MetalPerformanceShaders-119.3 |