MPSNNResizeBilinear(3) MetalPerformanceShaders.framework MPSNNResizeBilinear(3)

MPSNNResizeBilinear

#import <MPSNNResize.h>

Inherits MPSCNNKernel.


(nonnull instancetype) - initWithDevice:
(nonnull instancetype) - initWithDevice:resizeWidth:resizeHeight:alignCorners:
(nullable instancetype) - initWithCoder:device:


NSUInteger resizeWidth
NSUInteger resizeHeight
BOOL alignCorners

This depends on Metal.framework The MPSNNResizeBilinear filter resizes the source image using bilinear interpolation to a destination whose dimensions are given by resizeWidth and resizeHeight

The number of output feature channels remains the same as the number of input feature channels.

- (nullable instancetype) initWithCoder: (NSCoder *__nonnull) aDecoder(nonnull id< MTLDevice >) device

NSSecureCoding compatability See MPSKernel::initWithCoder.

Parameters:

aDecoder The NSCoder subclass with your serialized MPSNNResizeBilinear
device The MTLDevice on which to make the MPSNNResizeBilinear

Returns:

A new MPSNNResizeBilinear object, or nil if failure.

Reimplemented from MPSCNNKernel.

- (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.

- (nonnull instancetype) initWithDevice: (nonnull id< MTLDevice >) device(NSUInteger) resizeWidth(NSUInteger) resizeHeight(BOOL) alignCorners

Initialize the resize bilinear filter.

Parameters:

device The device the filter will run on.
resizeWidth The destination resize width in pixels
resizeHeight The destination resize height in pixels
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 MPSNNResizeBilinear object or nil, if failure.

- alignCorners [read], [nonatomic], [assign]

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.

- resizeHeight [read], [nonatomic], [assign]

The resize height.

- resizeWidth [read], [nonatomic], [assign]

The resize width.

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

Mon Jul 9 2018 Version MetalPerformanceShaders-119.3