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 c8c750a + 9edb0ce commit 0810cfbCopy full SHA for 0810cfb
modules/xphoto/src/norm2.hpp
@@ -59,10 +59,10 @@ template <class T> struct same_as<T, T> : ttype {}; // is_same
59
60
61
template <typename _Tp> struct is_norm2_type :
62
- int_const<bool, !same_as<_Tp, char>::value
+ int_const<bool, !same_as<_Tp, int8_t>::value
63
&& !same_as<_Tp, uint8_t>::value
64
- && !same_as<_Tp, ushort>::value
65
- && !same_as<_Tp, uint>::value>{};
+ && !same_as<_Tp, uint16_t>::value
+ && !same_as<_Tp, uint32_t>::value>{};
66
67
template <typename _Tp, int cn> static inline typename iftype< is_norm2_type<_Tp>::value, _Tp >::
68
type norm2(cv::Vec<_Tp, cn> a, cv::Vec<_Tp, cn> b) { return (a - b).dot(a - b); }
0 commit comments