<!--
{
  "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/MorphologyOperation/erode(structuringElement:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:10Accelerate6vImageO19MorphologyOperationO5erodeyAEy_xGAC19ConvolutionKernel2DVy_xG_tcAGmlF"
  },
  "title" : "vImage.MorphologyOperation.erode(structuringElement:)"
}
-->

# vImage.MorphologyOperation.erode(structuringElement:)

Applies erosion using a structuring element.

```
case erode(structuringElement: vImage.ConvolutionKernel2D<ComponentType>)
```

---

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)