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

scanRegistration.cpp文件中的465行if的作用 #31

Closed
guojing-gj opened this issue Jul 5, 2021 · 1 comment
Closed

scanRegistration.cpp文件中的465行if的作用 #31

guojing-gj opened this issue Jul 5, 2021 · 1 comment

Comments

@guojing-gj
Copy link

scanRegistration.cpp文件中的465行
double cc = fabs( norm_front.dot(norm_back) / (norm_front.norm()*norm_back.norm()) );
if(cc < 0.8){
debugnum3++;
}else{
CloudFeatureFlag[i] = 0;
}
这个if的作用是什么,为什么abs(cos(t))<0.8(t属于[37度,143度])就不是角特征点了?

@Livox-SDK
Copy link
Owner

Hi guojing-gj

这个 if 限制的是只取 (cc < 0.8) 内的点 即 属于[37度,143度] 内的点; 具体的参数并不是定死的 这个阈值是可以调的; 角特征点更倾向于90度左右的点;这个范围只是个例子

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