Commit 4f3b58d1 authored by Dikay900's avatar Dikay900

fix reshape call not being an inplace method

fixes #5853 #4740
parent afdbd855
...@@ -198,7 +198,7 @@ public: ...@@ -198,7 +198,7 @@ public:
sample.convertTo(tmp, CV_64FC1); sample.convertTo(tmp, CV_64FC1);
sample = tmp; sample = tmp;
} }
sample.reshape(1, 1); sample = sample.reshape(1, 1);
Mat probs; Mat probs;
if( _probs.needed() ) if( _probs.needed() )
...@@ -342,7 +342,7 @@ public: ...@@ -342,7 +342,7 @@ public:
if(weights0 && (startStep == START_E_STEP && covs0)) if(weights0 && (startStep == START_E_STEP && covs0))
{ {
weights0->convertTo(weights, CV_64FC1); weights0->convertTo(weights, CV_64FC1);
weights.reshape(1,1); weights = weights.reshape(1,1);
preprocessProbability(weights); preprocessProbability(weights);
} }
......
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