initialize the output flow in EMD (thanks to Daniel DeMenthon for the bug report)
This commit is contained in:
parent
eff302a231
commit
b91313a84e
@ -1152,6 +1152,7 @@ float cv::EMD( InputArray _signature1, InputArray _signature2,
|
|||||||
{
|
{
|
||||||
_flow.create(signature1.rows, signature2.rows, CV_32F);
|
_flow.create(signature1.rows, signature2.rows, CV_32F);
|
||||||
flow = _flow.getMat();
|
flow = _flow.getMat();
|
||||||
|
flow = Scalar::all(0);
|
||||||
_cflow = flow;
|
_cflow = flow;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user