boofcv.abst.feature.tracker
Class DetectDescribeAssociate<I extends ImageGray,Desc extends TupleDesc>
- java.lang.Object
-
- boofcv.abst.feature.tracker.DetectDescribeAssociate<I,Desc>
-
- All Implemented Interfaces:
- PointTracker<I>
- Direct Known Subclasses:
- DetectDescribeAssociateTwoPass
public class DetectDescribeAssociate<I extends ImageGray,Desc extends TupleDesc> extends java.lang.Object implements PointTracker<I>
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.
-
-
Constructor Summary
Constructors Constructor and Description DetectDescribeAssociate(DdaFeatureManager<I,Desc> manager, AssociateDescription2D<Desc> associate, boolean updateDescription)Configures tracker
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voiddropAllTracks()Drops all feature to be dropped and will no longer be tracked.booleandropTrack(PointTrack track)Remove from active list and mark so that it is dropped in the next cyclejava.util.List<PointTrack>getActiveTracks(java.util.List<PointTrack> list)Returns a list of active tracks.java.util.List<PointTrack>getAllTracks(java.util.List<PointTrack> list)Returns a list of all features that are currently being trackedjava.util.List<PointTrack>getDroppedTracks(java.util.List<PointTrack> list)Returns a list of tracks dropped by the tracker during the most recent update.java.util.List<PointTrack>getInactiveTracks(java.util.List<PointTrack> list)Returns a list of inactive tracks.java.util.List<PointTrack>getNewTracks(java.util.List<PointTrack> list)Returns a list of tracks that have been added since process was called.booleanisUpdateDescription()voidprocess(I input)Process input image and perform tracking.voidreset()Discard memory of all current and past tracks.voidsetUpdateDescription(boolean updateDescription)If a feature is associated should the description be updated with the latest observation?voidspawnTracks()Takes the current crop of detected features and makes them the keyframe
-
-
-
Constructor Detail
-
DetectDescribeAssociate
public DetectDescribeAssociate(DdaFeatureManager<I,Desc> manager, AssociateDescription2D<Desc> associate, boolean updateDescription)
Configures tracker- Parameters:
associate- AssociationupdateDescription- If true then the feature description will be updated after each image. Typically this should be false.
-
-
Method Detail
-
isUpdateDescription
public boolean isUpdateDescription()
-
setUpdateDescription
public void setUpdateDescription(boolean updateDescription)
If a feature is associated should the description be updated with the latest observation?
-
reset
public void reset()
Description copied from interface:PointTrackerDiscard memory of all current and past tracks. Growing buffered might not be reset to their initial size by this method.- Specified by:
resetin interfacePointTracker<I extends ImageGray>
-
process
public void process(I input)
Description copied from interface:PointTrackerProcess input image and perform tracking.- Specified by:
processin interfacePointTracker<I extends ImageGray>- Parameters:
input- Next image in the sequence
-
spawnTracks
public void spawnTracks()
Takes the current crop of detected features and makes them the keyframe- Specified by:
spawnTracksin interfacePointTracker<I extends ImageGray>
-
dropAllTracks
public void dropAllTracks()
Description copied from interface:PointTrackerDrops all feature to be dropped and will no longer be tracked. Tracks dropped using this function will not appear in the dropped list.- Specified by:
dropAllTracksin interfacePointTracker<I extends ImageGray>
-
dropTrack
public boolean dropTrack(PointTrack track)
Remove from active list and mark so that it is dropped in the next cycle- Specified by:
dropTrackin interfacePointTracker<I extends ImageGray>- Parameters:
track- The track which is to be dropped- Returns:
- true if the request to drop the track was done or if it was ignored because the track wasn't being tracked
-
getActiveTracks
public java.util.List<PointTrack> getActiveTracks(java.util.List<PointTrack> list)
Description copied from interface:PointTrackerReturns a list of active tracks. An active track is defined as a track which was found in the most recently processed image.- Specified by:
getActiveTracksin interfacePointTracker<I extends ImageGray>- Parameters:
list- Optional storage for the list of tracks. If null a new list will be declared internally.- Returns:
- List of tracks.
-
getDroppedTracks
public java.util.List<PointTrack> getDroppedTracks(java.util.List<PointTrack> list)
Description copied from interface:PointTrackerReturns a list of tracks dropped by the tracker during the most recent update. Tracks dropped by user request are not included in this list.- Specified by:
getDroppedTracksin interfacePointTracker<I extends ImageGray>- Parameters:
list- Optional storage for the list of tracks. If null a new list will be declared internally.- Returns:
- List of tracks.
-
getNewTracks
public java.util.List<PointTrack> getNewTracks(java.util.List<PointTrack> list)
Description copied from interface:PointTrackerReturns a list of tracks that have been added since process was called.- Specified by:
getNewTracksin interfacePointTracker<I extends ImageGray>- Parameters:
list- Optional storage for the list of tracks. If null a new list will be declared internally.- Returns:
- List of tracks.
-
getAllTracks
public java.util.List<PointTrack> getAllTracks(java.util.List<PointTrack> list)
Description copied from interface:PointTrackerReturns a list of all features that are currently being tracked- Specified by:
getAllTracksin interfacePointTracker<I extends ImageGray>- Parameters:
list- Optional storage for the list of tracks. If null a new list will be declared internally.- Returns:
- List of tracks.
-
getInactiveTracks
public java.util.List<PointTrack> getInactiveTracks(java.util.List<PointTrack> list)
Description copied from interface:PointTrackerReturns a list of inactive tracks. A track is inactive if it is not associated with any features in the current image.- Specified by:
getInactiveTracksin interfacePointTracker<I extends ImageGray>- Parameters:
list- Optional storage for the list of tracks. If null a new list will be declared internally.- Returns:
- List of tracks.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG