1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-20 04:25:42 +08:00

python: force using of ArgInfo

This commit is contained in:
Alexander Alekhin
2019-11-15 18:04:16 +03:00
parent 10828884ec
commit 47de8dd38f
4 changed files with 23 additions and 6 deletions

View File

@@ -3,7 +3,7 @@
template<> struct pyopencvVecConverter<linemod::Match>
{
static bool to(PyObject* obj, std::vector<linemod::Match>& value, const ArgInfo info)
static bool to(PyObject* obj, std::vector<linemod::Match>& value, const ArgInfo& info)
{
return pyopencv_to_generic_vec(obj, value, info);
}
@@ -16,7 +16,7 @@ template<> struct pyopencvVecConverter<linemod::Match>
template<> struct pyopencvVecConverter<linemod::Template>
{
static bool to(PyObject* obj, std::vector<linemod::Template>& value, const ArgInfo info)
static bool to(PyObject* obj, std::vector<linemod::Template>& value, const ArgInfo& info)
{
return pyopencv_to_generic_vec(obj, value, info);
}
@@ -29,7 +29,7 @@ template<> struct pyopencvVecConverter<linemod::Template>
template<> struct pyopencvVecConverter<linemod::Feature>
{
static bool to(PyObject* obj, std::vector<linemod::Feature>& value, const ArgInfo info)
static bool to(PyObject* obj, std::vector<linemod::Feature>& value, const ArgInfo& info)
{
return pyopencv_to_generic_vec(obj, value, info);
}
@@ -42,7 +42,7 @@ template<> struct pyopencvVecConverter<linemod::Feature>
template<> struct pyopencvVecConverter<Ptr<linemod::Modality> >
{
static bool to(PyObject* obj, std::vector<Ptr<linemod::Modality> >& value, const ArgInfo info)
static bool to(PyObject* obj, std::vector<Ptr<linemod::Modality> >& value, const ArgInfo& info)
{
return pyopencv_to_generic_vec(obj, value, info);
}