Instance Method

converting(toDepthDataType:)

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

Declaration

func converting(toDepthDataType depthDataType: OSType) -> Self

Parameters

depthDataType

The data type to convert to. This value must be one of the formats present in the availableDepthDataTypes array.

Return Value

A new, converted depth data object.

Discussion

This method raises an exception if you pass an invalid depthDataType value.

See Also

Transforming and Processing

func applyingExifOrientation(CGImagePropertyOrientation) -> Self

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

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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software