Commit 74325fe9 authored by Ilya Lysenkov's avatar Ilya Lysenkov

Removed unnecessary mat.t()

parent 829e558d
......@@ -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())
......
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