detector- vector iterators incompatible

asked 2013-11-19 01:06:27 -0500

openCVshoe gravatar image

updated 2013-11-20 03:19:41 -0500

I'm performing feature matching with version 2.4.5 of openCV with the same code from the openCV tutorial documentation.

std::vector<KeyPoint> keypoints_1, keypoints_2;
detector.detect( img_1, keypoints_1 );

The last line of code gives an 'assertion failed, vector iterators incompatible' error. I'm working in VS2010X64bit and the openCV is compiled the same way. I've seen a post telling the flag SECURE_SCL should be 0, and it is 0.

Thanks!

edit retag flag offensive close merge delete