Βlock Matching, setTextureThreshold()

asked 2019-06-03 06:54:20 -0500

BuenaVentura gravatar image

updated 2019-12-09 08:05:21 -0500

Akhil Patel gravatar image

Hello,

I am having trouble understanding the texture filter of block matching implementation. I read the source code (https://github.com/opencv/opencv/blob...) 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.

edit retag flag offensive close merge delete