Skip to main content
Version: 12 Dec 2024

PixelSensors

NameSpace: Features

Classes

TypeName
classMagicLeapPixelSensorFeature
Enables the Magic Leap OpenXR Loader for Android, and modifies the AndroidManifest to be compatible with ML2.
classPixelSensorAnalogGain
The Analog gain metadata holder
classPixelSensorAsyncOperationResult
Represents the progress of an async Pixel sensor operation
structPixelSensorCapability
Represents the capability data's type
classPixelSensorCapabilityRange
The capability range for a sensor capability
classPixelSensorConfigData
Represents a configuration to be applied for a sensor
classPixelSensorDepthConfidenceBuffer
The Depth Confidence Buffer metadata
classPixelSensorDepthFlagBuffer
The Depth Flag Buffer metadata
classPixelSensorDepthFrameIllumination
The Depth Frame Illumination metadata
classPixelSensorDigitalGain
The Digital gain metadata holder
classPixelSensorExposureTime
The exposure time metadata
classPixelSensorFisheyeIntrinsics
The Fisheye intrinsics camera model metadata.
structPixelSensorFrame
Represents the frame data of a sensor
structPixelSensorId
A Pixel Sensor Identifier
classPixelSensorMetaData
The base class for all metadata types. PixelSensors.MagicLeapPixelSensorFeature.GetSensorData will return an array of instances of the base class type Use the MetadataType to determine and cast to the corresponding metadata needed
classPixelSensorPinholeIntrinsics
The Pinhole camera model intrinsics metadata
structPixelSensorPlane
Represents a plane from a sensor frame

Enums

Name
enumPixelSensorAutoExposureMode
{
EnvironmentTracking, ProximityIrTracking
}

The exposure mode of the pixel sensor
enumPixelSensorCapabilityDataType
{
Boolean, UnsignedInt32 = 100, Float = 101, Extent2D = 200
}

Represents the data types supported by a pixel sensor capability.
enumPixelSensorCapabilityRangeType
{
Boolean, Continuous, Discrete
}

Represents the range type of pixel sensor capability.
enumPixelSensorCapabilityType
{
UpdateRate, Resolution, Format = 3, Depth, MixedReality, ManualExposureTime = 100, AnalogGain, DigitalGain, AutoExposureMode = 200, AutoExposureTargetBrightness
}

The configurable capability types of a pixel sensor
enumPixelSensorDepthFlags
{
Valid = 1, Invalid = 2, Saturated = 4, Inconsistent = 8, LowSignal = 0x10, FlyingPixel = 0x20, MaskedBit = 0x40, Sbi = 0x80, StrayLight = 0x100, ConnectedComponents = 0x200
}

The flags associated with PixelSensorDepthFlagBuffer each pixel
enumPixelSensorDepthFrameIlluminationType
{
On, Off
}

The status of the depth frame projector when the frame is obtained
enumPixelSensorFrameFormat
{
Grayscale, Rgba8888, Yuv420888, Jpeg, Depth32, DepthRaw
}
enumPixelSensorFrameType
{
Grayscale, Rgba8888, Yuv420888, Jpeg, Depth32, DepthRaw, DepthConfidence, DepthFlags
}
enumPixelSensorMetaDataType
{
ExposureTime, AnalogGain, DigitalGain, PinholeCameraModel, FishEyeCameraModel, DepthFrameIllumination, DepthConfidenceBuffer, DepthFlagBuffer
}

The metadata types that can be supported by a sensor
enumPixelSensorStatus
{
Undefined, NotConfigured, Configuring, Configured, Starting, Started, Stopping, Stopped
}

The status of a sensor

Enums Documentation

PixelSensorAutoExposureMode

The exposure mode of the pixel sensor

EnumeratorValueDescription
EnvironmentTrackingExposure mode optimized for environmental tracking
ProximityIrTrackingExposure mode optimized for proximity IR light source.

PixelSensorCapabilityDataType

Represents the data types supported by a pixel sensor capability.

EnumeratorValueDescription
Boolean
UnsignedInt32100
Float101
Extent2D200

PixelSensorCapabilityRangeType

Represents the range type of pixel sensor capability.

EnumeratorValueDescription
BooleanA boolean value
ContinuousRepresents a range with a min and a max value
DiscreteRepresents a series of discrete values

