Removed unnecessary mat.t()

This commit is contained in:
Ilya Lysenkov
2012-04-10 13:04:18 +00:00
parent 829e558d48
commit 74325fe993

View File

@@ -450,7 +450,9 @@ bool EM::doTrain(int startStep, OutputArray labels, OutputArray probs, OutputArr
setIdentity(covs[clusterIndex], Scalar(covsEigenValues[clusterIndex].at<double>(0)));
}
else if(covMatType == EM::COV_MAT_DIAGONAL)
covs[clusterIndex] = Mat::diag(covsEigenValues[clusterIndex].t());
{
covs[clusterIndex] = Mat::diag(covsEigenValues[clusterIndex]);
}
}
if(labels.needed())