mirror of
https://github.com/opencv/opencv.git
synced 2026-07-25 21:33:04 +04:00
cv::Matx python wrapper
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user