.TH "MPSNNCropAndResizeBilinear" 3 "Mon Jul 9 2018" "Version MetalPerformanceShaders-119.3" "MetalPerformanceShaders.framework" \" -*- nroff -*- .ad l .nh .SH NAME MPSNNCropAndResizeBilinear .SH SYNOPSIS .br .PP .PP \fC#import \fP .PP Inherits \fBMPSCNNKernel\fP\&. .SS "Instance Methods" .in +1c .ti -1c .RI "(nonnull instancetype) \- \fBinitWithDevice:\fP" .br .ti -1c .RI "(nonnull instancetype) \- \fBinitWithDevice:resizeWidth:resizeHeight:numberOfRegions:regions:\fP" .br .ti -1c .RI "(nullable instancetype) \- \fBinitWithCoder:device:\fP" .br .in -1c .SS "Properties" .in +1c .ti -1c .RI "NSUInteger \fBresizeWidth\fP" .br .ti -1c .RI "NSUInteger \fBresizeHeight\fP" .br .ti -1c .RI "NSUInteger \fBnumberOfRegions\fP" .br .ti -1c .RI "const \fBMPSRegion\fP * \fBregions\fP" .br .in -1c .SS "Additional Inherited Members" .SH "Detailed Description" .PP This depends on Metal\&.framework The \fBMPSNNCropAndResizeBilinear\fP filter resizes the source image using bilinear interpolation to a destination whose dimensions are given by resizeWidth and resizeHeight .PP The number of output feature channels remains the same as the number of input feature channels\&. .SH "Method Documentation" .PP .SS "\- (nullable instancetype) \fBinitWithCoder:\fP (NSCoder *__nonnull) aDecoder(nonnull id< MTLDevice >) device" \fBNSSecureCoding\fP compatability See \fBMPSKernel::initWithCoder\fP\&. .PP \fBParameters:\fP .RS 4 \fIaDecoder\fP The NSCoder subclass with your serialized \fBMPSNNCropAndResizeBilinear\fP .br \fIdevice\fP The MTLDevice on which to make the \fBMPSNNCropAndResizeBilinear\fP .RE .PP \fBReturns:\fP .RS 4 \fBA\fP new \fBMPSNNResizeBilinear\fP object, or nil if failure\&. .RE .PP .PP Reimplemented from \fBMPSCNNKernel\fP\&. .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\&. .SS "\- (nonnull instancetype) \fBinitWithDevice:\fP (nonnull id< MTLDevice >) device(NSUInteger) resizeWidth(NSUInteger) resizeHeight(NSUInteger) numberOfRegions(const \fBMPSRegion\fP *__nonnull) regions" Initialize the crop and resize bilinear filter\&. .PP \fBParameters:\fP .RS 4 \fIdevice\fP The device the filter will run on\&. .br \fIresizeWidth\fP The destination resize width in pixels .br \fIresizeHeight\fP The destination resize height in pixels .br \fInumberOfRegions\fP Specifies the number of bounding box i\&.e\&. regions to resize .br \fIregions\fP This is a pointer to 'numberOfRegions' boxes which specify the locations in the source image to use for each box/region to perform the resize operation\&. .RE .PP \fBReturns:\fP .RS 4 \fBA\fP valid \fBMPSNNCropAndResizeBilinear\fP object or nil, if failure\&. .RE .PP .SH "Property Documentation" .PP .SS "\- numberOfRegions\fC [read]\fP, \fC [nonatomic]\fP, \fC [assign]\fP" the number of bounding box i\&.e\&. regions to resize\&. .SS "\- regions\fC [read]\fP, \fC [nonatomic]\fP, \fC [assign]\fP" This is a pointer to 'numberOfRegions' boxes which specify the locations in the source image to use for each box/region to perform the resize operation\&. The coordinates specified are normalized values\&. \fBA\fP normalized region outside the [0, 1] range is allowed, in which case we use extrapolation_value to extrapolate the input image values\&. .SS "\- resizeHeight\fC [read]\fP, \fC [nonatomic]\fP, \fC [assign]\fP" The resize height\&. .SS "\- resizeWidth\fC [read]\fP, \fC [nonatomic]\fP, \fC [assign]\fP" The resize width\&. .SH "Author" .PP Generated automatically by Doxygen for MetalPerformanceShaders\&.framework from the source code\&.