fix uninitialized matrix in EM::predict fixes #5443

fixes #5443
pull/5866/head
Philip 9 years ago
parent f550ddb3fd
commit 1ba2286c6d
  1. 1
      modules/ml/src/em.cpp

@ -170,6 +170,7 @@ public:
if( _outputs.fixedType() )
ptype = _outputs.type();
_outputs.create(samples.rows, nclusters, ptype);
probs = _outputs.getMat();
}
else
nsamples = std::min(nsamples, 1);

Loading…
Cancel
Save