DepthSample
A snapshot of platform depth data (e.g. LiDAR or ToF sensor) for a single frame.
Declaration
data class DepthSampleConstructors
constructor(depthData: FloatArray, confidenceData: ByteArray?, width: Int, height: Int, intrinsics: CameraIntrinsics?)
Parameters
| Name | Type | Summary |
|---|---|---|
| depthData | FloatArray | - |
| confidenceData | ByteArray? | - |
| width | Int | - |
| height | Int | - |
| intrinsics | CameraIntrinsics? | - |
Properties
| Name | Type | Summary |
|---|---|---|
| confidenceData | ByteArray? | Per-pixel confidence as UInt8, same dimensions as [depthData]. Null if unavailable. |
| depthData | FloatArray | Depth buffer as Float32 values in metres, row-major. |
| height | Int | Height of the depth image in pixels. |
| intrinsics | CameraIntrinsics? | Depth camera intrinsics. When null, the native layer falls back to scaled camera intrinsics. |
| width | Int | Width of the depth image in pixels. |