cv::Size_< _Tp > Class Template Reference

The 2D size class. More...

#include <core.hpp>

List of all members.

Public Types

typedef _Tp value_type

Public Member Functions

 Size_ ()
 various constructors
 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)
template<typename _Tp2 >
 operator Size_< _Tp2 > () const
 conversion of another data type.
 operator CvSize () const
 conversion to the old-style OpenCV types
 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_ (  ) 

various constructors

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

Member Function Documentation

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

the area (width*height)

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

conversion of another data type.

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

conversion to the old-style OpenCV types

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

Member Data Documentation

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

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