BamBirds 2021
de.uniba.sme.bambirds.vision.VisionTraj Class Reference
Collaboration diagram for de.uniba.sme.bambirds.vision.VisionTraj:

Public Member Functions

 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)
 

Public Attributes

String identifier = "lvl"
 

Private Attributes

BufferedImage image
 
int _nHeight
 
int _nWidth
 

Static Private Attributes

static VisualDebugger DBG = new VisualDebugger("VisionTraj")
 

Constructor & Destructor Documentation

◆ VisionTraj()

de.uniba.sme.bambirds.vision.VisionTraj.VisionTraj ( BufferedImage  img)

Custom image processing to extract trajectory points, eg.
findTrajectory(Slingshot, Point2D.Double, List)

Member Function Documentation

◆ 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
trajThe raw points
actualTapPointTap point returned by findTrajectory(Slingshot, Point2D.Double, List)
originUsually the slingshot pivot. Or Actual Tap Point for after tap analysis
originAngleLaunchAngle for Slingshot and Impact Angle for after tap analysis
slingWidthScale independent distance between trajectory points
ignoreBeforeAll points before the tap are ignored
ignoreAfterAll 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
tapPointIgnore all trajectory points after bird tap (pass
null
to ignore)
trajAn empty
List<Point2D.Double>
Returns
Actual tap point, Trajectory points are returned in parameter traj

The documentation for this class was generated from the following file: