Package boofcv.alg.tracker.dda
Class DetectDescribeAssociateTracker<I extends ImageGray<I>,TD extends TupleDesc<TD>>
java.lang.Object
boofcv.alg.tracker.dda.DetectDescribeAssociateTracker<I,TD>
public class DetectDescribeAssociateTracker<I extends ImageGray<I>,TD extends TupleDesc<TD>>
extends Object
Base class for detect-describe-associate type trackers. Tracker works by detecting features in each image, computing a descriptor for each feature, then associating the features together.
-
Field Summary
Modifier and TypeFieldDescriptionprotected AssociateDescriptionSets2D<TD>
protected DetectDescribePoint<I,
TD> protected FastArray<Point2D_F64>
protected DogArray_I32
protected long
protected long
protected int
protected Random
protected FastArray<Point2D_F64>
protected DogArray_I32
protected List<PointTrack>
protected DogArray<PointTrack>
protected List<PointTrack>
protected List<PointTrack>
protected List<PointTrack>
-
Constructor Summary
ModifierConstructorDescriptionprotected
DetectDescribeAssociateTracker
(DetectDescribePoint<I, TD> detector, AssociateDescription2D<TD> associate, ConfigTrackerDda config) Configures tracker -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addNewTrack
(int set, double x, double y, TD desc) Adds a new track given its location and descriptionprotected PointTrack
Creates a new track and sets the descriptorvoid
Drops all tracksboolean
dropTrack
(PointTrack track) Remove from active list and mark so that it is dropped in the next cyclevoid
dropTracks
(PointTracker.Dropper dropper) protected void
Associate detections to tracksvoid
Detect features and associate with existing tracksvoid
reset()
Discards all tracking historyprotected void
Resets the track but saves the descriptor referencevoid
Takes the current crop of detected features and makes them the keyframe
-
Field Details
-
associate
-
detector
-
tracksAll
-
tracksActive
-
tracksInactive
-
tracksDropped
-
tracksNew
-
frameID
protected long frameID -
featureID
protected long featureID -
maxInactiveTracks
protected int maxInactiveTracks -
rand
-
dstDesc
-
dstSet
-
dstPixels
-
srcDesc
-
srcSet
-
srcPixels
-
-
Constructor Details
-
DetectDescribeAssociateTracker
public DetectDescribeAssociateTracker(DetectDescribePoint<I, TD> detector, AssociateDescription2D<TD> associate, ConfigTrackerDda config) Configures tracker- Parameters:
associate
- Associationconfig
- Configures behavior.
-
DetectDescribeAssociateTracker
protected DetectDescribeAssociateTracker()
-
-
Method Details
-
createNewTrack
Creates a new track and sets the descriptor -
resetTrack
Resets the track but saves the descriptor reference -
reset
public void reset()Discards all tracking history -
process
Detect features and associate with existing tracks -
performTracking
protected void performTracking()Associate detections to tracks -
spawnTracks
public void spawnTracks()Takes the current crop of detected features and makes them the keyframe -
addNewTrack
Adds a new track given its location and description -
dropAllTracks
public void dropAllTracks()Drops all tracks -
dropTrack
Remove from active list and mark so that it is dropped in the next cycle- Parameters:
track
- The track which is to be dropped
-
dropTracks
-
getImageType
-