mirror of
https://github.com/opencv/opencv.git
synced 2025-06-10 19:24:07 +08:00
Implementing division operators.
This commit is contained in:
parent
d7a8166720
commit
d3d9b538c7
@ -1326,6 +1326,21 @@ Size_<_Tp> operator * (Size_<_Tp> a, _Tp b)
|
|||||||
return a;
|
return a;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template<typename _Tp> static inline
|
||||||
|
Size_<_Tp>& operator /= (Size_<_Tp>& a, _Tp b)
|
||||||
|
{
|
||||||
|
a.width /= b;
|
||||||
|
a.height /= b;
|
||||||
|
return a;
|
||||||
|
}
|
||||||
|
|
||||||
|
template<typename _Tp> static inline
|
||||||
|
Size_<_Tp> operator / (Size_<_Tp> a, _Tp b)
|
||||||
|
{
|
||||||
|
a /= b;
|
||||||
|
return a;
|
||||||
|
}
|
||||||
|
|
||||||
template<typename _Tp> static inline
|
template<typename _Tp> static inline
|
||||||
Size_<_Tp> operator + (const Size_<_Tp>& a, const Size_<_Tp>& b)
|
Size_<_Tp> operator + (const Size_<_Tp>& a, const Size_<_Tp>& b)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user