Probably fixed EM tests failure on x86 platforms (thanks to Maria D.)
This commit is contained in:
parent
44098b2fbb
commit
72f4386fb9
@ -502,10 +502,9 @@ Vec2d EM::computeProbabilities(const Mat& sample, Mat* probs) const
|
|||||||
Lval += w * val * val;
|
Lval += w * val * val;
|
||||||
}
|
}
|
||||||
CV_DbgAssert(!logWeightDivDet.empty());
|
CV_DbgAssert(!logWeightDivDet.empty());
|
||||||
Lval = logWeightDivDet.at<double>(clusterIndex) - 0.5 * Lval;
|
L.at<double>(clusterIndex) = logWeightDivDet.at<double>(clusterIndex) - 0.5 * Lval;
|
||||||
L.at<double>(clusterIndex) = Lval;
|
|
||||||
|
|
||||||
if(Lval > L.at<double>(label))
|
if(L.at<double>(clusterIndex) > L.at<double>(label))
|
||||||
label = clusterIndex;
|
label = clusterIndex;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user