From e310added4ba598b003af9b0bf7b333a3196516d Mon Sep 17 00:00:00 2001 From: Philipp Hasper Date: Sun, 31 Aug 2014 14:37:43 +0200 Subject: [PATCH] Fixing Matx ostream operator cv::Matx could not be converted to c::Mat automatically --- modules/core/include/opencv2/core/cvstd.inl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/include/opencv2/core/cvstd.inl.hpp b/modules/core/include/opencv2/core/cvstd.inl.hpp index faa7fdb0d8..724f2f3815 100644 --- a/modules/core/include/opencv2/core/cvstd.inl.hpp +++ b/modules/core/include/opencv2/core/cvstd.inl.hpp @@ -198,7 +198,7 @@ std::ostream& operator << (std::ostream& out, const std::vector >& template static inline std::ostream& operator << (std::ostream& out, const Matx<_Tp, m, n>& matx) { - return out << Formatter::get()->format(matx); + return out << Formatter::get()->format(Mat(matx)); } template static inline