OpenCV  2.4.13
Open Source Computer Vision
cv::Size_< _Tp > Class Template Reference

#include <core.hpp>

Public Types

typedef _Tp value_type
 

Public Member Functions

 Size_ ()
 various constructors More...
 
 Size_ (_Tp _width, _Tp _height)
 
 Size_ (const Size_ &sz)
 
 Size_ (const CvSize &sz)
 
 Size_ (const CvSize2D32f &sz)
 
 Size_ (const Point_< _Tp > &pt)
 
Size_operator= (const Size_ &sz)
 
_Tp area () const
 the area (width*height) More...
 
template<typename _Tp2 >
 operator Size_< _Tp2 > () const
 conversion of another data type. More...
 
 operator CvSize () const
 conversion to the old-style OpenCV types More...
 
 operator CvSize2D32f () const
 

Public Attributes

_Tp width
 
_Tp height
 

Detailed Description

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

The 2D size class

The class represents the size of a 2D rectangle, image size, matrix size etc. Normally, cv::Size ~ cv::Size_<int> is used.

Member Typedef Documentation

template<typename _Tp>
typedef _Tp cv::Size_< _Tp >::value_type

Constructor & Destructor Documentation

template<typename _Tp >
cv::Size_< _Tp >::Size_ ( )
inline

various constructors

template<typename _Tp>
cv::Size_< _Tp >::Size_ ( _Tp  _width,
_Tp  _height 
)
inline
template<typename _Tp>
cv::Size_< _Tp >::Size_ ( const Size_< _Tp > &  sz)
inline
template<typename _Tp>
cv::Size_< _Tp >::Size_ ( const CvSize sz)
inline
template<typename _Tp>
cv::Size_< _Tp >::Size_ ( const CvSize2D32f sz)
inline
template<typename _Tp>
cv::Size_< _Tp >::Size_ ( const Point_< _Tp > &  pt)
inline

Member Function Documentation

template<typename _Tp >
_Tp cv::Size_< _Tp >::area ( ) const
inline

the area (width*height)

template<typename _Tp >
cv::Size_< _Tp >::operator CvSize ( ) const
inline

conversion to the old-style OpenCV types

template<typename _Tp >
cv::Size_< _Tp >::operator CvSize2D32f ( ) const
inline
template<typename _Tp >
template<typename _Tp2 >
cv::Size_< _Tp >::operator Size_< _Tp2 > ( ) const
inline

conversion of another data type.

template<typename _Tp >
Size_< _Tp > & cv::Size_< _Tp >::operator= ( const Size_< _Tp > &  sz)
inline

Member Data Documentation

template<typename _Tp>
_Tp cv::Size_< _Tp >::height
template<typename _Tp>
_Tp cv::Size_< _Tp >::width

The documentation for this class was generated from the following files: