OpenCV for Unity  2.3.0
Enox Software / Please refer to OpenCV official document(http://docs.opencv.org/3.4.1/index.html) for the details of the argument of the method.
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
OpenCVForUnity.Size Class Reference
Inheritance diagram for OpenCVForUnity.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:

public:

typedef _Tp value_type;

//! various constructors

Size_();

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
org.opencv.core.Size_

Constructor & Destructor Documentation

OpenCVForUnity.Size.Size ( double  width,
double  height 
)
OpenCVForUnity.Size.Size ( )
OpenCVForUnity.Size.Size ( Point  p)
OpenCVForUnity.Size.Size ( double[]  vals)

Member Function Documentation

double OpenCVForUnity.Size.area ( )
Size OpenCVForUnity.Size.clone ( )
bool OpenCVForUnity.Size.empty ( )
override bool OpenCVForUnity.Size.Equals ( Object  obj)
bool OpenCVForUnity.Size.Equals ( Size  a)
override int OpenCVForUnity.Size.GetHashCode ( )
static bool OpenCVForUnity.Size.operator!= ( Size  a,
Size  b 
)
static
static Size OpenCVForUnity.Size.operator* ( Size  a,
double  b 
)
static
static Size OpenCVForUnity.Size.operator+ ( Size  a,
Size  b 
)
static
static Size OpenCVForUnity.Size.operator- ( Size  a,
Size  b 
)
static
static Size OpenCVForUnity.Size.operator/ ( Size  a,
double  b 
)
static
static bool OpenCVForUnity.Size.operator== ( Size  a,
Size  b 
)
static
void OpenCVForUnity.Size.set ( double[]  vals)
override string OpenCVForUnity.Size.ToString ( )

Member Data Documentation

double OpenCVForUnity.Size.width

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