OpenCV453
公開型 | 公開メンバ関数 | 公開変数類 | 全メンバ一覧
cv::Size_< _Tp > クラステンプレート

Template class for specifying the size of an image or rectangle. [詳解]

#include <types.hpp>

公開型

typedef _Tp value_type
 

公開メンバ関数

 Size_ ()
 default constructor
 
 Size_ (_Tp _width, _Tp _height)
 
 Size_ (const Size_ &sz)
 
 Size_ (Size_ &&sz) CV_NOEXCEPT
 
 Size_ (const Point_< _Tp > &pt)
 
Size_operator= (const Size_ &sz)
 
Size_operator= (Size_ &&sz) CV_NOEXCEPT
 
_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.
 

公開変数類

_Tp width
 the width
 
_Tp height
 the height
 

詳解

template<typename _Tp>
class cv::Size_< _Tp >

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

The class includes two members called width and height. The structure can be converted to and from the old OpenCV structures CvSize and CvSize2D32f . The same set of arithmetic and comparison operations as for Point_ is available.

OpenCV defines the following Size_<> aliases:

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

このクラス詳解は次のファイルから抽出されました: