CoreImage: New Filters in iOS 14.0

iOS 14.0 recently arrived and with it, 3 new CoreImage filters:

  1. Color Absolute Difference
  2. Color Threshold
  3. Color Threshold Otsu

Unfortunately, Apple has not yet updated the CoreImage documentation to include these new filters. Instead, I’ve created a Swift playground that enumerates all of the properties of a CIFilter. Here are the results for those 3 filters:


=========================
Color Absolute Difference
=========================
[Availability]
iOS: 14
macOS: 11.0
[Categories]
Color Adjustment, Video, Interlaced, Non-Square Pixels, Still Image, Built-In
[Inputs]
Image (inputImage)
Class: CIImage
Type: Image
Description: The first input image for differencing.
Image2 (inputImage2)
Class: CIImage
Description: The second input image for differencing.
[Outputs]
outputImage

===============
Color Threshold
===============
[Availability]
iOS: 14
macOS: 11.0
[Categories]
Color Adjustment, Video, Interlaced, Non-Square Pixels, Still Image, Built-In
[Inputs]
Image (inputImage)
Class: CIImage
Type: Image
Description: The image to use as an input image. For filters that also use a background image, this is the foreground image.
Threshold (inputThreshold)
Class: NSNumber
Type: Scalar
Default: 0.5
[Outputs]
outputImage
view raw ColorThreshold.txt hosted with ❤ by GitHub

====================
Color Threshold Otsu
====================
[Availability]
iOS: 14
macOS: 11.0
[Categories]
Color Adjustment, Video, Interlaced, Non-Square Pixels, Still Image, Built-In
[Inputs]
Image (inputImage)
Class: CIImage
Type: Image
Description: The image to use as an input image. For filters that also use a background image, this is the foreground image.
[Outputs]
outputImage

I have no idea what the difference is between the Color Threshold and the Color Threshold Otsu filters. I’ll follow up if I can produce a workable demo.