CIMaskToAlpha - emcconville/cif GitHub Wiki
CIMaskToAlpha
Converts a grayscale image to a white image that is masked by alpha. The white values from the source image produce the inside of the mask; the black values become completely transparent.
- -inputImage <image> : The image to use as an input image. For filters that also use a background image, this is the foreground image.