Instance Method

dictionaryRepresentationForAuxiliaryDataType:

Returns a dictionary representation of the depth data suitable for writing into an image file.

Declaration

- (NSDictionary *)dictionaryRepresentationForAuxiliaryDataType:(NSString * _Nullable *)outAuxDataType;

Parameters

outAuxDataType

On output, either kCGImageAuxiliaryDataTypeDisparity or kCGImageAuxiliaryDataTypeDepth, depending on the depth data's type.

Discussion

When using CGImageDestination functions to write depth data (along with image data) to a HEIF, JPEG, or DNG file, you can use this method to obtain a dictionary of primitive depth map information, then use the CGImageDestinationAddAuxiliaryDataInfo function to embed that data into the output file.

See Also

Creating Depth Data

Creating Auxiliary Depth Data Manually

Generate a depth image and attach it to your own image.

+ depthDataFromDictionaryRepresentation:error:

Creates a depth data object from depth information such as that found in an image file.