public class ImageMotionPtkSmartRespawn<I extends boofcv.struct.image.ImageBase,IT extends georegression.struct.InvertibleTransform>
extends java.lang.Object
ImageMotionPointTrackerKey and 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.| Modifier and Type | Field and Description |
|---|---|
protected double |
containment |
protected boolean |
previousWasKeyFrame |
protected PruneCloseTracks |
pruneClose |
| Constructor and Description |
|---|
ImageMotionPtkSmartRespawn(ImageMotionPointTrackerKey<I,IT> motion,
int absoluteMinimumTracks,
double relativeInlierFraction,
double respawnCoverageFraction)
Specifies internal algorithms and reset parameters.
|
protected PruneCloseTracks pruneClose
protected boolean previousWasKeyFrame
protected double containment
public ImageMotionPtkSmartRespawn(ImageMotionPointTrackerKey<I,IT> motion, int absoluteMinimumTracks, double relativeInlierFraction, double respawnCoverageFraction)
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 numberpublic boolean process(I input)
public ImageMotionPointTrackerKey<I,IT> getMotion()