depthBlurEffectFilter(forImageURL:options:)
Create a Cifilter Swift.class instance for the supplied image URL that can be used to apply a depth blur effect.
Declaration
func depthBlurEffectFilter(forImageURL url: URL, options: [AnyHashable : Any]? = nil) -> CIFilter?Parameters
- url:
The URL location of the image 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.
See Also
Creating Depth Blur Filters
depthBlurEffectFilter(for:disparityImage:portraitEffectsMatte:hairSemanticSegmentation:glassesMatte:gainMap:orientation:options:)depthBlurEffectFilter(for:disparityImage:portraitEffectsMatte:hairSemanticSegmentation:orientation:options:)depthBlurEffectFilter(for:disparityImage:portraitEffectsMatte:orientation:options:)depthBlurEffectFilter(forImageData:options:)