Fixing Matx ostream operator
authorPhilipp Hasper <PhilLab@users.noreply.github.com>
Sun, 31 Aug 2014 12:37:43 +0000 (14:37 +0200)
committerPhilipp Hasper <PhilLab@users.noreply.github.com>
Sun, 31 Aug 2014 12:37:43 +0000 (14:37 +0200)
cv::Matx could not be converted to c::Mat automatically

modules/core/include/opencv2/core/cvstd.inl.hpp

index faa7fdb..724f2f3 100644 (file)
@@ -198,7 +198,7 @@ std::ostream& operator << (std::ostream& out, const std::vector<Point3_<_Tp> >&
 template<typename _Tp, int m, int n> 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<typename _Tp> static inline