OpenCV3.41 - Size_ Class Template Referece

cv::Size_<_Tp > Class Template Reference
Template class for specifying the size of an image or rectangle .

#include "types.hpp"

Detailed Description :
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;

Member Typedef Documentation :

value_type
typedef _Tp cv::Size<_Tp >::value_type

Constructor & Destructor Documentation :

Size_( ) [1 / 4]
cv::Size_<_Tp >::Size( )

default constructor .

Size_( ) [2 / 4]
cv::Size_<_Tp >::Size( _Tp _width, _Tp _height )

Size_( ) [3 / 4]
cv::Size_<Tp >::Size( const Size_<_Tp > & sz )

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

Member Function Documentation :

area( )
Tp cv::Size_<_Tp > ::area( )

the area (width * height ) .

empty( )
bool cv::Size_<_Tp >::empty( )

true if empty .

operator Size_<Tp2 > ( )
cv::Size
<Tp >::operator Size<_Tp2 > ( )

conversion of another data type .

operator = ( )
Size_ & cv::Size_<Tp >::operator = ( const Size<_Tp > & sz)

Member Data Documentation :

height
Tp cv::Size_<_Tp >::height

the height .

width
Tp cv::Size_<_Tp >::width

the width .

The documentation for this class was generated from the following file :
core/include/opencv2/core/types.hpp

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值