<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 12.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIContext/depthBlurEffectFilter(forImageData:options:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Image",
      "CoreImage"
    ],
    "preciseIdentifier" : "c:objc(cs)CIContext(im)depthBlurEffectFilterForImageData:options:"
  },
  "title" : "depthBlurEffectFilter(forImageData:options:)"
}
-->

# depthBlurEffectFilter(forImageData:options:)

Create a [`CIFilter`](/documentation/CoreImage/CIFilter-swift.class) instance for the supplied image data that can be used to apply a depth blur effect.

```
func depthBlurEffectFilter(forImageData data: Data, options: [AnyHashable : Any]? = nil) -> CIFilter?
```

## Parameters

`data`

The image file data to apply the depth blur effect to.

`options`

Reserved for future use.

## Discussion

The receiver context is used to render the image in order to get the facial landmarks used to create the effect.

---

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)