Commit 5ce2997c authored by Maria Dimashova's avatar Maria Dimashova

added assert

parent 84aff376
...@@ -448,7 +448,7 @@ void EM::computeProbabilities(const Mat& sample, int& label, Mat* probs, float* ...@@ -448,7 +448,7 @@ void EM::computeProbabilities(const Mat& sample, int& label, Mat* probs, float*
// q = arg(max_k(L_ik)) // q = arg(max_k(L_ik))
// probs_ik = exp(L_ik - L_iq) / (1 + sum_j!=q (exp(L_jk)) // 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; int dim = sample.cols;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment