Package boofcv.alg.sfm.d3.structure
Class TickTockKeyFrameManager
- java.lang.Object
-
- boofcv.alg.sfm.d3.structure.TickTockKeyFrameManager
-
- All Implemented Interfaces:
VisOdomKeyFrameManager,org.ddogleg.struct.VerbosePrint
public class TickTockKeyFrameManager extends java.lang.Object implements VisOdomKeyFrameManager
This key frame manager performs its maintenance at a constant fixed rate independent of observations.
-
-
Field Summary
Fields Modifier and Type Field Description intkeyframePeriodThe period at which the current frame is turned into a new keyframe
-
Constructor Summary
Constructors Constructor Description TickTockKeyFrameManager()TickTockKeyFrameManager(int keyframePeriod)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleSpawnedTracks(boofcv.abst.tracker.PointTracker<?> tracker, VisOdomBundleAdjustment.BCamera camera)Tracker information is ignoredvoidinitialize(org.ddogleg.struct.FastAccess<VisOdomBundleAdjustment.BCamera> cameras)No need to configure or initialize anythingorg.ddogleg.struct.GrowQueue_I32selectFramesToDiscard(boofcv.abst.tracker.PointTracker<?> tracker, int maxKeyFrames, int newFrames, VisOdomBundleAdjustment<?> sba)Selects frames to discard from the scene graph.voidsetVerbose(java.io.PrintStream out, java.util.Set<java.lang.String> configuration)
-
-
-
Method Detail
-
initialize
public void initialize(org.ddogleg.struct.FastAccess<VisOdomBundleAdjustment.BCamera> cameras)
No need to configure or initialize anything- Specified by:
initializein interfaceVisOdomKeyFrameManager
-
selectFramesToDiscard
public org.ddogleg.struct.GrowQueue_I32 selectFramesToDiscard(boofcv.abst.tracker.PointTracker<?> tracker, int maxKeyFrames, int newFrames, VisOdomBundleAdjustment<?> sba)Description copied from interface:VisOdomKeyFrameManagerSelects frames to discard from the scene graph. The most recent frame(s) (highest index value) is assumed to be the current tracker frame.- Specified by:
selectFramesToDiscardin interfaceVisOdomKeyFrameManager- Parameters:
tracker- Feature trackermaxKeyFrames- Maximum number of allowed key framesnewFrames- Number of new frames addedsba- scene graph- Returns:
- Returns a list of frames to discard. They are in sequential order from least to greatest.
-
handleSpawnedTracks
public void handleSpawnedTracks(boofcv.abst.tracker.PointTracker<?> tracker, VisOdomBundleAdjustment.BCamera camera)Tracker information is ignored- Specified by:
handleSpawnedTracksin interfaceVisOdomKeyFrameManager
-
setVerbose
public void setVerbose(@Nullable java.io.PrintStream out, @Nullable java.util.Set<java.lang.String> configuration)- Specified by:
setVerbosein interfaceorg.ddogleg.struct.VerbosePrint
-
-