2014-06-03 01:15:09 -0600 | asked a question | vector parameter crashes in goodFeaturesToTrack when using 64bit libraries(window 7, Visual studio 10) Hello, Here is my question :
more specifically, At this line in the goodFeaturesToTrack function crashes. My own source code is this Thus, I tried many thing to figure out, I doubted OutputArray which is wrapper class for emitting "corners", so I made my own code in OpenCV project by replacing "OutputArray _corners" with "vector<point2f> &_corners" as a parameter in "goodFeaturesToTrack", and add this code below at the end of the function insted of " Mat(corners).convertTo(_corners, _corners.fixedType() ? _corners.type() : CV_32F);" which is crashed. My own code ran well when I put the code into my project, but still crashes when I use my own source code in OpenCV libraries by putting the code into OpenCV project building it(i.e. I added my source code into OpenCV project, build it, and used new lib, dll files) I thought the parameter in goodFeaturesToTrack was not the problem, so I tried to run the same source code with 32-bit libraries, and It ran well. I think I should conclude that there is some problem in 64-bit libraries because I can run the source code using original OpenCV libraries(using original goodFeaturesToTrack function) with 32-bit things, and cannot with 64-bit things. Is there anyone who ran the function, goodFeaturesToTrack, using 64-bit libraries in the same way I did? |