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

Why use float Type to store Descriptor Distances #1081

Open
gitouni opened this issue Apr 19, 2023 · 0 comments
Open

Why use float Type to store Descriptor Distances #1081

gitouni opened this issue Apr 19, 2023 · 0 comments

Comments

@gitouni
Copy link

gitouni commented Apr 19, 2023

Please see here in MapPoint.cc.

I'm confused with why the author used float type to define a 2-D array Distances instead of using int type, since the function ORBmatcher::DescriptorDistance just returns int types. Furthermore, is it safe to straightforwardly give the pointer of float type Distances to the int type array vDists?

Could anyboday reasoning this operation? Any help will be appreciated.

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

1 participant