Skip to content

Commit 232d6b8

Browse files
committed
cv::Matx python wrapper
1 parent b2da9df commit 232d6b8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/python/src2/cv2.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,11 @@ PyObject* pyopencv_from(const Mat& m)
411411
return o;
412412
}
413413

414+
template<typename _Tp, int m, int n>
415+
PyObject* pyopencv_from(const Matx<_Tp, m, n>& matx)
416+
{
417+
return pyopencv_from(Mat(matx));
418+
}
414419

415420
typedef struct {
416421
PyObject_HEAD

0 commit comments

Comments
 (0)