|
| | VisionTraj (BufferedImage img) |
| |
| Point2D.Double | findTrajectory (final Slingshot sling, final Point2D.Double tapPoint, List< Point2D.Double > traj) |
| |
| List< Point2D.Double > | filteredTrajectory (List< Point2D.Double > traj, Point2D.Double actualTapPoint, Point2D.Double origin, double originAngle, double slingWidth, boolean ignoreBefore, boolean ignoreAfter) |
| |
|
|
String | identifier = "lvl" |
| |
|
|
BufferedImage | image |
| |
|
int | _nHeight |
| |
|
int | _nWidth |
| |
◆ VisionTraj()
| de.uniba.sme.bambirds.vision.VisionTraj.VisionTraj |
( |
BufferedImage |
img | ) |
|
◆ filteredTrajectory()
| List< Point2D.Double > de.uniba.sme.bambirds.vision.VisionTraj.filteredTrajectory |
( |
List< Point2D.Double > |
traj, |
|
|
Point2D.Double |
actualTapPoint, |
|
|
Point2D.Double |
origin, |
|
|
double |
originAngle, |
|
|
double |
slingWidth, |
|
|
boolean |
ignoreBefore, |
|
|
boolean |
ignoreAfter |
|
) |
| |
Takes raw trajectory points and filters for actual points, removing outliers.
- Parameters
-
| traj | The raw points |
| actualTapPoint | Tap point returned by findTrajectory(Slingshot, Point2D.Double, List) |
| origin | Usually the slingshot pivot. Or Actual Tap Point for after tap analysis |
| originAngle | LaunchAngle for Slingshot and Impact Angle for after tap analysis |
| slingWidth | Scale independent distance between trajectory points |
| ignoreBefore | All points before the tap are ignored |
| ignoreAfter | All points after the tap are ignored |
- Returns
- Filtered List
◆ findTrajectory()
| Point2D.Double de.uniba.sme.bambirds.vision.VisionTraj.findTrajectory |
( |
final Slingshot |
sling, |
|
|
final Point2D.Double |
tapPoint, |
|
|
List< Point2D.Double > |
traj |
|
) |
| |
Get the trajectory points by image processing; the remaining tiny clouds.
- Parameters
-
| tapPoint | Ignore all trajectory points after bird tap (pass to ignore) |
| traj | An empty |
- Returns
- Actual tap point, Trajectory points are returned in parameter traj
The documentation for this class was generated from the following file: