OpenCV for Unity  2.6.0
Enox Software / Please refer to OpenCV official document ( ) for the details of the argument of the method.
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
OpenCVForUnity.CoreModule.Size Class Reference
Inheritance diagram for OpenCVForUnity.CoreModule.Size:

Public Member Functions

 Size (double width, double height)
 Size ()
 Size (Point p)
 Size (double[] vals)
void set (double[] vals)
double area ()
bool empty ()
Size clone ()
override int GetHashCode ()
override bool Equals (Object obj)
override string ToString ()
bool Equals (Size a)

Static Public Member Functions

static Size operator+ (Size a, Size b)
static Size operator- (Size a, Size b)
static Size operator* (Size a, double b)
static Size operator/ (Size a, double b)
static bool operator== (Size a, Size b)
static bool operator!= (Size a, Size b)

Public Attributes

double width

Detailed Description

template<typename _Tp> class CV_EXPORTS Size_

// C++ code:


typedef _Tp value_type;

//! 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);

//! the area (width*height)

_Tp area() const;

//! conversion of another data type.

template<typename _Tp2> operator Size_<_Tp2>() const;

//! conversion to the old-style OpenCV types

operator CvSize() const;

operator CvSize2D32f() const;

_Tp width, height; // the width and the height


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:

// C++ code:

typedef Size_<int> Size2i;

typedef Size2i Size;

typedef Size_<float> Size2f;

See also

Constructor & Destructor Documentation

◆ Size() [1/4]

OpenCVForUnity.CoreModule.Size.Size ( double  width,
double  height 

◆ Size() [2/4]

OpenCVForUnity.CoreModule.Size.Size ( )

◆ Size() [3/4]

OpenCVForUnity.CoreModule.Size.Size ( Point  p)

◆ Size() [4/4]

OpenCVForUnity.CoreModule.Size.Size ( double []  vals)

Member Function Documentation

◆ area()

double OpenCVForUnity.CoreModule.Size.area ( )

◆ clone()

Size OpenCVForUnity.CoreModule.Size.clone ( )

◆ empty()

bool OpenCVForUnity.CoreModule.Size.empty ( )

◆ Equals() [1/2]

bool OpenCVForUnity.CoreModule.Size.Equals ( Size  a)

◆ Equals() [2/2]

override bool OpenCVForUnity.CoreModule.Size.Equals ( Object  obj)

◆ GetHashCode()

override int OpenCVForUnity.CoreModule.Size.GetHashCode ( )

◆ operator!=()

static bool OpenCVForUnity.CoreModule.Size.operator!= ( Size  a,
Size  b 

◆ operator*()

static Size OpenCVForUnity.CoreModule.Size.operator* ( Size  a,
double  b 

◆ operator+()

static Size OpenCVForUnity.CoreModule.Size.operator+ ( Size  a,
Size  b 

◆ operator-()

static Size OpenCVForUnity.CoreModule.Size.operator- ( Size  a,
Size  b 

◆ operator/()

static Size OpenCVForUnity.CoreModule.Size.operator/ ( Size  a,
double  b 

◆ operator==()

static bool OpenCVForUnity.CoreModule.Size.operator== ( Size  a,
Size  b 

◆ set()

void OpenCVForUnity.CoreModule.Size.set ( double []  vals)

◆ ToString()

override string OpenCVForUnity.CoreModule.Size.ToString ( )

Member Data Documentation

◆ width

double OpenCVForUnity.CoreModule.Size.width

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