Contents

thermal()

Alters the image to make it look like it was taken by a thermal camera.

Declaration

class func thermal() -> any CIFilter & CIThermal

Return Value

The modified image.

Discussion

This method applies a preconfigured set of effects that make it appear like a thermal camera captured the image.

The thermal filter uses the following property:

inputImage

An image with the type CIImage.

The following code creates a filter that adds a thermal effect to the input image:

func thermal(inputImage: CIImage ) -> CIImage {
    let thermalFilter = CIFilter.thermal()
    thermalFilter.inputImage = inputImage
    return thermalFilter.outputImage!
}

[Image]

See Also

Color Effect Filters