Package boofcv.alg.sfm.d2
Class ImageMotionPtkSmartRespawn<I extends boofcv.struct.image.ImageBase<I>,IT extends georegression.struct.InvertibleTransform>
- java.lang.Object
-
- boofcv.alg.sfm.d2.ImageMotionPtkSmartRespawn<I,IT>
-
public class ImageMotionPtkSmartRespawn<I extends boofcv.struct.image.ImageBase<I>,IT extends georegression.struct.InvertibleTransform> extends java.lang.ObjectExamines tracks inside ofImageMotionPointTrackerKeyand decides when new feature tracks should be respawned. Tracks are respawned when an absolute minimum is reached, when the number of inliers has dropped past a certain threshold, and when the area covered by the inliers decreases by too much. Prunes clusters of closely packed points. These tend to be non-informative and use up computational resources.
-
-
Field Summary
Fields Modifier and Type Field Description protected doublecontainmentprotected booleanpreviousWasKeyFrameprotected boofcv.alg.tracker.PruneCloseTracks<boofcv.abst.tracker.PointTrack>pruneClose
-
Constructor Summary
Constructors Constructor Description ImageMotionPtkSmartRespawn(ImageMotionPointTrackerKey<I,IT> motion, int absoluteMinimumTracks, double relativeInlierFraction, double respawnCoverageFraction)Specifies internal algorithms and reset parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImageMotionPointTrackerKey<I,IT>getMotion()booleanprocess(I input)
-
-
-
Constructor Detail
-
ImageMotionPtkSmartRespawn
public ImageMotionPtkSmartRespawn(ImageMotionPointTrackerKey<I,IT> motion, int absoluteMinimumTracks, double relativeInlierFraction, double respawnCoverageFraction)
Specifies internal algorithms and reset parameters.- Parameters:
motion- Algorithm for estimating image motionabsoluteMinimumTracks- Create new key-frame if number of inliers drops below this numberrelativeInlierFraction- Create new key-frame if ratio of inliers to the original count drops below this numberrespawnCoverageFraction- Create new key-frame if ratio point area coverage below this number
-
-
Method Detail
-
process
public boolean process(I input)
-
getMotion
public ImageMotionPointTrackerKey<I,IT> getMotion()
-
-