Commit 232d6b87 authored by Hamdi Sahloul's avatar Hamdi Sahloul

cv::Matx python wrapper

parent b2da9df8
...@@ -411,6 +411,11 @@ PyObject* pyopencv_from(const Mat& m) ...@@ -411,6 +411,11 @@ PyObject* pyopencv_from(const Mat& m)
return o; 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 { typedef struct {
PyObject_HEAD PyObject_HEAD
......
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