public class TrackingContext extends Object
Modifier and Type | Field and Description |
---|---|
protected static float |
_affine_max_displacement_differ |
protected static int |
_affine_max_iterations |
protected static float |
_affine_max_residue |
protected static float |
_affine_min_displacement |
protected static int |
_affine_window_size |
protected static int |
_affineConsistencyCheck |
protected static float |
_grad_sigma |
protected static boolean |
_lighting_insensitive |
protected static int |
_max_iterations |
protected static float |
_max_residue |
protected static float |
_min_determinant |
protected static float |
_min_displacement |
protected static int |
_min_eigenvalue |
protected static int |
_mindist |
protected static int |
_nSkippedPixels |
protected static float |
_pyramid_sigma_fact |
protected static int |
_search_range |
protected static boolean |
_sequentialMode |
protected static float |
_smooth_sigma_fact |
protected static boolean |
_smoothBeforeSelecting |
protected static float |
_step_factor |
protected static int |
_window_size |
protected static boolean |
_writeInternalImages |
Constructor and Description |
---|
TrackingContext()
KLTCreateTrackingContext
|
Modifier and Type | Method and Description |
---|---|
void |
changeTCPyramid(int search_range)
KLTChangeTCPyramid
|
void |
computeGradients(FImage img,
float sigma,
FImage gradx,
FImage grady)
_KLTComputeGradients
|
int |
getAffineConsistencyCheck() |
int |
getMaxIterations() |
float |
getMaxResidue() |
float |
getMinDeterminant() |
float |
getMinDisplacement() |
int |
getMinDist() |
int |
getMinEigenvalue() |
PyramidSet |
getPreviousPyramid() |
float |
getStepFactor() |
int |
getSubsampling() |
Shape |
getTargetArea() |
int |
getWindowHeight() |
int |
getWindowWidth() |
boolean |
isLightingInsensitive() |
PyramidSet |
previousPyramidSet() |
boolean |
sequentialMode() |
void |
setAffineConsistencyCheck(int affineConsistencyCheck)
Enable or disable the affine consistency check
|
void |
setLightingInsensitive(boolean lighting_insensitive)
Enable or disable lighting insensitivity
|
void |
setMaxIterations(int max_iterations)
Set the maximum number of iterations
|
void |
setMaxResidue(float max_residue)
Set the maximum residue
|
void |
setMinDeterminant(float min_determinant)
Set the minimum determinant
|
void |
setMinDisplacement(float min_displacement)
Set the minimum displacement
|
void |
setMinDist(int mindist)
Set the minimum distance
|
void |
setMinEigenvalue(int min_eigenvalue)
Set the minimum eigenvalue
|
void |
setPreviousPyramid(PyramidSet pyr) |
void |
setSequentialMode(boolean sequentialMode)
Enable or disable sequential mode
|
void |
setStepFactor(float step_factor)
Set the step factor
|
void |
setSubsampling(int subsampling)
Set the amount of subsampling
|
void |
setTargetArea(Shape targetArea)
Set the target
|
void |
setWindowHeight(int window_height)
Set the window height
|
void |
setWindowWidth(int window_width)
Set the window width
|
void |
setWriteInternalImages(boolean writeInternalImages)
Enable or disable writing of internal images to disk
|
String |
toString()
KLTPrintTrackingContext
|
void |
updateTCBorder()
Updates border, which is dependent upon
smooth_sigma_fact, pyramid_sigma_fact, window_size, and subsampling
|
boolean |
writeInternalImages() |
protected static final int _mindist
protected static final int _window_size
protected static final int _min_eigenvalue
protected static final float _min_determinant
protected static final float _min_displacement
protected static final int _max_iterations
protected static final float _max_residue
protected static final float _grad_sigma
protected static final float _smooth_sigma_fact
protected static final float _pyramid_sigma_fact
protected static final float _step_factor
protected static boolean _sequentialMode
protected static final boolean _lighting_insensitive
protected static final int _affineConsistencyCheck
protected static final int _affine_window_size
protected static final int _affine_max_iterations
protected static final float _affine_max_residue
protected static final float _affine_min_displacement
protected static final float _affine_max_displacement_differ
protected static final boolean _smoothBeforeSelecting
protected static final boolean _writeInternalImages
protected static final int _search_range
protected static final int _nSkippedPixels
public TrackingContext()
public PyramidSet previousPyramidSet()
PyramidSet
of the previous image's pyramids. Null if not previous imagepublic void changeTCPyramid(int search_range)
search_range
- public void updateTCBorder()
public void computeGradients(FImage img, float sigma, FImage gradx, FImage grady)
img
- sigma
- gradx
- grady
- public int getMinDist()
public void setMinDist(int mindist)
mindist
- public int getWindowWidth()
public void setWindowWidth(int window_width)
window_width
- public int getWindowHeight()
public void setWindowHeight(int window_height)
window_height
- public boolean sequentialMode()
public void setSequentialMode(boolean sequentialMode)
sequentialMode
- public boolean writeInternalImages()
public void setWriteInternalImages(boolean writeInternalImages)
writeInternalImages
- public boolean isLightingInsensitive()
public void setLightingInsensitive(boolean lighting_insensitive)
lighting_insensitive
- public int getMinEigenvalue()
public void setMinEigenvalue(int min_eigenvalue)
min_eigenvalue
- public float getMinDeterminant()
public void setMinDeterminant(float min_determinant)
min_determinant
- public float getMinDisplacement()
public void setMinDisplacement(float min_displacement)
min_displacement
- public int getMaxIterations()
public void setMaxIterations(int max_iterations)
max_iterations
- public float getMaxResidue()
public void setMaxResidue(float max_residue)
max_residue
- public float getStepFactor()
public void setStepFactor(float step_factor)
step_factor
- public int getSubsampling()
public void setSubsampling(int subsampling)
subsampling
- public int getAffineConsistencyCheck()
public void setAffineConsistencyCheck(int affineConsistencyCheck)
affineConsistencyCheck
- public void setTargetArea(Shape targetArea)
targetArea
- public Shape getTargetArea()
public void setPreviousPyramid(PyramidSet pyr)
pyr
- set the previous pyramidspublic PyramidSet getPreviousPyramid()