Instance Method


Returns a derivative depth data object by mirroring or rotating it to the specified orientation.


func applyingExifOrientation(_ exifOrientation: CGImagePropertyOrientation) -> Self



The image orientation to apply to the depth data map.

Return Value

A new, transformed depth data object.


When applying simple 90-degree rotation or mirroring edits to media containing depth data, you may use this method to create a derivative copy of the depth in which the specified orientation is applied to both the underlying pixel map data and the camera calibration data. This method throws an exception if you pass an unrecognized exifOrientation value.

A depth data object does not contain orientation metadata; this method assumes the data is in the default CGImagePropertyOrientation.up orientation and applies the transformation necessary to produce the orientation you specify.

See Also

Transforming and Processing

func converting(toDepthDataType: OSType) -> Self

Returns a derivative depth data object by converting the depth data map to the specified data type.

var availableDepthDataTypes: [NSNumber]

The list of depth data formats to which this depth data can be converted.

func replacingDepthDataMap(with: CVPixelBuffer) -> Self

Returns a derivative depth data object by replacing the depth data map.