A container of image data and information for use in a custom image processor.
- iOS 10.0+
- macOS 10.12+
- Mac Catalyst 13.0+Beta
- tvOS 10.0+
- Core Image
Your app does not define classes that adopt this protocol; Core Image provides an object of this type when applying a custom image processor you create with a
In your image processor class'
process(with: method, use the provided
CIImage object to access the image data and supporting information to perform your custom image processing routine. For example, if you process the image using a Metal shader, use the
metal property to bind the image as an input texture. Or, if you process the image using a CPU-based routine, use the
base property to access pixel data in memory.
To finish setting up or performing your image processing routine, use the provided
CIImage object to return processed pixel data to Core Image.