mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00
cv::Matx python wrapper
This commit is contained in:
parent
b2da9df82d
commit
232d6b87f4
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user