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

ch07/orb_self.cpp的代码笔误 #36

Closed
bittergourd1224 opened this issue Oct 24, 2019 · 4 comments
Closed

ch07/orb_self.cpp的代码笔误 #36

bittergourd1224 opened this issue Oct 24, 2019 · 4 comments

Comments

@bittergourd1224
Copy link

第375行中
int idx_pq = i * 8 + k;
是否应该为
int idx_pq = i * 32 + k;

另外问一下,代码中的ORB_pattern[256 * 4]是否就是选取的特征点附近随机像素?可是这里是人为输入的,是有其他特殊含义吗?
另外书中有个笔误,就不另开issue了。p68倒数第二行的Panglin少了一个o。

@Mingrui-Yu
Copy link

同认为应该是×32。

关于ORB_pattern,我觉得这个ORB_pattern就是随机生成的,但对每一次匹配用的都是同样的ORB_pattern(如果两幅图像中的同一特征点的ORB特征是用的不同的随机点,那肯定是没法匹配的),所以只需要在之前随机生成一次就可以了。代码中只是省略了随机生成的过程,直接给出表就是了。

@bittergourd1224
Copy link
Author

@Mingrui-Yu 多谢解答。感觉还是在第一次使用前用随机数生成更直观一些,不过意义一样无所谓啦

@gaoxiang12
Copy link
Owner

感谢各位讨论,已修复 。

@bittergourd1224
Copy link
Author

收到:smile:

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

3 participants