1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-25 21:33:04 +04:00

Expose CirclesGridFinderParameters in findCirclesGrid.

This commit is contained in:
Hans Gaiser
2017-03-01 11:52:25 +01:00
parent f46fa6e096
commit 11b24eb49f
6 changed files with 62 additions and 39 deletions
+15
View File
@@ -798,6 +798,21 @@ PyObject* pyopencv_from(const Size& sz)
return Py_BuildValue("(ii)", sz.width, sz.height);
}
template<>
bool pyopencv_to(PyObject* obj, Size_<float>& sz, const char* name)
{
(void)name;
if(!obj || obj == Py_None)
return true;
return PyArg_ParseTuple(obj, "ff", &sz.width, &sz.height) > 0;
}
template<>
PyObject* pyopencv_from(const Size_<float>& sz)
{
return Py_BuildValue("(ff)", sz.width, sz.height);
}
template<>
bool pyopencv_to(PyObject* obj, Rect& r, const char* name)
{