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.