Type Method

apply(withExtent:inputs:arguments:)

Method to override when applying a custom image processor kernel to an image and returning the result.

Declaration

class func apply(withExtent extent: CGRect, inputs: [CIImage]?, arguments args: [String : Any]?) throws -> CIImage

Parameters

extent

The extent of the image to which to apply the kernel.

input

The input source image to process.

args

Dictionary of arguments mapping keys such as "thresholdValue" to their values.

error

Pointer to the NSError object into which processing errors will be written.

Return Value

The output image resulting from applying the custom image processor kernel.

Discussion

Applies a custom image processor kernel to an image.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software