|
|
|
@ -1275,19 +1275,11 @@ Matx<_Tp, m, n> operator * (double alpha, const Matx<_Tp, m, n>& a) |
|
|
|
|
return Matx<_Tp, m, n>(a, alpha, Matx_ScaleOp()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
template<typename _Tp, int m, int n> static inline |
|
|
|
|
Matx<_Tp, m, n>& operator /= (Matx<_Tp, m, n>& a, int alpha) |
|
|
|
|
{ |
|
|
|
|
for( int i = 0; i < m*n; i++ ) |
|
|
|
|
a.val[i] = saturate_cast<_Tp>(a.val[i] / alpha); |
|
|
|
|
return a; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
template<typename _Tp, int m, int n> static inline |
|
|
|
|
Matx<_Tp, m, n>& operator /= (Matx<_Tp, m, n>& a, float alpha) |
|
|
|
|
{ |
|
|
|
|
for( int i = 0; i < m*n; i++ ) |
|
|
|
|
a.val[i] = saturate_cast<_Tp>(a.val[i] / alpha); |
|
|
|
|
a.val[i] = a.val[i] / alpha; |
|
|
|
|
return a; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -1295,16 +1287,10 @@ template<typename _Tp, int m, int n> static inline |
|
|
|
|
Matx<_Tp, m, n>& operator /= (Matx<_Tp, m, n>& a, double alpha) |
|
|
|
|
{ |
|
|
|
|
for( int i = 0; i < m*n; i++ ) |
|
|
|
|
a.val[i] = saturate_cast<_Tp>(a.val[i] / alpha); |
|
|
|
|
a.val[i] = a.val[i] / alpha; |
|
|
|
|
return a; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
template<typename _Tp, int m, int n> static inline |
|
|
|
|
Matx<_Tp, m, n> operator / (const Matx<_Tp, m, n>& a, int alpha) |
|
|
|
|
{ |
|
|
|
|
return Matx<_Tp, m, n>(a, 1./alpha, Matx_ScaleOp()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
template<typename _Tp, int m, int n> static inline |
|
|
|
|
Matx<_Tp, m, n> operator / (const Matx<_Tp, m, n>& a, float alpha) |
|
|
|
|
{ |
|
|
|
|