-
Notifications
You must be signed in to change notification settings - Fork 115
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
How to get the coordinate of feature points of popsift::FeaturesDev? #91
Comments
The FeaturesDev memory exists only in GPU memory, not in the CPU memory. To use the coordinates in the CPU after matching, you must transfer them first. You could do something like this:
|
I tried and it worked! Thank you so much! |
it works,thanks |
I try to get all the descriptors and feature points on the CPU with following codes
|
I want to get the coordinate of feature points after match. So I add
cout << lFeatures->getFeatures()[0].xpos << endl;
to src/application/match.cpp. Then the program broke. It shows Segmentation fault (core dumped).But I did the same thing to src/application/main.cpp, added
cout << feature_list->_ext[0].xpos << endl;
tovoid read_job( SiftJob* job, bool really_write )
, it worked well.I noticed that the class of lFeatures is popsift::FeaturesDev, and the feature_list's is popsift::Features. So why I cannot get the infomation of feature from popsift::FeaturesDev? What should I do? THANKS!
The text was updated successfully, but these errors were encountered: