Struct SpatialLocationCalculatorConfigData

Struct Documentation

struct SpatialLocationCalculatorConfigData

SpatialLocation configuration data structure.

Public Members

Rect roi

Region of interest for spatial location calculation.

SpatialLocationCalculatorConfigThresholds depthThresholds

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

SpatialLocationCalculatorAlgorithm 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.

std::int32_t 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.

Public Static Attributes

static constexpr std::int32_t AUTO = -1