FakeRuntimeDepthMap


public final class FakeRuntimeDepthMap


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

Summary

Public constructors

FakeRuntimeDepthMap(
    int width,
    int height,
    FloatBuffer rawDepthMap,
    ByteBuffer rawConfidenceMap,
    FloatBuffer smoothDepthMap,
    ByteBuffer smoothConfidenceMap
)

Public methods

int

The height of the depth map.

ByteBuffer

Confidence values for the raw depth map.

FloatBuffer

Raw depth values representing meters from the image plane.

ByteBuffer

Confidence values for the smooth depth map.

FloatBuffer

Smooth depth values representing meters from the image plane.

int

The width of the depth map.

void
setHeight(int height)

The height of the depth map.

void
setRawConfidenceMap(ByteBuffer rawConfidenceMap)

Confidence values for the raw depth map.

void

Raw depth values representing meters from the image plane.

void
setSmoothConfidenceMap(ByteBuffer smoothConfidenceMap)

Confidence values for the smooth depth map.

void

Smooth depth values representing meters from the image plane.

void
setWidth(int width)

The width of the depth map.

Public constructors

FakeRuntimeDepthMap

Added in 1.0.0-alpha06
public FakeRuntimeDepthMap(
    int width,
    int height,
    FloatBuffer rawDepthMap,
    ByteBuffer rawConfidenceMap,
    FloatBuffer smoothDepthMap,
    ByteBuffer smoothConfidenceMap
)

Public methods

getHeight

Added in 1.0.0-alpha06
public int getHeight()

The height of the depth map.

getRawConfidenceMap

Added in 1.0.0-alpha06
public ByteBuffer getRawConfidenceMap()

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

getRawDepthMap

Added in 1.0.0-alpha06
public FloatBuffer getRawDepthMap()

Raw depth values representing meters from the image plane.

getSmoothConfidenceMap

Added in 1.0.0-alpha06
public ByteBuffer getSmoothConfidenceMap()

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

getSmoothDepthMap

Added in 1.0.0-alpha06
public FloatBuffer getSmoothDepthMap()

Smooth depth values representing meters from the image plane.

getWidth

Added in 1.0.0-alpha06
public int getWidth()

The width of the depth map.

setHeight

Added in 1.0.0-alpha06
public void setHeight(int height)

The height of the depth map.

setRawConfidenceMap

Added in 1.0.0-alpha06
public void setRawConfidenceMap(ByteBuffer rawConfidenceMap)

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

setRawDepthMap

Added in 1.0.0-alpha06
public void setRawDepthMap(FloatBuffer rawDepthMap)

Raw depth values representing meters from the image plane.

setSmoothConfidenceMap

Added in 1.0.0-alpha06
public void setSmoothConfidenceMap(ByteBuffer smoothConfidenceMap)

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

setSmoothDepthMap

Added in 1.0.0-alpha06
public void setSmoothDepthMap(FloatBuffer smoothDepthMap)

Smooth depth values representing meters from the image plane.

setWidth

Added in 1.0.0-alpha06
public void setWidth(int width)

The width of the depth map.