FakeRuntimeDepthMap


public final class FakeRuntimeDepthMap


Test-only implementation of androidx.xr.arcore.runtime.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 value)

The height of the depth map.

void

Confidence values for the raw depth map.

void

Raw depth values representing meters from the image plane.

void

Confidence values for the smooth depth map.

void

Smooth depth values representing meters from the image plane.

void
setWidth(int value)

The width of the depth map.

Public constructors

FakeRuntimeDepthMap

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

Public methods

getHeight

Added in 1.0.0-alpha10
public int getHeight()

The height of the depth map.

getRawConfidenceMap

Added in 1.0.0-alpha10
public ByteBuffer getRawConfidenceMap()

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

getRawDepthMap

Added in 1.0.0-alpha10
public FloatBuffer getRawDepthMap()

Raw depth values representing meters from the image plane.

getSmoothConfidenceMap

Added in 1.0.0-alpha10
public ByteBuffer getSmoothConfidenceMap()

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

getSmoothDepthMap

Added in 1.0.0-alpha10
public FloatBuffer getSmoothDepthMap()

Smooth depth values representing meters from the image plane.

getWidth

Added in 1.0.0-alpha10
public int getWidth()

The width of the depth map.

setHeight

Added in 1.0.0-alpha10
public void setHeight(int value)

The height of the depth map.

setRawConfidenceMap

Added in 1.0.0-alpha10
public void setRawConfidenceMap(ByteBuffer value)

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

setRawDepthMap

Added in 1.0.0-alpha10
public void setRawDepthMap(FloatBuffer value)

Raw depth values representing meters from the image plane.

setSmoothConfidenceMap

Added in 1.0.0-alpha10
public void setSmoothConfidenceMap(ByteBuffer value)

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

setSmoothDepthMap

Added in 1.0.0-alpha10
public void setSmoothDepthMap(FloatBuffer value)

Smooth depth values representing meters from the image plane.

setWidth

Added in 1.0.0-alpha10
public void setWidth(int value)

The width of the depth map.