kmeans not working properly in debug mode

asked 2015-10-22 10:10:17 -0600

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?

edit retag flag offensive close merge delete

Comments

2

your question is unclear:

" link the opencv_ts300d.lib and opencv_world300d.lib" - those are the debug libs, what does "When in the project properties the debug libs are linked, there's absolutely no problem" mean then ?

btw, you don't need opencv_ts, this is only needed for the unit tests

berak gravatar imageberak ( 2015-10-22 10:49:32 -0600 )edit