Class cv::Size_#

Template class for specifying the size of an image or rectangle. View details

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:

typedef Size_<int> Size2i;
typedef Size2i Size;
typedef Size_<float> Size2f;

Member Typedef Documentation#

value_type#

typedef Tp cv::Size::value_type

Constructor & Destructor Documentation#

Size_()#

cv::Size_::Size_()

default constructor

Size_()#

cv::Size_::Size_(
_Tp _width,
_Tp _height )

Size_()#

cv::Size_::Size_(const Point_< _Tp > & pt)

Size_()#

cv::Size_::Size_(const Size_ & sz)

Size_()#

cv::Size_::Size_(Size_ && sz)

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=()#

Size_ & cv::Size_::operator=(const Size_ & sz)

operator=()#

Size_ & cv::Size_::operator=(Size_ && sz)

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: