We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 89a1e80 + ff0601c commit 532885cCopy full SHA for 532885c
modules/core/include/opencv2/core/cvstd.hpp
@@ -67,6 +67,11 @@
67
68
namespace cv
69
{
70
+ static inline uchar abs(uchar a) { return a; }
71
+ static inline ushort abs(ushort a) { return a; }
72
+ static inline unsigned abs(unsigned a) { return a; }
73
+ static inline uint64 abs(uint64 a) { return a; }
74
+
75
using std::min;
76
using std::max;
77
using std::abs;
@@ -77,14 +82,6 @@ namespace cv
82
using std::log;
78
83
}
79
84
80
-namespace std
81
-{
- static inline uchar abs(uchar a) { return a; }
- static inline ushort abs(ushort a) { return a; }
- static inline unsigned abs(unsigned a) { return a; }
85
- static inline uint64 abs(uint64 a) { return a; }
86
-}
87
-
88
#else
89
90
0 commit comments