fixed flow matrix dimensionality in EMD

pull/13383/head
Vadim Pisarevsky 14 years ago
parent eebe4860da
commit 3636eec789
  1. 2
      modules/imgproc/src/emd.cpp

@ -1150,7 +1150,7 @@ float cv::EMD( InputArray _signature1, InputArray _signature2,
CvMat _ccost = cost, _cflow;
if( _flow.needed() )
{
_flow.create((int)signature1.total(), (int)signature2.total(), CV_32F);
_flow.create(signature1.rows, signature2.rows, CV_32F);
flow = _flow.getMat();
_cflow = flow;
}

Loading…
Cancel
Save