ARDK for Android/com.nianticlabs.ardk/DepthBuffer
DepthBuffer
data class DepthBuffer(val frameId: Long, val timestampMs: Long, val pose: Pose, val intrinsics: CameraIntrinsics, val orientation: Orientation, val disparityMin: Float, val disparityMax: Float, val image: FloatArray, val imageWidth: Int, val imageHeight: Int)
Depth result from ARDK's Depth System after computing disparity.
See also
| ARDK.GetLatestDepth |
| ARDK.GetLatestDepthParams |
Constructors
| DepthBuffer | [androidJvm] constructor(frameId: Long, timestampMs: Long, pose: Pose, intrinsics: CameraIntrinsics, orientation: Int, disparityMin: Float, disparityMax: Float, image: FloatArray, imageWidth: Int, imageHeight: Int)constructor(frameId: Long, timestampMs: Long, pose: Pose, intrinsics: CameraIntrinsics, orientation: Orientation, disparityMin: Float, disparityMax: Float, image: FloatArray, imageWidth: Int, imageHeight: Int) |
Properties
| Name | Summary |
|---|---|
| disparityMax | [androidJvm] val disparityMax: Float The maximum disparity value of the depth image. |
| disparityMin | [androidJvm] val disparityMin: Float The minimum disparity value of the depth image. |
| frameId | [androidJvm] val frameId: Long The unique identifier for the depth frame. |
| image | [androidJvm] val image: FloatArray The depth image. Each pixel contains the estimated disparity value from 0 to 1. The image size is \ref imageWidth x \ref imageHeight. |
| imageHeight | [androidJvm] val imageHeight: Int The height of the depth image. |
| imageWidth | [androidJvm] val imageWidth: Int The width of the depth image. |
| intrinsics | [androidJvm] val intrinsics: CameraIntrinsics The camera intrinsics of the depth frame. |
| orientation | [androidJvm] val orientation: Orientation The device orientation of the depth frame. |
| pose | [androidJvm] val pose: Pose The camera pose of the depth frame. |
| timestampMs | [androidJvm] val timestampMs: Long The timestamp of the depth frame. |