Hi all,
I download the lasted code from the website and run but always received the error "This may be due to a corruption of the heap,or any of the DLLs it has loaded" when running the cmt.initialise ( ) function.
I tried to debug line by line and detected that there are problems at the following line of code
std::vectorstd::string list;
cv::Algorithm::getList(list);
std::vectorcv::KeyPoint keypoints;
detector->detect(im_gray0, keypoints);
I tried out two way to make the function works
First method, "list" and "keypoints" variables declared as static variables something like
static std::vectorstd::string list;
cv::Algorithm::getList(list);
static std::vectorcv::KeyPoint keypoints;
detector->detect(im_gray0, keypoints);
Second method, move those variable to cmt() constructor
I am not sure is there anyone here facing the same error like me when running the program. I wonder whether two method i made here to make the function works is correct or not. if you know better solution and explain me why the error happens and what is the right or potential solution to fix the issue , i would appreciate your help. Thank you very much.