---
title: "applyMorphology(operation:destination:)"
framework: accelerate
role: symbol
role_heading: Instance Method
path: "accelerate/vimage/pixelbuffer/applymorphology(operation:destination:)-9f8lh"
---

# applyMorphology(operation:destination:)

Applies a morphology operation to a 32-bit planar pixel buffer.

## Declaration

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

## Parameters

- `operation`: An enumeration that specifies the morphology operation.
- `destination`: The destination pixel buffer.

## See Also

### Related Documentation

- [Adding a bokeh effect to images](accelerate/adding-a-bokeh-effect-to-images.md)

### Morphology

- [applyMorphology(operation:destination:)](accelerate/vimage/pixelbuffer/applymorphology(operation:destination:)-2bbx4.md)
- [applyMorphology(operation:destination:)](accelerate/vimage/pixelbuffer/applymorphology(operation:destination:)-1wacj.md)
- [applyMorphology(operation:destination:)](accelerate/vimage/pixelbuffer/applymorphology(operation:destination:)-65xg3.md)
- [vImage.MorphologyOperation](accelerate/vimage/morphologyoperation.md)
- [vImage.StructuringElement](accelerate/vimage/structuringelement.md)
