Depth
A Depth frame, captured by a CameraDepthFrameOutput or embedded in a Photo (Photo.depth).
Like a Frame, a Depth must be disposed as soon as possible, otherwise the producing pipeline might stall. It is AutoCloseable, so it can be used with use { }.
Properties
The DepthPixelFormats this Depth can be converted to. May be empty if conversion is not supported.
The number of bytes per row of the underlying pixel buffer.
The CameraCalibrationData of this Depth, if available. iOS only.
The measurement accuracy of this Depth.
The quality classification of this Depth.
Whether the depth map has been filtered (smoothed) by the platform.
Whether this Depth frame is mirrored along the vertical axis.
The rotation of this Depth relative to the output orientation. Depth data is not rotated to CameraOrientation.UP, because physically rotating buffers is expensive: rotate it yourself, or with rotate.
The DepthPixelFormat of this Depth frame's data.
Functions
Returns a new Depth frame converted to the given pixelFormat, one of availableDepthPixelFormats. The result must be disposed too. This runs synchronously, on the calling thread.
Converts a point in camera sensor coordinates to this Depth's coordinates.
Converts a point in this Depth's coordinates to camera sensor coordinates.
Gets this Depth's data, as a copy.
Gets a NativeBuffer to this Depth's native platform buffer. The returned buffer must be NativeBuffer.released, otherwise the pipeline might stall.
Returns a new Depth frame, rotated to the given orientation and optionally mirrored. The result must be disposed too. This runs synchronously, on the calling thread.