Depth.State


public final class Depth.State


Contains the current state of depth tracking.

Summary

Public methods

boolean
equals(Object other)
final int

the height of the depth maps

final @NonNull Depth

self-reference to the object that owns this state

final ByteBuffer

a buffer of confidence values for each pixel in rawDepthMap, with 0 representing the lowest confidence and 255 representing the highest confidence

final FloatBuffer

a buffer of size width x height representing raw depth in meters from the image plane, with both row and pixel stride equal to 0

final ByteBuffer

a buffer of confidence values for each pixel in smoothDepthMap, with 0 representing the lowest confidence and 255 representing the highest confidence

final FloatBuffer

a buffer of size width x height representing smooth depth in meters from the image plane, with both row and pixel stride equal to 0

final int

the width of the depth maps

int
@NonNull String

Returns a string representation of State for debugging.

Public methods

equals

public boolean equals(Object other)

getHeight

Added in 1.0.0
public final int getHeight()

the height of the depth maps

getOwner

Added in 1.0.0
public final @NonNull Depth getOwner()

self-reference to the object that owns this state

getRawConfidenceMap

Added in 1.0.0
public final ByteBuffer getRawConfidenceMap()

a buffer of confidence values for each pixel in rawDepthMap, with 0 representing the lowest confidence and 255 representing the highest confidence

getRawDepthMap

Added in 1.0.0
public final FloatBuffer getRawDepthMap()

a buffer of size width x height representing raw depth in meters from the image plane, with both row and pixel stride equal to 0

getSmoothConfidenceMap

Added in 1.0.0
public final ByteBuffer getSmoothConfidenceMap()

a buffer of confidence values for each pixel in smoothDepthMap, with 0 representing the lowest confidence and 255 representing the highest confidence

getSmoothDepthMap

Added in 1.0.0
public final FloatBuffer getSmoothDepthMap()

a buffer of size width x height representing smooth depth in meters from the image plane, with both row and pixel stride equal to 0

getWidth

Added in 1.0.0
public final int getWidth()

the width of the depth maps

hashCode

public int hashCode()

toString

public @NonNull String toString()

Returns a string representation of State for debugging.

Note: Not intended for production use.