fix reshape call not being an inplace method

fixes #5853 #4740
pull/5854/head
Dikay900 9 years ago
parent afdbd855ee
commit 4f3b58d1e7
  1. 4
      modules/ml/src/em.cpp

@ -198,7 +198,7 @@ public:
sample.convertTo(tmp, CV_64FC1);
sample = tmp;
}
sample.reshape(1, 1);
sample = sample.reshape(1, 1);
Mat probs;
if( _probs.needed() )
@ -342,7 +342,7 @@ public:
if(weights0 && (startStep == START_E_STEP && covs0))
{
weights0->convertTo(weights, CV_64FC1);
weights.reshape(1,1);
weights = weights.reshape(1,1);
preprocessProbability(weights);
}

Loading…
Cancel
Save