Package boofcv.alg.sfm.d3.structure
Class TickTockKeyFrameManager
java.lang.Object
boofcv.alg.sfm.d3.structure.TickTockKeyFrameManager
- All Implemented Interfaces:
VisOdomKeyFrameManager
,VerbosePrint
This key frame manager performs its maintenance at a constant fixed rate independent of observations.
-
Field Summary
Modifier and TypeFieldDescriptionint
The period at which the current frame is turned into a new keyframe -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handleSpawnedTracks
(PointTracker<?> tracker, VisOdomBundleAdjustment.BCamera camera) Tracker information is ignoredvoid
No need to configure or initialize anythingselectFramesToDiscard
(PointTracker<?> tracker, int maxKeyFrames, int newFrames, VisOdomBundleAdjustment<?> sba) Selects frames to discard from the scene graph.void
setVerbose
(@Nullable PrintStream out, @Nullable Set<String> configuration)
-
Field Details
-
keyframePeriod
public int keyframePeriodThe period at which the current frame is turned into a new keyframe
-
-
Constructor Details
-
TickTockKeyFrameManager
public TickTockKeyFrameManager(int keyframePeriod) -
TickTockKeyFrameManager
public TickTockKeyFrameManager()
-
-
Method Details
-
initialize
No need to configure or initialize anything- Specified by:
initialize
in interfaceVisOdomKeyFrameManager
-
selectFramesToDiscard
public DogArray_I32 selectFramesToDiscard(PointTracker<?> tracker, int maxKeyFrames, int newFrames, VisOdomBundleAdjustment<?> sba) Description copied from interface:VisOdomKeyFrameManager
Selects 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:
selectFramesToDiscard
in 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
Tracker information is ignored- Specified by:
handleSpawnedTracks
in interfaceVisOdomKeyFrameManager
-
setVerbose
public void setVerbose(@Nullable @Nullable PrintStream out, @Nullable @Nullable Set<String> configuration) - Specified by:
setVerbose
in interfaceVerbosePrint
-