CIDifferenceBlendMode - emcconville/cif GitHub Wiki

CIDifferenceBlendMode

Subtracts either the source image sample color from the background image sample color, or the reverse, depending on which sample has the greater brightness value. Source image sample values that are black produce no change; white inverts the background color values.

  • -inputImage <image> : The image to use as an input image. For filters that also use a background image, this is the foreground image.
  • -inputBackgroundImage <image> : The image to use as a background image.