1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-19 19:44:14 +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

@@ -0,0 +1,17 @@
#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