NISwGSP icon indicating copy to clipboard operation
NISwGSP copied to clipboard

run error

Open zyf12389 opened this issue 7 years ago • 6 comments

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!

zyf12389 avatar Apr 18 '17 14:04 zyf12389

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

nothinglo avatar Apr 19 '17 13:04 nothinglo

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<FeatureDistance>::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 avatar Apr 19 '17 13:04 zyf12389

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!

zyf12389 avatar Apr 19 '17 13:04 zyf12389

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.

nothinglo avatar Apr 27 '17 02:04 nothinglo

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 avatar Apr 08 '19 05:04 Millione

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.

Millione avatar Apr 08 '19 05:04 Millione