Commit 3636eec7 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

fixed flow matrix dimensionality in EMD

parent eebe4860
......@@ -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;
}
......
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