1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-22 07:31:26 +08:00

A pythonic interface for surface_matching module

This commit is contained in:
Hamdi Sahloul
2019-03-12 22:05:55 +09:00
parent 75fcfa6093
commit e5763fae4b
5 changed files with 68 additions and 19 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