cv::Matx python wrapper

This commit is contained in:
Hamdi Sahloul 2017-02-21 11:29:28 +09:00
parent b2da9df82d
commit 232d6b87f4

View File

@ -411,6 +411,11 @@ PyObject* pyopencv_from(const Mat& m)
return o;
}
template<typename _Tp, int m, int n>
PyObject* pyopencv_from(const Matx<_Tp, m, n>& matx)
{
return pyopencv_from(Mat(matx));
}
typedef struct {
PyObject_HEAD