PixelSensorCapabilityType

The configurable capability types of a pixel sensor

EnumeratorValueDescription
UpdateRateData Rate Per second of the sensor. This must be specified for a sensor to be configured
ResolutionThe resolution of the sensor data. This must be specified for a sensor to be configured
Format3The data format for the sensor. This must be specified for a sensor to be configured
DepthThe range of a depth sensor
MixedRealityThe camera frame and the digital content will be blended into a single frame
ManualExposureTime100Exposure time in milliseconds. If this is not specified then AutoExposureMode and AutoExposureTargetBrightness must be specified
AnalogGainHigher gain is useful in low light conditions but may introduce noise.
DigitalGainHigher gain is useful in low light conditions but may introduce noise.
AutoExposureMode200Enable/disable auto exposure mode.
AutoExposureTargetBrightnessSet target brightness for auto exposure mode.

PixelSensorDepthFlags

The flags associated with PixelSensorDepthFlagBuffer each pixel

EnumeratorValueDescription
Valid1
Invalid2
Saturated4
Inconsistent8
LowSignal0x10
FlyingPixel0x20
MaskedBit0x40
Sbi0x80
StrayLight0x100
ConnectedComponents0x200

PixelSensorDepthFrameIlluminationType

The status of the depth frame projector when the frame is obtained

EnumeratorValueDescription
OnDepth camera frame projector is on
OffDepth camera frame projector is off

PixelSensorFrameFormat

EnumeratorValueDescription
GrayscaleEach pixel is 1 byte and represents a grayscale value
Rgba8888Each pixel is 4 bytes and represents R,G,B, and A channels in that order
Yuv420888Frame is represented in the YUV_420_888 planar format
JpegFrame is JPEG encoded
Depth32Represents the depth. Depth is the radial distance (in meters) of the real world location with respect to the depth camera.
DepthRawRaw pixel data representing light captured by the sensor.

For depth cameras that have a projector this raw frame will include frames captured both when the projector is on and off. |

Details*

The frame format capabilities of a sensor.

Note: This is not the same as PixelSensorFrameType. PixelSensorFrameFormat represents the frame capabilities supported by a sensor while PixelSensorFrameType indicates the type of frame when the sensor data is fetched


PixelSensorFrameType

EnumeratorValueDescription
GrayscaleEach pixel is 1 byte and represents a grayscale value
Rgba8888Each pixel is 4 bytes and represents R,G,B, and A channels in that order
Yuv420888Frame is represented in the YUV_420_888 planar format
JpegFrame is JPEG encoded
Depth32Represents the depth. Depth is the radial distance (in meters) of the real world location with respect to the depth camera.
DepthRawRaw pixel data representing light captured by the sensor.

For depth cameras that have a projector this raw frame will include frames captured both when the projector is on and off. | | DepthConfidence | | The confidence data for each pixel in the sensor frame buffer The confidence score is derived from the sensor noise and it is not normalized | | DepthFlags | | The depth sensor flags for each pixel in the sensor frame buffer. See PixelSensorDepthFlags |

Details*

The frame format types of a sensor's data.

Note: This is not the same as PixelSensorFrameFormat. PixelSensorFrameFormat represents the frame capabilities supported by a sensor while PixelSensorFrameType indicates the type of frame when the sensor data is fetched


PixelSensorMetaDataType

The metadata types that can be supported by a sensor

EnumeratorValueDescription
ExposureTimeExposure time in milliseconds used to capture the frame.
AnalogGainAnalog gain used to capture the frame
DigitalGainDigital gain used to capture the frame
PinholeCameraModelPinhole camera model
FishEyeCameraModelFisheye camera model
DepthFrameIlluminationIllumination type used for the depth frame
DepthConfidenceBufferConfidence values for each pixel in the camera frame. The confidence score is derived from the sensor noise. 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 | | DepthFlagBuffer | | Flag bits for each pixel in the depth camera frame. See PixelSensorDepthFlags |


PixelSensorStatus

The status of a sensor

EnumeratorValueDescription
UndefinedSensor has not been created
NotConfiguredSensor has been created but not configured
ConfiguringSensor is being configured
ConfiguredSensor has been configured
StartingStarting a configured sensor
StartedSensor has been started
StoppingStopping a sensor
StoppedSensor has been stopped