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
Fields Modifier and Type Field Description protected AssociateDescriptionSets2D<TD>
associate
protected DetectDescribePoint<I,TD>
detector
protected FastArray<TD>
dstDesc
protected FastArray<Point2D_F64>
dstPixels
protected DogArray_I32
dstSet
protected long
featureID
protected long
frameID
protected int
maxInactiveTracks
protected Random
rand
protected FastArray<TD>
srcDesc
protected FastArray<Point2D_F64>
srcPixels
protected DogArray_I32
srcSet
protected List<PointTrack>
tracksActive
protected DogArray<PointTrack>
tracksAll
protected List<PointTrack>
tracksDropped
protected List<PointTrack>
tracksInactive
protected List<PointTrack>
tracksNew
-
Constructor Summary
Constructors Modifier Constructor Description protected
DetectDescribeAssociateTracker()
DetectDescribeAssociateTracker(DetectDescribePoint<I,TD> detector, AssociateDescription2D<TD> associate, ConfigTrackerDda config)
Configures tracker -
Method Summary
Modifier and Type Method Description protected void
addNewTrack(int set, double x, double y, TD desc)
Adds a new track given its location and descriptionprotected PointTrack
createNewTrack()
Creates a new track and sets the descriptorvoid
dropAllTracks()
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)
ImageType<I>
getImageType()
protected void
performTracking()
Associate detections to tracksvoid
process(I input)
Detect features and associate with existing tracksvoid
reset()
Discards all tracking historyprotected void
resetTrack(PointTrack t)
Resets the track but saves the descriptor referencevoid
spawnTracks()
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
-