One line exaggerated execution time

104 views Asked by At

I'm developing a program with OpenCV in C++. The program it's working fine. The line of code that I've put below normally needs some miliseconds to execute but sometimes the same line needs 5, 10 or even 50 seconds.

clustEM.trainE(resP.colRange(0, 2), clusters.means, clusters.covs, clusters.weights, logLikeli, labels);

Do you have any idea what could be the problem?? The inputs are normally the same size.

0

There are 0 answers