projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
829e558
)
Removed unnecessary mat.t()
author
Ilya Lysenkov
<no@email>
Tue, 10 Apr 2012 13:04:18 +0000
(13:04 +0000)
committer
Ilya Lysenkov
<no@email>
Tue, 10 Apr 2012 13:04:18 +0000
(13:04 +0000)
modules/ml/src/em.cpp
patch
|
blob
|
history
diff --git
a/modules/ml/src/em.cpp
b/modules/ml/src/em.cpp
index
d5b2e29
..
72617f9
100644
(file)
--- a/
modules/ml/src/em.cpp
+++ b/
modules/ml/src/em.cpp
@@
-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())