OpenCV 5.0.0-pre
Open Source Computer Vision
|
Template class for specifying the size of an image or rectangle. More...
#include <opencv2/core/types.hpp>
Public Types | |
typedef _Tp | value_type |
Public Member Functions | |
Size_ () | |
default constructor | |
Size_ (_Tp _width, _Tp _height) | |
Size_ (const Point_< _Tp > &pt) | |
Size_ (const Size_ &sz)=default | |
Size_ (Size_ &&sz) CV_NOEXCEPT=default | |
_Tp | area () const |
the area (width*height) | |
double | aspectRatio () const |
aspect ratio (width/height) | |
bool | empty () const |
true if empty | |
template<typename _Tp2 > | |
operator Size_< _Tp2 > () const | |
conversion of another data type. | |
Size_ & | operator= (const Size_ &sz)=default |
Size_ & | operator= (Size_ &&sz) CV_NOEXCEPT=default |
Public Attributes | |
_Tp | height |
the height | |
_Tp | width |
the width | |
Template class for specifying the size of an image or rectangle.
The class includes two members called width and height. The same set of arithmetic and comparison operations as for Point_ is available.
For a 1d matrix, the size is (width, 1) and for a 0d matrix, it is (1, 1).
For an empty matrix, it is (0, 0).
OpenCV defines the following Size_<> aliases:
the area (width*height)
conversion of another data type.
the height
the width