MPSNNCropAndResizeBilinear(3) | MetalPerformanceShaders.framework | MPSNNCropAndResizeBilinear(3) |
MPSNNCropAndResizeBilinear
#import <MPSNNResize.h>
Inherits MPSCNNKernel.
(nonnull instancetype) - initWithDevice:
(nonnull instancetype) -
initWithDevice:resizeWidth:resizeHeight:numberOfRegions:regions:
(nullable instancetype) - initWithCoder:device:
NSUInteger resizeWidth
NSUInteger resizeHeight
NSUInteger numberOfRegions
const MPSRegion * regions
This depends on Metal.framework The MPSNNCropAndResizeBilinear 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.
NSSecureCoding compatability See MPSKernel::initWithCoder.
Parameters:
Returns:
Reimplemented from MPSCNNKernel.
Standard init with default properties per filter type
Parameters:
Returns:
Reimplemented from MPSCNNKernel.
Initialize the crop and resize bilinear filter.
Parameters:
Returns:
the number of bounding box i.e. regions to resize.
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. A normalized region outside the [0, 1] range is allowed, in which case we use extrapolation_value to extrapolate the input image values.
The resize height.
The resize width.
Generated automatically by Doxygen for MetalPerformanceShaders.framework from the source code.
Mon Jul 9 2018 | Version MetalPerformanceShaders-119.3 |