The image content of the frame to be processed.
Required.
SDKs
- iOS 10+
- macOS 10.12+
- Mac Catalyst 13.0+
- tvOS 10+
Framework
- Photos
Declaration
var image: CIImage { get }
Discussion
Core Image provides several ways to perform your adjustments to this image:
Create a single
CIFilter
object, or a chain of filters. Set this image as thek
parameter of the first filter in the chain, and use the last filter’sCIInput Image Key output
property to access the result. EachImage CIFilter
object can be a built-in filter or a custom filter subclass that you create.Use the
applying
method to conveniently apply one of the many built-in Core Image filters.Filter(_: parameters:) Access pixel buffers directly and apply custom image processing using a custom
CIImage
subclass.Processor Kernel
In all cases, you obtain another CIImage
object representing the result of your adjustments. Return that image from your frame
block. (See the frame
description for example code.)