Commit 72f4386f authored by Andrey Kamaev's avatar Andrey Kamaev

Probably fixed EM tests failure on x86 platforms (thanks to Maria D.)

parent 44098b2f
......@@ -502,10 +502,9 @@ Vec2d EM::computeProbabilities(const Mat& sample, Mat* probs) const
Lval += w * val * val;
}
CV_DbgAssert(!logWeightDivDet.empty());
Lval = logWeightDivDet.at<double>(clusterIndex) - 0.5 * Lval;
L.at<double>(clusterIndex) = Lval;
L.at<double>(clusterIndex) = logWeightDivDet.at<double>(clusterIndex) - 0.5 * Lval;
if(Lval > L.at<double>(label))
if(L.at<double>(clusterIndex) > L.at<double>(label))
label = clusterIndex;
}
......
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