<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/vImage/EdgeMode",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:10Accelerate6vImageO8EdgeModeO"
  },
  "title" : "vImage.EdgeMode"
}
-->

# vImage.EdgeMode

Constants that specify edge modes for convolution operations.

```
enum EdgeMode<PixelType>
```

## Topics

### Enumeration Cases

[`case copyInPlace`](/documentation/Accelerate/vImage/EdgeMode/copyInPlace)

An edge mode that copies the value of the edge pixel in the source to the destination.

[`case extend`](/documentation/Accelerate/vImage/EdgeMode/extend)

An edge mode that extends the edges of the image infinitely.

[`case fill(backgroundColor: PixelType)`](/documentation/Accelerate/vImage/EdgeMode/fill(backgroundColor:))

An edge mode that uses the background color for missing pixels.

[`case truncateKernel`](/documentation/Accelerate/vImage/EdgeMode/truncateKernel)

An edge mode that uses only the part of the kernel that overlaps the image.



---

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)