Commit a110dc14 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

fixed bug in Python's calcEMD2 (ticket #1763)

parent ad8258f8
...@@ -3383,7 +3383,7 @@ static PyObject *pycvCalcEMD2(PyObject *self, PyObject *args, PyObject *kw) ...@@ -3383,7 +3383,7 @@ static PyObject *pycvCalcEMD2(PyObject *self, PyObject *args, PyObject *kw)
PyObject *pyobj_cost_matrix = NULL; PyObject *pyobj_cost_matrix = NULL;
CvArr* flow=NULL; CvArr* flow=NULL;
PyObject *pyobj_flow = NULL; PyObject *pyobj_flow = NULL;
float lower_bound = 0.0; float lower_bound = FLT_MAX;
PyObject *userdata = NULL; PyObject *userdata = NULL;
if (!PyArg_ParseTupleAndKeywords(args, kw, "OOi|OOOfO", (char**)keywords, if (!PyArg_ParseTupleAndKeywords(args, kw, "OOi|OOOfO", (char**)keywords,
......
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