replacingDepthDataMap(with:)
Returns a derivative depth data object by replacing the depth data map.
Declaration
func replacingDepthDataMap(with pixelBuffer: CVPixelBuffer) throws -> SelfParameters
- pixelBuffer:
A pixel buffer containing depth or disparity information in a compatible format.
Return Value
A new depth data object containing the pixel buffer.
Discussion
If you apply simple transforms to media containing depth data, you can use the applyingExifOrientation(_:) method to apply parallel transforms to the corresponding depth data. More complex transforms and edits require creating a derivative depth map reflecting whatever edits you make to the corresponding image. In such cases, use this replacingDepthDataMap(with:) method to create a derivative depth data object.