<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MetalPerformanceShaders",
  "identifier" : "/documentation/MetalPerformanceShaders/MPSCNNUpsamplingBilinear",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Metal Performance Shaders"
    ],
    "preciseIdentifier" : "c:objc(cs)MPSCNNUpsamplingBilinear"
  },
  "title" : "MPSCNNUpsamplingBilinear"
}
-->

# MPSCNNUpsamplingBilinear

A bilinear spatial upsampling filter.

```
class MPSCNNUpsamplingBilinear
```

## Overview

This filter can be used to resample an existing [`MPSImage`](/documentation/MetalPerformanceShaders/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`.

## Topics

### Initializers

[`-  initWithDevice:integerScaleFactorX:integerScaleFactorY:`](/documentation/MetalPerformanceShaders/MPSCNNUpsamplingBilinear/init(device:integerScaleFactorX:integerScaleFactorY:))

Initializes a bilinear spatial upsampling filter.

[`-  initWithDevice:integerScaleFactorX:integerScaleFactorY:alignCorners:`](/documentation/MetalPerformanceShaders/MPSCNNUpsamplingBilinear/init(device:integerScaleFactorX:integerScaleFactorY:alignCorners:))

## Relationships

### Conforms To

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`Hashable`](/documentation/Swift/Hashable)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`NSCopying`](/documentation/Foundation/NSCopying)

[`CVarArg`](/documentation/Swift/CVarArg)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Equatable`](/documentation/Swift/Equatable)

### Inherits From

[`MPSCNNUpsampling`](/documentation/MetalPerformanceShaders/MPSCNNUpsampling)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)