Instance Method


Returns a new semantic segmentation matte instance with the specified Exif orientation applied.


func applyingExifOrientation(_ exifOrientation: CGImagePropertyOrientation) -> Self



A CGImagePropertyOrientation value expressing how the matte should be rotated or mirrored.

Return Value

A new semantic segmentation matte instance.


This method throws an invalidArgumentException if you pass an unrecognized exifOrientation.

See Also

Creating a Segmentation Matte

init(fromImageSourceAuxiliaryDataType: CFString, dictionaryRepresentation: [AnyHashable : Any])

Returns a new semantic segmentation matte instance from auxiliary image information in an image file.

func replacingSemanticSegmentationMatte(with: CVPixelBuffer) -> Self

Returns a semantic segmentation matte instance that wraps the replacement pixel buffer.

func dictionaryRepresentation(forAuxiliaryDataType: AutoreleasingUnsafeMutablePointer<NSString?>?) -> [AnyHashable : Any]?

Returns a dictionary of primitive map information to use when writing an image file with a semantic segmentation matte.