Skip to content

Commit c5e0fa9

Browse files
committed
Merge pull request #2353 from alalek:python_fix_arginfo
2 parents d1fc1c6 + 47de8dd commit c5e0fa9

File tree

4 files changed

+23
-6
lines changed

4 files changed

+23
-6
lines changed

modules/line_descriptor/misc/python/pyopencv_LSDDetector.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
template<> struct pyopencvVecConverter<line_descriptor::KeyLine>
44
{
5-
static bool to(PyObject* obj, std::vector<line_descriptor::KeyLine>& value, const ArgInfo info)
5+
static bool to(PyObject* obj, std::vector<line_descriptor::KeyLine>& value, const ArgInfo& info)
66
{
77
return pyopencv_to_generic_vec(obj, value, info);
88
}

modules/rgbd/misc/python/pyopencv_linemod.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
template<> struct pyopencvVecConverter<linemod::Match>
55
{
6-
static bool to(PyObject* obj, std::vector<linemod::Match>& value, const ArgInfo info)
6+
static bool to(PyObject* obj, std::vector<linemod::Match>& value, const ArgInfo& info)
77
{
88
return pyopencv_to_generic_vec(obj, value, info);
99
}
@@ -16,7 +16,7 @@ template<> struct pyopencvVecConverter<linemod::Match>
1616

1717
template<> struct pyopencvVecConverter<linemod::Template>
1818
{
19-
static bool to(PyObject* obj, std::vector<linemod::Template>& value, const ArgInfo info)
19+
static bool to(PyObject* obj, std::vector<linemod::Template>& value, const ArgInfo& info)
2020
{
2121
return pyopencv_to_generic_vec(obj, value, info);
2222
}
@@ -29,7 +29,7 @@ template<> struct pyopencvVecConverter<linemod::Template>
2929

3030
template<> struct pyopencvVecConverter<linemod::Feature>
3131
{
32-
static bool to(PyObject* obj, std::vector<linemod::Feature>& value, const ArgInfo info)
32+
static bool to(PyObject* obj, std::vector<linemod::Feature>& value, const ArgInfo& info)
3333
{
3434
return pyopencv_to_generic_vec(obj, value, info);
3535
}
@@ -42,7 +42,7 @@ template<> struct pyopencvVecConverter<linemod::Feature>
4242

4343
template<> struct pyopencvVecConverter<Ptr<linemod::Modality> >
4444
{
45-
static bool to(PyObject* obj, std::vector<Ptr<linemod::Modality> >& value, const ArgInfo info)
45+
static bool to(PyObject* obj, std::vector<Ptr<linemod::Modality> >& value, const ArgInfo& info)
4646
{
4747
return pyopencv_to_generic_vec(obj, value, info);
4848
}

modules/surface_matching/include/opencv2/surface_matching/pose_3d.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ typedef Ptr<PoseCluster3D> PoseCluster3DPtr;
6767
* various helper methods to work with poses
6868
*
6969
*/
70-
class CV_EXPORTS Pose3D
70+
class CV_EXPORTS_W Pose3D
7171
{
7272
public:
7373
Pose3D()
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#ifdef HAVE_OPENCV_SURFACE_MATCHING
2+
3+
template<> struct pyopencvVecConverter<ppf_match_3d::Pose3DPtr >
4+
{
5+
static bool to(PyObject* obj, std::vector<ppf_match_3d::Pose3DPtr >& value, const ArgInfo& info)
6+
{
7+
return pyopencv_to_generic_vec(obj, value, info);
8+
}
9+
10+
static PyObject* from(const std::vector<ppf_match_3d::Pose3DPtr >& value)
11+
{
12+
return pyopencv_from_generic_vec(value);
13+
}
14+
};
15+
16+
typedef std::vector<ppf_match_3d::Pose3DPtr> vector_Pose3DPtr;
17+
#endif

0 commit comments

Comments
 (0)