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
FieldsModifier and TypeFieldDescriptionintThe period at which the current frame is turned into a new keyframe -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleSpawnedTracks(PointTracker<?> tracker, VisOdomBundleAdjustment.BCamera camera) Tracker information is ignoredvoidNo need to configure or initialize anythingselectFramesToDiscard(PointTracker<?> tracker, int maxKeyFrames, int newFrames, VisOdomBundleAdjustment<?> sba) Selects frames to discard from the scene graph.voidsetVerbose(@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:
initializein interfaceVisOdomKeyFrameManager
-
selectFramesToDiscard
public DogArray_I32 selectFramesToDiscard(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
Tracker information is ignored- Specified by:
handleSpawnedTracksin interfaceVisOdomKeyFrameManager
-
setVerbose
public void setVerbose(@Nullable @Nullable PrintStream out, @Nullable @Nullable Set<String> configuration) - Specified by:
setVerbosein interfaceVerbosePrint
-