A filter that resamples an existing MPS image.
SDKs
- iOS 11.0+
- macOS 10.13+
- Mac Catalyst 13.0+
- tvOS 11.0+
Framework
- Metal Performance Shaders
Declaration
@interface MPSCNNUpsampling : MPSCNNKernel
Overview
This filter can be used to resample an existing MPSImage
using a different sampling frequency for the x
and y
dimensions with the purpose of enlarging the size of an image.
The number of output feature channels remains the same as the number of input feature channels.
The scaleFactor must be an integer value >= 1
. The default value is 1
.
Nearest and bilinear variants are supported.