Skip to main content
API Reference SwiftyNsdk

DepthResult

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

Declaration

class DepthResult

Summary

Contains depth estimation results from the NSDK depth processing system.

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_maxFloat
The maximum disparity value in the depth map.
Higher disparity values indicate objects closer to the camera.
var disparity_minFloat
The minimum disparity value in the depth map.
Lower disparity values indicate objects farther from 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.