Public Attributes | List of all members
dai::SpatialLocations Struct Reference

#include <RawSpatialLocations.hpp>

Public Attributes

SpatialLocationCalculatorConfigData config
 
float depthAverage = 0.f
 
std::uint32_t depthAveragePixelCount = 0
 
std::uint16_t depthMax = 0
 
float depthMedian = 0.f
 
std::uint16_t depthMin = 0
 
float depthMode = 0.f
 
Point3f spatialCoordinates
 

Detailed Description

SpatialLocations structure

Contains configuration data, average depth for the calculated ROI on depth map. Together with spatial coordinates: x,y,z relative to the center of depth map. Units are in depth units (millimeter by default).

Definition at line 21 of file RawSpatialLocations.hpp.

Member Data Documentation

◆ config

SpatialLocationCalculatorConfigData dai::SpatialLocations::config

Configuration for selected ROI

Definition at line 25 of file RawSpatialLocations.hpp.

◆ depthAverage

float dai::SpatialLocations::depthAverage = 0.f

Average of depth values inside the ROI between the specified thresholds in config. Calculated only if calculation method is set to AVERAGE or MIN oR MAX.

Definition at line 30 of file RawSpatialLocations.hpp.

◆ depthAveragePixelCount

std::uint32_t dai::SpatialLocations::depthAveragePixelCount = 0

Number of depth values used in calculations.

Definition at line 54 of file RawSpatialLocations.hpp.

◆ depthMax

std::uint16_t dai::SpatialLocations::depthMax = 0

Maximum of depth values inside the ROI between the specified thresholds in config. Calculated only if calculation method is set to AVERAGE or MIN oR MAX.

Definition at line 50 of file RawSpatialLocations.hpp.

◆ depthMedian

float dai::SpatialLocations::depthMedian = 0.f

Median of depth values inside the ROI between the specified thresholds in config. Calculated only if calculation method is set to MEDIAN.

Definition at line 40 of file RawSpatialLocations.hpp.

◆ depthMin

std::uint16_t dai::SpatialLocations::depthMin = 0

Minimum of depth values inside the ROI between the specified thresholds in config. Calculated only if calculation method is set to AVERAGE or MIN oR MAX.

Definition at line 45 of file RawSpatialLocations.hpp.

◆ depthMode

float dai::SpatialLocations::depthMode = 0.f

Most frequent of depth values inside the ROI between the specified thresholds in config. Calculated only if calculation method is set to MODE.

Definition at line 35 of file RawSpatialLocations.hpp.

◆ spatialCoordinates

Point3f dai::SpatialLocations::spatialCoordinates

Spatial coordinates - x,y,z; x,y are the relative positions of the center of ROI to the center of depth map

Definition at line 58 of file RawSpatialLocations.hpp.


The documentation for this struct was generated from the following file:


depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:20