Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

指定旋转范围时 阈值 没达到1.0 #45

Open
ershat-dl opened this issue Aug 10, 2023 · 1 comment
Open

指定旋转范围时 阈值 没达到1.0 #45

ershat-dl opened this issue Aug 10, 2023 · 1 comment

Comments

@ershat-dl
Copy link

我试图修改旋转范围, 并且分别得到了不同的结果

旋转角度为 0
image

更改旋转范围时
image

问题出现在这个代码

if (vecNewMatchParameter[j].dMatchScore > dBigValue)
        {
	        iMaxScoreIndex = j;
	        dBigValue = vecNewMatchParameter[j].dMatchScore;
        }

看了一下代码, 分别计算 金字塔第二层 和 第三层 时 对应的角度和阈值如下:

第二层

angle step = 4
-4  -- 0.94
 0  -- 0.96 
 4  -- 0.98

这个时候 自然会选择 第三个结果 0.98, 然后进入第三层计算

第三层

angle step = 2
2  -- 0.98
4  -- 0.94 
6  -- 0.90

就这样 漏掉了 角度为 0 的 最佳结果, 不知道 第二层 4° 的结果 为什么 会比 0° 高一些。 但是第三层 0° 的阈值 是 1.0

@DennisLiu1993
Copy link
Owner

確實,可以把+-一個step的地方改成+-兩個step,應該可以改善,不過多花時間

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants