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
FieldsModifier and TypeFieldDescriptionprotected AssociateDescriptionSets2D<TD>protected DetectDescribePoint<I,TD> protected FastArray<Point2D_F64>protected DogArray_I32protected longprotected longprotected intprotected Randomprotected FastArray<Point2D_F64>protected DogArray_I32protected List<PointTrack>protected DogArray<PointTrack>protected List<PointTrack>protected List<PointTrack>protected List<PointTrack> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDetectDescribeAssociateTracker(DetectDescribePoint<I, TD> detector, AssociateDescription2D<TD> associate, ConfigTrackerDda config) Configures tracker -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddNewTrack(int set, double x, double y, TD desc) Adds a new track given its location and descriptionprotected PointTrackCreates a new track and sets the descriptorvoidDrops all tracksbooleandropTrack(PointTrack track) Remove from active list and mark so that it is dropped in the next cyclevoiddropTracks(PointTracker.Dropper dropper) protected voidAssociate detections to tracksvoidDetect features and associate with existing tracksvoidreset()Discards all tracking historyprotected voidResets the track but saves the descriptor referencevoidTakes 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
-