Initializer

init(cvPixelBuffer:properties:options:)

Creates a filter from a Core Video pixel buffer.

Declaration

init!(cvPixelBuffer pixelBuffer: CVPixelBuffer!, properties: [AnyHashable : Any]!, options: [CIRAWFilterOption : Any]! = [:])

Parameters

pixelBuffer
properties

A properties dictionary. Defines the properties of the pixel buffer.

options

An options dictionary. You can pass any of the keys defined in RAW Image Options.

Return Value

A CIFilter object.

Discussion

The first step when working with RAW images in Core Image is to process the image using either init(imageData:options:) or init(imageURL:options:). These initializers create a CIFilter object with an outputImage which is a CIImage representation of the supplied RAW image.

See Also

Creating a Filter from a RAW Image

init!(imageData: Data!, options: [CIRAWFilterOption : Any]!)

A filter which allows the processing of RAW images

init!(imageURL: URL!, options: [CIRAWFilterOption : Any]!)

A filter which allows the processing of RAW images