Instance Method


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


- (instancetype)depthDataByApplyingExifOrientation:(CGImagePropertyOrientation)exifOrientation;



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 kCGImagePropertyOrientationUp orientation and applies the transformation necessary to produce the orientation you specify.

See Also

Transforming and Processing

- depthDataByConvertingToDepthDataType:

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


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

- depthDataByReplacingDepthDataMapWithPixelBuffer:error:

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