#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 |
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.
SpatialLocationCalculatorConfigData dai::SpatialLocations::config |
Configuration for selected ROI
Definition at line 25 of file RawSpatialLocations.hpp.
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.
std::uint32_t dai::SpatialLocations::depthAveragePixelCount = 0 |
Number of depth values used in calculations.
Definition at line 54 of file RawSpatialLocations.hpp.
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.
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.
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.
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.
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.