---
title: MPSCNNUpsampling
framework: metalperformanceshaders
role: symbol
role_heading: Class
path: metalperformanceshaders/mpscnnupsampling
---

# MPSCNNUpsampling

A filter that resamples an existing MPS image.

## Declaration

```swift
class MPSCNNUpsampling
```

## Overview

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.

## Topics

### Instance Properties

- [scaleFactorX](metalperformanceshaders/mpscnnupsampling/scalefactorx.md)
- [scaleFactorY](metalperformanceshaders/mpscnnupsampling/scalefactory.md)
- [alignCorners](metalperformanceshaders/mpscnnupsampling/aligncorners.md)

## Relationships

### Inherits From

- [MPSCNNKernel](metalperformanceshaders/mpscnnkernel.md)

### Inherited By

- [MPSCNNUpsamplingBilinear](metalperformanceshaders/mpscnnupsamplingbilinear.md)
- [MPSCNNUpsamplingNearest](metalperformanceshaders/mpscnnupsamplingnearest.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Upsampling Layers

- [MPSCNNUpsamplingBilinear](metalperformanceshaders/mpscnnupsamplingbilinear.md)
- [MPSCNNUpsamplingNearest](metalperformanceshaders/mpscnnupsamplingnearest.md)
- [MPSCNNUpsamplingBilinearGradient](metalperformanceshaders/mpscnnupsamplingbilineargradient.md)
- [MPSCNNUpsamplingGradient](metalperformanceshaders/mpscnnupsamplinggradient.md)
- [MPSCNNUpsamplingNearestGradient](metalperformanceshaders/mpscnnupsamplingnearestgradient.md)
