Skip to content

Commit 5bfaf99

Browse files
committed
Merge pull request opencv#8228 from csukuangfj:csukuangfj-patch
2 parents 007354e + b1851e2 commit 5bfaf99

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,12 @@ std::ostream& operator << (std::ostream& out, const Mat& mtx)
183183
return out << Formatter::get()->format(mtx);
184184
}
185185

186+
static inline
187+
std::ostream& operator << (std::ostream& out, const UMat& m)
188+
{
189+
return out << m.getMat(ACCESS_READ);
190+
}
191+
186192
template<typename _Tp> static inline
187193
std::ostream& operator << (std::ostream& out, const Complex<_Tp>& c)
188194
{

0 commit comments

Comments
 (0)