Commit b91313a8 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

initialize the output flow in EMD (thanks to Daniel DeMenthon for the bug report)

parent eff302a2
......@@ -1152,6 +1152,7 @@ float cv::EMD( InputArray _signature1, InputArray _signature2,
{
_flow.create(signature1.rows, signature2.rows, CV_32F);
flow = _flow.getMat();
flow = Scalar::all(0);
_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