MPSNNScaleNode(3) MetalPerformanceShaders.framework MPSNNScaleNode(3)

MPSNNScaleNode

#import <MPSNNGraphNodes.h>

Inherits MPSNNFilterNode.

Inherited by MPSNNBilinearScaleNode, and MPSNNLanczosScaleNode.


(nonnull instancetype) - initWithSource:outputSize:
(nonnull instancetype) - initWithSource:transformProvider:outputSize:


(nonnull instancetype) + nodeWithSource:outputSize:
(nonnull instancetype) + nodeWithSource:transformProvider:outputSize:

- (nonnull instancetype) initWithSource: (MPSNNImageNode *__nonnull) sourceNode(MTLSize) size

init a node to convert a MPSImage to the desired size

Parameters:

sourceNode A valid MPSNNImageNode
size The size of the output image {width, height, depth}

- (nonnull instancetype) initWithSource: (MPSNNImageNode *__nonnull) sourceNode(__nullable id< MPSImageTransformProvider >) transformProvider(MTLSize) size

init a node to convert a MPSImage to the desired size for a region of interest

Parameters:

sourceNode A valid MPSNNImageNode
transformProvider If non-nil, a valid MPSImageTransformProvider that provides the region of interest
size The size of the output image {width, height, depth}

+ (nonnull instancetype) nodeWithSource: (MPSNNImageNode *__nonnull) sourceNode(MTLSize) size

create an autoreleased node to convert a MPSImage to the desired size

Parameters:

sourceNode A valid MPSNNImageNode
size The size of the output image {width, height, depth}

+ (nonnull instancetype) nodeWithSource: (MPSNNImageNode *__nonnull) sourceNode(__nullable id< MPSImageTransformProvider >) transformProvider(MTLSize) size

create an autoreleased node to convert a MPSImage to the desired size for a region of interest

Parameters:

sourceNode A valid MPSNNImageNode
transformProvider If non-nil, a valid MPSImageTransformProvider that provides the region of interest
size The size of the output image {width, height, depth}

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

Mon Jul 9 2018 Version MetalPerformanceShaders-119.3