opencv on mbed

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Size_< _Tp > Class Template Reference

Size_< _Tp > Class Template Reference
[Basic structures]

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

#include <types.hpp>

Public Member Functions

 Size_ ()
 various constructors
_Tp area () const
 the area (width*height)
template<typename _Tp2 >
 operator Size_< _Tp2 > () const
 conversion of another data type.

Detailed Description

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;

Definition at line 284 of file types.hpp.


Constructor & Destructor Documentation

Size_ (  )

various constructors


Member Function Documentation

_Tp area (  ) const

the area (width*height)

operator Size_< _Tp2 > (  ) const

conversion of another data type.