Type Method

filterWithCVPixelBuffer:properties:options:

Creates a filter from a Core Video pixel buffer.

Declaration

+ (CIFilter *)filterWithCVPixelBuffer:(CVPixelBufferRef)pixelBuffer properties:(NSDictionary *)properties options:(NSDictionary<CIRAWFilterOption, id> *)options;

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 filterWithImageData:options: or filterWithImageURL: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

+ filterWithImageData:options:

A filter which allows the processing of RAW images

+ filterWithImageURL:options:

A filter which allows the processing of RAW images