OpenCV for Unity
2.6.0
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.9.0/index.html ) for the details of the argument of the method.
|
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 |
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;
OpenCVForUnity.CoreModule.Size.Size | ( | double | width, |
double | height | ||
) |
OpenCVForUnity.CoreModule.Size.Size | ( | ) |
OpenCVForUnity.CoreModule.Size.Size | ( | Point | p | ) |
OpenCVForUnity.CoreModule.Size.Size | ( | double [] | vals | ) |
double OpenCVForUnity.CoreModule.Size.area | ( | ) |
Size OpenCVForUnity.CoreModule.Size.clone | ( | ) |
bool OpenCVForUnity.CoreModule.Size.empty | ( | ) |
bool OpenCVForUnity.CoreModule.Size.Equals | ( | Size | a | ) |
override bool OpenCVForUnity.CoreModule.Size.Equals | ( | Object | obj | ) |
override int OpenCVForUnity.CoreModule.Size.GetHashCode | ( | ) |
void OpenCVForUnity.CoreModule.Size.set | ( | double [] | vals | ) |
override string OpenCVForUnity.CoreModule.Size.ToString | ( | ) |
double OpenCVForUnity.CoreModule.Size.width |