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:
CVPixelBufferRef with one of the following RAW pixel format types:
Kcvpixelformattype_14bayer_grbg
Kcvpixelformattype_14bayer_rggb
- 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.