FakeRuntimeDepthMap


class FakeRuntimeDepthMap


Test-only implementation of androidx.xr.arcore.internal.DepthMap

Summary

Public constructors

FakeRuntimeDepthMap(
    width: Int,
    height: Int,
    rawDepthMap: FloatBuffer?,
    rawConfidenceMap: ByteBuffer?,
    smoothDepthMap: FloatBuffer?,
    smoothConfidenceMap: ByteBuffer?
)

Public properties

open Int

The height of the depth map.

open ByteBuffer?

Confidence values for the raw depth map.

open FloatBuffer?

Raw depth values representing meters from the image plane.

open ByteBuffer?

Confidence values for the smooth depth map.

open FloatBuffer?

Smooth depth values representing meters from the image plane.

open Int

The width of the depth map.

Public constructors

FakeRuntimeDepthMap

Added in 1.0.0-alpha06
FakeRuntimeDepthMap(
    width: Int = 0,
    height: Int = 0,
    rawDepthMap: FloatBuffer? = null,
    rawConfidenceMap: ByteBuffer? = null,
    smoothDepthMap: FloatBuffer? = null,
    smoothConfidenceMap: ByteBuffer? = null
)

Public properties

height

Added in 1.0.0-alpha06
open var heightInt

The height of the depth map.

rawConfidenceMap

Added in 1.0.0-alpha06
open var rawConfidenceMapByteBuffer?

Confidence values for the raw depth map. Higher values represent higher confidence.

rawDepthMap

Added in 1.0.0-alpha06
open var rawDepthMapFloatBuffer?

Raw depth values representing meters from the image plane.

smoothConfidenceMap

Added in 1.0.0-alpha06
open var smoothConfidenceMapByteBuffer?

Confidence values for the smooth depth map. Higher values represent higher confidence.

smoothDepthMap

Added in 1.0.0-alpha06
open var smoothDepthMapFloatBuffer?

Smooth depth values representing meters from the image plane.

width

Added in 1.0.0-alpha06
open var widthInt

The width of the depth map.