Commit 007354eb authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

Merge pull request #8233 from Sahloul:features/python_matx

parents b2da9df8 232d6b87
...@@ -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