Ask Your Question

Revision history [back]

Βlock Matching, setTextureThreshold()

Hello,

I am having trouble understanding the texture filter of block matching implementation. I read the source code (https://github.com/opencv/opencv/blob/master/modules/calib3d/src/stereobm.cpp) but still cannot get it. We set a minimum amount of texture with setTextureThreshold(threshold), but what exactly does it mean this value t? Does it compare the SAD value of the pixel with this threshold and if (SAD value < threshold) then it filters out the pixel? How is this threshold calculated? I cannot understand how the values of htext[] buffer are calculated.

Could someone explain how it works?

Thank you in advance.

click to hide/show revision 2
retagged

Βlock Matching, setTextureThreshold()

Hello,

I am having trouble understanding the texture filter of block matching implementation. I read the source code (https://github.com/opencv/opencv/blob/master/modules/calib3d/src/stereobm.cpp) but still cannot get it. We set a minimum amount of texture with setTextureThreshold(threshold), but what exactly does it mean this value t? Does it compare the SAD value of the pixel with this threshold and if (SAD value < threshold) then it filters out the pixel? How is this threshold calculated? I cannot understand how the values of htext[] buffer are calculated.

Could someone explain how it works?

Thank you in advance.