<!--
{
  "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/PixelBuffer/applyMorphology(operation:destination:)-2bbx4",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:10Accelerate6vImageO11PixelBufferVAaC7Planar8VRszrlE15applyMorphology9operation11destinationyAC0G9OperationOy_s5UInt8VG_AEy_AGGtF"
  },
  "title" : "applyMorphology(operation:destination:)"
}
-->

# applyMorphology(operation:destination:)

Applies a morphology operation to an 8-bit planar pixel buffer.

```
func applyMorphology(operation: vImage.MorphologyOperation<Pixel_8>, destination: vImage.PixelBuffer<Format>)
```

## Parameters

`operation`

An enumeration that specifies the morphology operation.

`destination`

The destination pixel buffer.

## See Also

  <doc://com.apple.accelerate/documentation/Accelerate/adding-a-bokeh-effect-to-images>



---

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)