DepthEstimationMode
public final class DepthEstimationMode
Feature that allows more accurate information about scene depth and meshes.
Summary
Public fields |
|
|---|---|
static final @NonNull DepthEstimationMode |
No information about scene depth will be provided. |
static final @NonNull DepthEstimationMode |
Depth estimation will be enabled with raw depth and confidence. |
static final @NonNull DepthEstimationMode |
Depth estimation will be enabled with both raw and smooth depth and confidence. |
static final @NonNull DepthEstimationMode |
Depth estimation will be enabled with smooth depth and confidence. |
Public methods |
|
|---|---|
final int |
getMode() |
Public fields
DISABLED
public static final @NonNull DepthEstimationMode DISABLED
No information about scene depth will be provided.
RAW_ONLY
public static final @NonNull DepthEstimationMode RAW_ONLY
Depth estimation will be enabled with raw depth and confidence.
Supported runtimes:
-
OpenXR
-
Play Services (on supported devices)
Required permissions:
-
SCENE_UNDERSTANDING_FINE(OpenXR runtimes only) -
CAMERA(Play Services runtimes only)
SMOOTH_AND_RAW
public static final @NonNull DepthEstimationMode SMOOTH_AND_RAW
Depth estimation will be enabled with both raw and smooth depth and confidence. Note that setting this mode will consume additional runtime resources.
Supported runtimes:
-
Play Services (on supported devices)
Required permissions:
-
CAMERA(Play Services runtimes only)
SMOOTH_ONLY
public static final @NonNull DepthEstimationMode SMOOTH_ONLY
Depth estimation will be enabled with smooth depth and confidence.
Supported runtimes:
-
OpenXR
-
Play Services (on supported devices)
Required permissions:
-
SCENE_UNDERSTANDING_FINE(OpenXR runtimes only) -
CAMERA(Play Services runtimes only)