.TH "MPSCNNUpsampling" 3 "Mon Jul 9 2018" "Version MetalPerformanceShaders-119.3" "MetalPerformanceShaders.framework" \" -*- nroff -*- .ad l .nh .SH NAME MPSCNNUpsampling .SH SYNOPSIS .br .PP .PP \fC#import \fP .PP Inherits \fBMPSCNNKernel\fP\&. .PP Inherited by \fBMPSCNNUpsamplingBilinear\fP, and \fBMPSCNNUpsamplingNearest\fP\&. .SS "Instance Methods" .in +1c .ti -1c .RI "(nonnull instancetype) \- \fBinitWithDevice:\fP" .br .in -1c .SS "Properties" .in +1c .ti -1c .RI "double \fBscaleFactorX\fP" .br .ti -1c .RI "double \fBscaleFactorY\fP" .br .ti -1c .RI "BOOL \fBalignCorners\fP" .br .in -1c .SS "Additional Inherited Members" .SH "Detailed Description" .PP This depends on Metal\&.framework The \fBMPSCNNUpsampling\fP filter can be used to resample an existing \fBMPSImage\fP using a different sampling frequency for the x and y dimensions with the purpose of enlarging the size of an image\&. .PP The number of output feature channels remains the same as the number of input feature channels\&. .PP The scaleFactor must be an integer value >= 1\&. The default value is 1\&. If scaleFactor == 1, the filter acts as a copy kernel\&. .PP Nearest and bilinear variants are supported\&. .SH "Method Documentation" .PP .SS "\- (nonnull instancetype) initWithDevice: (nonnull id< MTLDevice >) device" Standard init with default properties per filter type .PP \fBParameters:\fP .RS 4 \fIdevice\fP The device that the filter will be used on\&. May not be NULL\&. .RE .PP \fBReturns:\fP .RS 4 \fBA\fP 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\&. .RE .PP .PP Reimplemented from \fBMPSCNNKernel\fP\&. .SH "Property Documentation" .PP .SS "\- alignCorners\fC [read]\fP, \fC [nonatomic]\fP, \fC [assign]\fP" 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\&. .SS "\- scaleFactorX\fC [read]\fP, \fC [nonatomic]\fP, \fC [assign]\fP" The upsampling scale factor for the x dimension\&. The default value is 1\&. .SS "\- scaleFactorY\fC [read]\fP, \fC [nonatomic]\fP, \fC [assign]\fP" The upsampling scale factor for the y dimension\&. The default value is 1\&. .SH "Author" .PP Generated automatically by Doxygen for MetalPerformanceShaders\&.framework from the source code\&.