org.opencv.core
Class Size
java.lang.Object
org.opencv.core.Size
public class Size
- extends java.lang.Object
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_ Size2i;
// C++ code:
typedef Size2i Size;
typedef Size_ Size2f;
- See Also:
- org.opencv.core.Size_
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
height
public double height
width
public double width
Size
public Size()
Size
public Size(double[] vals)
Size
public Size(double width,
double height)
Size
public Size(Point p)
area
public double area()
clone
public Size clone()
- Overrides:
clone in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
set
public void set(double[] vals)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object