From c9489a8bf3a8d5861963bf51d51391a09018424c Mon Sep 17 00:00:00 2001 From: Alexander Shishkov Date: Fri, 16 Mar 2012 09:50:20 +0000 Subject: [PATCH] fixed #1643 --- modules/core/include/opencv2/core/mat.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/core/include/opencv2/core/mat.hpp b/modules/core/include/opencv2/core/mat.hpp index 5912239383..658ae5b37c 100644 --- a/modules/core/include/opencv2/core/mat.hpp +++ b/modules/core/include/opencv2/core/mat.hpp @@ -1353,17 +1353,17 @@ template static inline void min(double s, const Mat_<_Tp>& a, Mat_ template static inline void max(const Mat_<_Tp>& a, const Mat_<_Tp>& b, Mat_<_Tp>& c) { - cv::min((const Mat&)a, (const Mat&)b, (Mat&)c); + cv::max((const Mat&)a, (const Mat&)b, (Mat&)c); } template static inline void max(const Mat_<_Tp>& a, double s, Mat_<_Tp>& c) { - cv::min((const Mat&)a, s, (Mat&)c); + cv::max((const Mat&)a, s, (Mat&)c); } template static inline void max(double s, const Mat_<_Tp>& a, Mat_<_Tp>& c) { - cv::min((const Mat&)a, s, (Mat&)c); + cv::max((const Mat&)a, s, (Mat&)c); }