applyingExifOrientation(_:)
Returns a derivative depth data object by mirroring or rotating it to the specified orientation.
Declaration
func applyingExifOrientation(_ exifOrientation: CGImagePropertyOrientation) -> SelfParameters
- exifOrientation:
The image orientation to apply to the depth data map.
Return Value
A new, transformed depth data object.
Discussion
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.