Ask Your Question

Revision history [back]

kmeans not working properly in debug mode

I'm using the kmeans algorithm, like this:

kmeans(samples, _clusterCount, labels, cv::TermCriteria(CV_TERMCRIT_ITER | CV_TERMCRIT_EPS, _iteration, _epsilon), _attempts, cv::KMEANS_PP_CENTERS, centers);

When in the project properties the debug libs are linked, there's absolutely no problem, everything is working as I wish. But when I link the opencv_ts300d.lib and opencv_world300d.lib, the centers parameter is not being filled the right way. Actually the second column remains uninitialized.

I'm using the x86 version on Windows and I'm working with MS VS 2013.

Is it somehow my fault or could it be a bug?