|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.ed.inf.sdp2012.group7.vision.OrientationFinder
public class OrientationFinder
Get the robot's orientation
| Constructor Summary | |
|---|---|
OrientationFinder()
A constructor |
|
OrientationFinder(ThresholdsState thresholdsState)
A constructor |
|
| Method Summary | |
|---|---|
java.awt.Point |
findOrientation(java.util.ArrayList<java.awt.Point> pixels,
java.awt.Point centroid)
Terribly named Finds the farthest point on T away from centroid to use when calculating orientation |
double |
findOrientation(int robotX,
int robotY,
int greyX,
int greyY)
Fins the orientation Finds the orientation of a robot, given a list of the points contained within it's T-shape (in terms of a list of x coordinates and y coordinates), the mean x and y coordinates, and the image from which it was taken. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OrientationFinder(ThresholdsState thresholdsState)
thresholdsState - public OrientationFinder()
| Method Detail |
|---|
public double findOrientation(int robotX,
int robotY,
int greyX,
int greyY)
xpoints - The x-coordinates of the points contained within the T-shape.ypoints - The y-coordinates of the points contained within the T-shape.meanX - The mean x-point of the T.meanY - The mean y-point of the T.image - The image from which the points were taken.showImage - A boolean flag - if true a line will be drawn showing
the direction of orientation found.
NoAngleException
public java.awt.Point findOrientation(java.util.ArrayList<java.awt.Point> pixels,
java.awt.Point centroid)
pixels - The points on the Tcentroid - The robot centroid
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||