boofcv.abst.feature.tracker
Class DetectDescribeAssociateTwoPass<I extends ImageGray,Desc extends TupleDesc>
- java.lang.Object
-
- boofcv.abst.feature.tracker.DetectDescribeAssociate<I,Desc>
-
- boofcv.abst.feature.tracker.DetectDescribeAssociateTwoPass<I,Desc>
-
- All Implemented Interfaces:
- PointTracker<I>, PointTrackerTwoPass<I>
public class DetectDescribeAssociateTwoPass<I extends ImageGray,Desc extends TupleDesc> extends DetectDescribeAssociate<I,Desc> implements PointTrackerTwoPass<I>
Changes behavior ofDetectDescribeAssociateso that it conforms to thePointTrackerTwoPassinterface. It can now take hints for where tracks might appear in the image. If possibleAssociateDescription2D.setSource(org.ddogleg.struct.FastQueue, org.ddogleg.struct.FastQueue)will only be called once on the second pass.
-
-
Constructor Summary
Constructors Constructor and Description DetectDescribeAssociateTwoPass(DdaFeatureManager<I,Desc> manager, AssociateDescription2D<Desc> associate, AssociateDescription2D<Desc> associate2, boolean updateDescription)Configure the tracker.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidfinishTracking()Finishes tracking and updates the track's description, updates inactive and drop track lists.voidperformSecondPass()Updates spacial information for each track and active list.voidprocess(I input)Process input image and perform tracking.voidsetHint(double pixelX, double pixelY, PointTrack track)Provides a hint for where the-
Methods inherited from class boofcv.abst.feature.tracker.DetectDescribeAssociate
dropAllTracks, dropTrack, getActiveTracks, getAllTracks, getDroppedTracks, getInactiveTracks, getNewTracks, isUpdateDescription, reset, setUpdateDescription, spawnTracks
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface boofcv.abst.feature.tracker.PointTracker
dropAllTracks, dropTrack, getActiveTracks, getAllTracks, getDroppedTracks, getInactiveTracks, getNewTracks, reset, spawnTracks
-
-
-
-
Constructor Detail
-
DetectDescribeAssociateTwoPass
public DetectDescribeAssociateTwoPass(DdaFeatureManager<I,Desc> manager, AssociateDescription2D<Desc> associate, AssociateDescription2D<Desc> associate2, boolean updateDescription)
Configure the tracker. The parameters associate and associate2 can be the same instance.- Parameters:
manager- Feature managerassociate- Association algorithm for the first passassociate2- Association algorithm for the second passupdateDescription- Should descriptions be updated? Typically false
-
-
Method Detail
-
process
public void process(I input)
Description copied from interface:PointTrackerProcess input image and perform tracking.- Specified by:
processin interfacePointTracker<I extends ImageGray>- Specified by:
processin interfacePointTrackerTwoPass<I extends ImageGray>- Overrides:
processin classDetectDescribeAssociate<I extends ImageGray,Desc extends TupleDesc>- Parameters:
input- Next image in the sequence
-
performSecondPass
public void performSecondPass()
Description copied from interface:PointTrackerTwoPassUpdates spacial information for each track and active list. Does not change the track description or any other lists. Can be called multiple times.- Specified by:
performSecondPassin interfacePointTrackerTwoPass<I extends ImageGray>
-
finishTracking
public void finishTracking()
Description copied from interface:PointTrackerTwoPassFinishes tracking and updates the track's description, updates inactive and drop track lists.- Specified by:
finishTrackingin interfacePointTrackerTwoPass<I extends ImageGray>
-
setHint
public void setHint(double pixelX, double pixelY, PointTrack track)Description copied from interface:PointTrackerTwoPassProvides a hint for where the- Specified by:
setHintin interfacePointTrackerTwoPass<I extends ImageGray>- Parameters:
pixelX- x-coordinate hint for where the track is in the imagepixelY- y-coordinate hint for where the track is in the imagetrack- The track for which the hint is being provided for
-
-
DataMelt 3.0 © DataMelt by jWork.ORG