Removed unnecessary mat.t()
authorIlya Lysenkov <no@email>
Tue, 10 Apr 2012 13:04:18 +0000 (13:04 +0000)
committerIlya Lysenkov <no@email>
Tue, 10 Apr 2012 13:04:18 +0000 (13:04 +0000)
modules/ml/src/em.cpp

index d5b2e29..72617f9 100644 (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())