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); }