// %BANNER_BEGIN%
// ---------------------------------------------------------------------
// %COPYRIGHT_BEGIN%
// Copyright (c) 2022 Magic Leap, Inc. All Rights Reserved.
// Use of this file is governed by the Software License Agreement, located here: https://www.magicleap.com/software-license-agreement-ml2
// Terms and conditions applicable to third-party materials accompanying this distribution may also be found in the top-level NOTICE file appearing herein.
// %COPYRIGHT_END%
// ---------------------------------------------------------------------
// %BANNER_END%
namespace UnityEngine.XR.MagicLeap
{
public partial class MLDepthCamera
{
///
/// Output data for each depth camera sensor.
///
public sealed class Data
{
///
/// A 64bit integer to index the frame number associated with this frame.
///
public long FrameNumber { get; internal set; }
///
/// Frame timestamp specifies the time at which the frame was captured.
///
public MLTime FrameTimestamp { get; internal set; }
///
/// Depth camera mode used for capturing this frame.
///
public FrameType FrameType { get; internal set; }
///
/// World position of the depth camera pose
///
public Vector3 Position { get; internal set; }
///
/// World rotation of the depth camera pose
///
public Quaternion Rotation { get; internal set; }
///
/// Camera intrinsic parameters
///
public Intrinsics Intrinsics { get; internal set; }
///
/// Depth map stores the depth data from the depth camera. Depth is represented in
/// meters and gives the radial distance of the real world location from the
/// depth camera coordinate frame. See , , and
/// for more details.
/// Cast the to float data type.
///
public FrameBuffer? DepthImage { get; internal set; }
///
/// Confidence map stores the confidence values for each pixel in the buffer. The confidence score is derived from the sensor
/// noise and it is not normalized. The higher the value the higher the confidence. Applications can determine what confidence threshold to use
/// based on their use case.
/// Cast the to float data type.
///
public FrameBuffer? ConfidenceBuffer { get; internal set; }
///
/// Each pixel in the frame buffer will have an associated set of flags.
///
public FrameBuffer? DepthFlagsBuffer { get; internal set; }
///
/// This is the raw depth camera sensor data captured without the depth camera
/// illumination and corresponds to the amount of ambient light incident on the sensor.
///
public FrameBuffer? AmbientRawDepthImage { get; internal set; }
///
/// This is the raw depth camera sensor data captured with the depth camera
/// illumination and corresponds to the amount of total light incident on the
/// sensor.
///
public FrameBuffer? RawDepthImage { get; internal set; }
}
}
}