Class cv::Size_#
Template class for specifying the size of an image or rectangle. View details
#include <opencv2/core/types.hpp>Collaboration diagram for cv::Size_:
Detailed Description#
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:
Member Typedef Documentation#
value_type#
typedef Tp cv::Size::value_type
Constructor & Destructor Documentation#
Size_()#
default constructor
Size_()#
Size_()#
Size_()#
Size_()#
Member Function Documentation#
area()#
Tp cv::Size::area()
the area (width*height)
aspectRatio()#
double cv::Size_::aspectRatio()
aspect ratio (width/height)
empty()#
bool cv::Size_::empty()
true if empty
operator Size_< _Tp2 >()#
template<typename _Tp2>
cv::Size_::operator Size_< _Tp2 >()
conversion of another data type.
operator=()#
operator=()#
Member Data Documentation#
height#
Tp cv::Size::height
the height
width#
Tp cv::Size::width
the width
Source file#
The documentation for this class was generated from the following file:
opencv2/core/types.hpp