|
OpenCV 2.4.7.1 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencv.core.Size
public class Size
template
// 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
//! 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_
typedef Size2i Size;
typedef Size_
| Field Summary | |
|---|---|
double |
height
|
double |
width
|
| Constructor Summary | |
|---|---|
Size()
|
|
Size(double[] vals)
|
|
Size(double width,
double height)
|
|
Size(Point p)
|
|
| Method Summary | |
|---|---|
double |
area()
|
Size |
clone()
|
boolean |
equals(java.lang.Object obj)
|
int |
hashCode()
|
void |
set(double[] vals)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public double height
public double width
| Constructor Detail |
|---|
public Size()
public Size(double[] vals)
public Size(double width,
double height)
public Size(Point p)
| Method Detail |
|---|
public double area()
public Size clone()
clone in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic void set(double[] vals)
public java.lang.String toString()
toString in class java.lang.Object
|
OpenCV 2.4.7.1 Documentation | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||