added assert

This commit is contained in:
Maria Dimashova 2012-04-06 17:10:26 +00:00
parent 84aff376a7
commit 5ce2997c84

View File

@ -448,7 +448,7 @@ void EM::computeProbabilities(const Mat& sample, int& label, Mat* probs, float*
// q = arg(max_k(L_ik))
// probs_ik = exp(L_ik - L_iq) / (1 + sum_j!=q (exp(L_jk))
CV_DbgAssert(sample.rows == 1);
CV_Assert(sample.rows == 1);
int dim = sample.cols;