kCIImageRepresentationPortraitEffectsMatteImage

Static kCIImageRepresentationPortraitEffectsMatteImage 

Source
pub unsafe static kCIImageRepresentationPortraitEffectsMatteImage: &'static CIImageRepresentationOption
Available on crate feature CIContext only.
Expand description

An optional key and value to save a portrait matte channel to a JPEG or HEIF.

The value for this key needs to be a portrait matte CIImage instance where black pixels represent the background region and white pixels represent the primary people in the image. The image will be converted to monochrome before it is saved to the JPEG or HEIF.

See also Apple’s documentation