boofcv.abst.feature.tracker
Class PointTrackerTwoPassKltPyramid<I extends ImageGray,D extends ImageGray>
- java.lang.Object
-
- boofcv.abst.feature.tracker.PointTrackerKltPyramid<I,D>
-
- boofcv.abst.feature.tracker.PointTrackerTwoPassKltPyramid<I,D>
-
- All Implemented Interfaces:
- PointTracker<I>, PointTrackerTwoPass<I>
public class PointTrackerTwoPassKltPyramid<I extends ImageGray,D extends ImageGray> extends PointTrackerKltPyramid<I,D> implements PointTrackerTwoPass<I>
Changes behavior ofPointTrackerKltPyramidso that it conforms to thePointTrackerTwoPassinterface.
-
-
Constructor Summary
Constructors Constructor and Description PointTrackerTwoPassKltPyramid(KltConfig config, int templateRadius, PyramidDiscrete<I> pyramid, GeneralFeatureDetector<I,D> detector, ImageGradient<I,D> gradient, InterpolateRectangle<I> interpInput, InterpolateRectangle<D> interpDeriv)
-
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.java.util.List<PointTrack>getAllTracks(java.util.List<PointTrack> list)Returns a list of all features that are currently being trackedvoidperformSecondPass()Updates spacial information for each track and active list.voidprocess(I image)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.PointTrackerKltPyramid
addTrack, dropAllTracks, dropTrack, getActiveTracks, getDroppedTracks, getInactiveTracks, getNewTracks, reset, 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, getDroppedTracks, getInactiveTracks, getNewTracks, reset, spawnTracks
-
-
-
-
Constructor Detail
-
PointTrackerTwoPassKltPyramid
public PointTrackerTwoPassKltPyramid(KltConfig config, int templateRadius, PyramidDiscrete<I> pyramid, GeneralFeatureDetector<I,D> detector, ImageGradient<I,D> gradient, InterpolateRectangle<I> interpInput, InterpolateRectangle<D> interpDeriv)
-
-
Method Detail
-
process
public void process(I image)
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 classPointTrackerKltPyramid<I extends ImageGray,D extends ImageGray>- Parameters:
image- 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
-
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>- Overrides:
getAllTracksin classPointTrackerKltPyramid<I extends ImageGray,D 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