public class Target
extends java.lang.Object
Constructor and Description |
---|
Target(double horizontalAngle,
double verticalAngle,
double percentArea,
double skew,
org.opencv.core.RotatedRect boundary)
Creates a target.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
org.opencv.core.RotatedRect |
getBoundary()
Get the bounding box of the target.
|
double |
getHorizontalAngle()
Get the horizontal angle from the center of the camera to the center of the target in degrees.
|
double |
getPercentArea()
Get the percent area of the target compared to the image in percentage.
|
double |
getSkew()
Get the skew of the target in degrees, from -90 to 90 where negative values are angled to the left.
|
double |
getVerticalAngle()
Get the vertical angle from the center of the camera to the center of the target in degrees.
|
int |
hashCode() |
java.lang.String |
toString() |
public Target(double horizontalAngle, double verticalAngle, double percentArea, double skew, org.opencv.core.RotatedRect boundary)
horizontalAngle
- The horizontal angle from the center of the camera to the center of the target in degrees.verticalAngle
- The vertical angle from the center of the camera to the center of the target in degrees.percentArea
- The percent area of the target to the image's area [0, 100] in percentage.skew
- The skew of the target (rotation angle) in degrees [-90, 90].boundary
- The bounding rotated rectangle of the target.public org.opencv.core.RotatedRect getBoundary()
public double getHorizontalAngle()
public double getVerticalAngle()
public double getPercentArea()
public double getSkew()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object