#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 |
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.
dai::RawStereoDepthConfig::CostMatching::LinearEquationParameters::DEPTHAI_SERIALIZE | ( | LinearEquationParameters | , |
alpha | , | ||
beta | , | ||
threshold | |||
) |
uint8_t dai::RawStereoDepthConfig::CostMatching::LinearEquationParameters::alpha = 0 |
Definition at line 492 of file RawStereoDepthConfig.hpp.
uint8_t dai::RawStereoDepthConfig::CostMatching::LinearEquationParameters::beta = 2 |
Definition at line 493 of file RawStereoDepthConfig.hpp.
uint8_t dai::RawStereoDepthConfig::CostMatching::LinearEquationParameters::threshold = 127 |
Definition at line 494 of file RawStereoDepthConfig.hpp.