Skip to main content
←API Reference ←NSDK

DepthResult

↳ inherits from AwarenessImageResult
Contains depth estimation results from the NSDK depth processing system.

Declaration​

class DepthResult

Overview​

Depth results are generated by the depth processing system and include:

  • Disparity maps for depth estimation. Unlike direct depth maps that provide distance values in meters, disparity maps contain pixel offset values that represent relative depth differences. These values must be converted to actual depth using camera intrinsic parameters and baseline information.
  • Camera pose and orientation information
  • Camera intrinsic parameters for coordinate transformations
  • Error status and metadata

Properties​

NameTypeSummary
var disparity (min: Float, max: Float)
The disparity values in the depth map.
Lower disparity values indicate objects farther from the camera.
Higher disparity values indicate objects closer to the camera.
var orientationUIInterfaceOrientation
The device orientation when the depth data was captured.
This orientation information is crucial for correctly interpreting the depth
image and applying the appropriate coordinate transformations.