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

run error #4

Open
zyf12389 opened this issue Apr 18, 2017 · 6 comments
Open

run error #4

zyf12389 opened this issue Apr 18, 2017 · 6 comments

Comments

@zyf12389
Copy link

sorry to bother you again, I found missing constructor function in ImageData.h, and after adding it in this file, there exists an error, I found the error is in the function of doFeatureMatching() which in the file named MultiImages.cpp. And the error is map/set iterator not dereferencable, I am feeling confused. Looking forward to your reply. Thanks!

@nothinglo
Copy link
Owner

Hi, It has the constructor function in ImageData.cpp (line 39). Could you tell me more details about the error? Thanks.

@zyf12389
Copy link
Author

sorry, I was wrong yesterday, I mean there missing copy constructor function in ImageData.h, and what the error is map/set iterator not dereferencable, and this error happens in the fuction named getInitialFeaturePairs() which in MultiImages.cpp. I made a little change to the following code snippet.
if(ratio_test) {
const set::const_iterator it2 = std::next(it, 1);
if(it2!=feature_distance_set.end()&&nearest_k == nearest_size &&//(whether the //iterator has reached its end)
it2->distance * FEATURE_RATIO_TEST_THRESHOLD > it->distance) {
continue;
}
it = it2;
}

@zyf12389
Copy link
Author

But there also exists a problem in the function getImageVerticesBySolving() in MeshOptimization.cpp, I found the error is in "x=lscg.solve(b)", because I have printed x, and the values are all -1.#IND, and the results of rect are [0*0 from(0,0)], but solve is a function of eigen3, I don't know how to solve it. I hope you can help me to fix it. Thank you very much!

@nothinglo
Copy link
Owner

Hi,

Sorry for the late reply because I am still thinking. If you use debug mode you will see some debug images in the [1_debugs] folder. Could you tell me whether the feature points are alright or not?
(something like https://github.com/nothinglo/NISwGSP#debug-mode)

Thanks.

@Millione
Copy link

Millione commented Apr 8, 2019

hey, guys. I want to know when I execute the .exe and it goes wrong. How can I call stack to find where the error is specifically located ??? Appreciate.

@Millione
Copy link

Millione commented Apr 8, 2019

But there also exists a problem in the function getImageVerticesBySolving() in MeshOptimization.cpp, I found the error is in "x=lscg.solve(b)", because I have printed x, and the values are all -1.#IND, and the results of rect are [0*0 from(0,0)], but solve is a function of eigen3, I don't know how to solve it. I hope you can help me to fix it. Thank you very much!

have you solved this problem?? Thanks.

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