mirror of
https://github.com/opencv/opencv.git
synced 2024-11-26 04:00:30 +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;
|
||||
}
|
||||
|
||||
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
|
||||
Size_<_Tp> operator + (const Size_<_Tp>& a, const Size_<_Tp>& b)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user