MPSCNNUpsamplingBilinear(3) MetalPerformanceShaders.framework MPSCNNUpsamplingBilinear(3)

MPSCNNUpsamplingBilinear

#import <MPSCNNUpsampling.h>

Inherits MPSCNNUpsampling.


(nonnull instancetype) - initWithDevice:integerScaleFactorX:integerScaleFactorY:
(nonnull instancetype) - initWithDevice:integerScaleFactorX:integerScaleFactorY:alignCorners:

This depends on Metal.framework. Specifies the bilinear spatial upsampling filter.

- (nonnull instancetype) initWithDevice: (nonnull id< MTLDevice >) device(NSUInteger) integerScaleFactorX(NSUInteger) integerScaleFactorY

Initialize the bilinear spatial upsampling filter.

Parameters:

device The device the filter will run on.
integerScaleFactorX The upsampling factor for the x dimension.
integerScaleFactorY The upsampling factor for the y dimension.

Returns:

A valid MPSCNNUpsamplingBilinear object or nil, if failure.

- (nonnull instancetype) initWithDevice: (nonnull id< MTLDevice >) device(NSUInteger) integerScaleFactorX(NSUInteger) integerScaleFactorY(BOOL) alignCorners

Initialize the bilinear spatial upsampling filter.

Parameters:

device The device the filter will run on.
integerScaleFactorX The upsampling factor for the x dimension.
integerScaleFactorY The upsampling factor for the y dimension.
alignCorners Specifier whether the centers of the 4 corner pixels of the input and output regions are aligned, preserving the values at the corner pixels.

Returns:

A valid MPSCNNUpsamplingBilinear object or nil, if failure.

Generated automatically by Doxygen for MetalPerformanceShaders.framework from the source code.

Mon Jul 9 2018 Version MetalPerformanceShaders-119.3