OpenCV  2.4.13.2
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

§ value_type

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

Constructor & Destructor Documentation

§ Size_() [1/6]

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

various constructors

§ Size_() [2/6]

template<typename _Tp>
cv::Size_< _Tp >::Size_ ( _Tp  _width,
_Tp  _height 
)
inline

§ Size_() [3/6]

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

§ Size_() [4/6]

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

§ Size_() [5/6]

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

§ Size_() [6/6]

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

Member Function Documentation

§ area()

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

the area (width*height)

§ operator CvSize()

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

conversion to the old-style OpenCV types

§ operator CvSize2D32f()

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

§ operator Size_< _Tp2 >()

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

conversion of another data type.

§ operator=()

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

Member Data Documentation

§ height

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

§ width

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

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