diff --git a/modules/xphoto/src/norm2.hpp b/modules/xphoto/src/norm2.hpp index 205827d4650..1f26ef9c4be 100644 --- a/modules/xphoto/src/norm2.hpp +++ b/modules/xphoto/src/norm2.hpp @@ -59,10 +59,10 @@ template struct same_as : ttype {}; // is_same template struct is_norm2_type : - int_const::value + int_const::value && !same_as<_Tp, uint8_t>::value - && !same_as<_Tp, ushort>::value - && !same_as<_Tp, uint>::value>{}; + && !same_as<_Tp, uint16_t>::value + && !same_as<_Tp, uint32_t>::value>{}; template static inline typename iftype< is_norm2_type<_Tp>::value, _Tp >:: type norm2(cv::Vec<_Tp, cn> a, cv::Vec<_Tp, cn> b) { return (a - b).dot(a - b); }