public class KLTTracker extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
KLTTracker.SelectionMode
Modes of operation for selecting features.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
KLT_LARGE_RESIDUE
The residue was too large
|
static int |
KLT_MAX_ITERATIONS
The maximum number of iterations was exceeded
|
static int |
KLT_NOT_FOUND
The feature was not found
|
static int |
KLT_OOB
The feature was out of bouns
|
static int |
KLT_SMALL_DET
The determinant was too small
|
static int |
KLT_TRACKED
The feature was tracked
|
protected int |
KLT_verbose |
| Constructor and Description |
|---|
KLTTracker(int nfeatures)
Construct with the given target number of features.
|
KLTTracker(TrackingContext tc,
FeatureList featurelist)
Construct with the given context and feature list
|
| Modifier and Type | Method and Description |
|---|---|
FeatureList |
getFeatureList() |
TrackingContext |
getTrackingContext() |
boolean |
isNorm() |
void |
replaceLostFeatures(FImage img)
KLTReplaceLostFeatures
Main routine, visible to the outside.
|
void |
selectGoodFeatures(FImage img)
KLTSelectGoodFeatures
Main routine, visible to the outside.
|
void |
setFeatureList(FeatureList featurelist)
Set the tracking context
|
void |
setNorm(boolean isNorm)
Set whether input images are in [0,1] (true) or [0,255] (false).
|
void |
setTrackingContext(TrackingContext tc)
Set the tracking context
|
void |
setVerbosity(int verbosity)
KLTSetVerbosity
|
void |
trackFeatures(FImage img1,
FImage img2)
KLTTrackFeatures
Tracks feature points from one image to the next.
|
void |
trackFeatures(FImage img1,
FImage img2,
PyramidSet pyr1,
PyramidSet pyr2)
KLTTrackFeatures
Tracks feature points from one image to the next.
|
protected int KLT_verbose
public static final int KLT_TRACKED
public static final int KLT_NOT_FOUND
public static final int KLT_SMALL_DET
public static final int KLT_MAX_ITERATIONS
public static final int KLT_OOB
public static final int KLT_LARGE_RESIDUE
public KLTTracker(int nfeatures)
nfeatures - public KLTTracker(TrackingContext tc, FeatureList featurelist)
tc - featurelist - public void selectGoodFeatures(FImage img)
img - Pointer to the data of an image (probably unsigned chars).
OUTPUTS features: List of features. The member nFeatures is
computed.public void replaceLostFeatures(FImage img)
img - Pointer to the data of an image (probably unsigned chars).
OUTPUTS features: List of features. The member nFeatures is
computed.public void setVerbosity(int verbosity)
verbosity - public void trackFeatures(FImage img1, FImage img2)
img1 - img2 - public void trackFeatures(FImage img1, FImage img2, PyramidSet pyr1, PyramidSet pyr2)
img1 - img2 - pyr1 - pyr2 - public TrackingContext getTrackingContext()
public void setTrackingContext(TrackingContext tc)
tc - public FeatureList getFeatureList()
public void setFeatureList(FeatureList featurelist)
featurelist - public boolean isNorm()
public void setNorm(boolean isNorm)
isNorm -