Public Attributes | Static Public Attributes | List of all members
dai::SpatialLocationCalculatorConfigData Struct Reference

SpatialLocation configuration data structure. More...

#include <RawSpatialLocationCalculatorConfig.hpp>

Public Attributes

SpatialLocationCalculatorAlgorithm calculationAlgorithm = SpatialLocationCalculatorAlgorithm::MEDIAN
 
SpatialLocationCalculatorConfigThresholds depthThresholds
 
Rect roi
 
std::int32_t stepSize = AUTO
 

Static Public Attributes

static constexpr std::int32_t AUTO = -1
 

Detailed Description

SpatialLocation configuration data structure.

Definition at line 39 of file RawSpatialLocationCalculatorConfig.hpp.

Member Data Documentation

◆ AUTO

constexpr std::int32_t dai::SpatialLocationCalculatorConfigData::AUTO = -1
staticconstexpr

Definition at line 40 of file RawSpatialLocationCalculatorConfig.hpp.

◆ calculationAlgorithm

SpatialLocationCalculatorAlgorithm dai::SpatialLocationCalculatorConfigData::calculationAlgorithm = SpatialLocationCalculatorAlgorithm::MEDIAN

Calculation method used to obtain spatial locations Average/mean: the average of ROI is used for calculation. Min: the minimum value inside ROI is used for calculation. Max: the maximum value inside ROI is used for calculation. Mode: the most frequent value inside ROI is used for calculation. Median: the median value inside ROI is used for calculation. Default: median.

Definition at line 59 of file RawSpatialLocationCalculatorConfig.hpp.

◆ depthThresholds

SpatialLocationCalculatorConfigThresholds dai::SpatialLocationCalculatorConfigData::depthThresholds

Upper and lower thresholds for depth values to take into consideration.

Definition at line 49 of file RawSpatialLocationCalculatorConfig.hpp.

◆ roi

Rect dai::SpatialLocationCalculatorConfigData::roi

Region of interest for spatial location calculation.

Definition at line 45 of file RawSpatialLocationCalculatorConfig.hpp.

◆ stepSize

std::int32_t dai::SpatialLocationCalculatorConfigData::stepSize = AUTO

Step size for calculation. Step size 1 means that every pixel is taken into calculation, size 2 means every second etc. Default value AUTO: for AVERAGE, MIN, MAX step size is 1; for MODE/MEDIAN it's 2.

Definition at line 65 of file RawSpatialLocationCalculatorConfig.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