MPSCNNUpsampling(3) MetalPerformanceShaders.framework MPSCNNUpsampling(3)
NAME
MPSCNNUpsampling
SYNOPSIS
#import <MPSCNNUpsampling.h>
Inherits MPSCNNKernel.
Inherited by MPSCNNUpsamplingBilinear, and MPSCNNUpsamplingNearest.
Instance Methods
(nonnull instancetype) - initWithDevice:
Properties
double scaleFactorX
double scaleFactorY
Additional Inherited Members
Detailed Description
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.
Method Documentation
- (nonnull instancetype) initWithDevice: (nonnull id< MTLDevice >) device
Standard init with default properties per filter type
Parameters:
device The device that the filter will be used on. May not be NULL.
Returns:
A pointer to the newly initialized object. This will fail,
returning nil if the device is not supported. Devices must be
MTLFeatureSet_iOS_GPUFamily2_v1 or later.
Reimplemented from MPSCNNKernel.
Property Documentation
- scaleFactorX [read], [nonatomic], [assign]
The upsampling scale factor for the x dimension. The default value is
1.
- scaleFactorY [read], [nonatomic], [assign]
The upsampling scale factor for the y dimension. The default value is
1.
Author
Generated automatically by Doxygen for
MetalPerformanceShaders.framework from the source code.
Version MetalPerformanceShaders-Thu2Jul 13 2017 MPSCNNUpsampling(3)
Mac OS X 10.12.6 - Generated Mon Oct 30 15:08:38 CDT 2017