Ask Your Question

patrycja_b's profile - activity

2016-02-03 09:57:34 -0500 received badge  Editor (source)
2016-02-03 09:48:36 -0500 asked a question surface matching not working

Hi,

I'm trying to run surface matching module (http://docs.opencv.org/3.0-beta/modul...), downloaded from https://github.com/Itseez/opencv_contrib. For the beginning I use sample data from this website, but I get an error:

"Run-Time Check Failure #2 - Stack around the variable 'hashKey' was corrupted."

which is at the very beginning step - training:

string modelFileName = (string)argv[1];
string sceneFileName = (string)argv[2];

Mat pc = loadPLYSimple(modelFileName.c_str(), 1);

// Now train the model
cout << "Training..." << endl;
int64 tick1 = cv::getTickCount();
ppf_match_3d::PPF3DDetector detector(0.025, 0.05);
detector.trainModel(pc);
int64 tick2 = cv::getTickCount();

Does anyone know what's going on?

I am using MSVS2013 and OpenCV 3.0

Cheers!

EDITI found an answer here https://github.com/Itseez/opencv_cont....