Instance Method

dictionaryRepresentation(forAuxiliaryDataType:)

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

Declaration

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

Parameters

outAuxDataType

On output, the auxiliary data type to be used when calling the ImageIO framework’s CGImageDestinationAddAuxiliaryDataInfo(_:_:_:) function. Currently supported auxiliary data types are enumerated in CGImageProperties.

Return Value

A dictionary of CGImageDestination-compatible semantic segmentation matte information, or nil if the auxiliary data type is unsupported.

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 applyingExifOrientation(CGImagePropertyOrientation) -> Self

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