From 232d6b87f44a284e39a18e15e10ff29efbfa4352 Mon Sep 17 00:00:00 2001 From: Hamdi Sahloul Date: Tue, 21 Feb 2017 11:29:28 +0900 Subject: [PATCH] cv::Matx python wrapper --- modules/python/src2/cv2.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/python/src2/cv2.cpp b/modules/python/src2/cv2.cpp index 66e3733cec..25f4554ece 100644 --- a/modules/python/src2/cv2.cpp +++ b/modules/python/src2/cv2.cpp @@ -411,6 +411,11 @@ PyObject* pyopencv_from(const Mat& m) return o; } +template +PyObject* pyopencv_from(const Matx<_Tp, m, n>& matx) +{ + return pyopencv_from(Mat(matx)); +} typedef struct { PyObject_HEAD