A filter which allows the processing of RAW images
- iOS 10.0+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 10.0+
- Core Image
The location of a RAW image file.
An options dictionary. You can pass any of the keys defined in RAW Image Options.
The first step when working with RAW images in Core Image is to process the image using either
filter. These initializers create a
CIFilter object with an
output which is a
CIImage representation of the supplied RAW image.
The newly created filter object allows you fine control over the image processing that isn't available when working with processed images such a JPEG. The following listing shows how to create a Core Image filter based on a URL named
image. The image is processed so that its neutral temperature is set to 2,000 Kelvin (giving a blue tint) and its baseline exposure doubled. Finally, a Core Image vignette filter is applied to the processed image in the same way it would be with any other source image: