Commit 47de8dd3 authored by Alexander Alekhin's avatar Alexander Alekhin

python: force using of ArgInfo

parent 10828884
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
template<> struct pyopencvVecConverter<line_descriptor::KeyLine> template<> struct pyopencvVecConverter<line_descriptor::KeyLine>
{ {
static bool to(PyObject* obj, std::vector<line_descriptor::KeyLine>& value, const ArgInfo info) static bool to(PyObject* obj, std::vector<line_descriptor::KeyLine>& value, const ArgInfo& info)
{ {
return pyopencv_to_generic_vec(obj, value, info); return pyopencv_to_generic_vec(obj, value, info);
} }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
template<> struct pyopencvVecConverter<linemod::Match> 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); return pyopencv_to_generic_vec(obj, value, info);
} }
...@@ -16,7 +16,7 @@ template<> struct pyopencvVecConverter<linemod::Match> ...@@ -16,7 +16,7 @@ template<> struct pyopencvVecConverter<linemod::Match>
template<> struct pyopencvVecConverter<linemod::Template> 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); return pyopencv_to_generic_vec(obj, value, info);
} }
...@@ -29,7 +29,7 @@ template<> struct pyopencvVecConverter<linemod::Template> ...@@ -29,7 +29,7 @@ template<> struct pyopencvVecConverter<linemod::Template>
template<> struct pyopencvVecConverter<linemod::Feature> 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); return pyopencv_to_generic_vec(obj, value, info);
} }
...@@ -42,7 +42,7 @@ template<> struct pyopencvVecConverter<linemod::Feature> ...@@ -42,7 +42,7 @@ template<> struct pyopencvVecConverter<linemod::Feature>
template<> struct pyopencvVecConverter<Ptr<linemod::Modality> > 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); return pyopencv_to_generic_vec(obj, value, info);
} }
......
...@@ -67,7 +67,7 @@ typedef Ptr<PoseCluster3D> PoseCluster3DPtr; ...@@ -67,7 +67,7 @@ typedef Ptr<PoseCluster3D> PoseCluster3DPtr;
* various helper methods to work with poses * various helper methods to work with poses
* *
*/ */
class CV_EXPORTS Pose3D class CV_EXPORTS_W Pose3D
{ {
public: public:
Pose3D() Pose3D()
......
#ifdef HAVE_OPENCV_SURFACE_MATCHING
template<> struct pyopencvVecConverter<ppf_match_3d::Pose3DPtr >
{
static bool to(PyObject* obj, std::vector<ppf_match_3d::Pose3DPtr >& value, const ArgInfo& info)
{
return pyopencv_to_generic_vec(obj, value, info);
}
static PyObject* from(const std::vector<ppf_match_3d::Pose3DPtr >& value)
{
return pyopencv_from_generic_vec(value);
}
};
typedef std::vector<ppf_match_3d::Pose3DPtr> vector_Pose3DPtr;
#endif
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