MLXRCpuDepthFeature

class MLXRCpuDepthFeature : MLDepthFeature

This feature provides functionality for working with camera depth data from Unity ARFoundation.

Creating the Feature

/// <summary>
/// Create an AR depth image feature.
/// </summary>
/// <param name="image">Augmented reality image.</param>
/// <param name="camera">AR session camera.</param>
/// <param name="orientation">Image orientation. If `Unknown`, this will default to the screen orientation.</param>
MLXRCpuDepthFeature (XRCpuImage image, Camera camera, ScreenOrientation orientation = 0);

INCOMPLETE.

Inspecting the Feature

The depth feature exposes its underlying type, along with convenience properties for inspecting the aforementioned type.

Feature Type

/// <summary>
/// Feature type.
/// </summary>
MLFeatureType type { get; }

Refer to the Inspecting the Feature section of the MLDepthFeature class for more information.

Depth Map Width

Refer to the Depth Map Width section of the MLDepthFeature class for more information.

Depth Map Height

Refer to the Depth Map Height section of the MLDepthFeature class for more information.

Sampling Pixel Depth

Refer to the Sampling Pixel Depth section of the MLDepthFeature class for more information.

Projecting to 3D Space

Refer to the Projecting to 3D Space section of the MLDepthFeature class for more information.

Last updated

Was this helpful?