Public Member Functions | Public Attributes | List of all members
dai::RawStereoDepthConfig::CostMatching::LinearEquationParameters Struct Reference

#include <RawStereoDepthConfig.hpp>

Public Member Functions

 DEPTHAI_SERIALIZE (LinearEquationParameters, alpha, beta, threshold)
 

Public Attributes

uint8_t alpha = 0
 
uint8_t beta = 2
 
uint8_t threshold = 127
 

Detailed Description

The linear equation applied for computing the cost is: COMB_COST = α*AD + β*(CTC<<3). CLAMP(COMB_COST >> 5, threshold). Where AD is the Absolute Difference between 2 pixels values. CTC is the Census Transform Cost between 2 pixels, based on Hamming distance (xor). The α and β parameters are subject to fine tuning by the user.

Definition at line 491 of file RawStereoDepthConfig.hpp.

Member Function Documentation

◆ DEPTHAI_SERIALIZE()

dai::RawStereoDepthConfig::CostMatching::LinearEquationParameters::DEPTHAI_SERIALIZE ( LinearEquationParameters  ,
alpha  ,
beta  ,
threshold   
)

Member Data Documentation

◆ alpha

uint8_t dai::RawStereoDepthConfig::CostMatching::LinearEquationParameters::alpha = 0

Definition at line 492 of file RawStereoDepthConfig.hpp.

◆ beta

uint8_t dai::RawStereoDepthConfig::CostMatching::LinearEquationParameters::beta = 2

Definition at line 493 of file RawStereoDepthConfig.hpp.

◆ threshold

uint8_t dai::RawStereoDepthConfig::CostMatching::LinearEquationParameters::threshold = 127

Definition at line 494 of file RawStereoDepthConfig.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