lib.klt

Wrapper for Birchfield’s free implementation of the Kanade-Lucas-Tomasi feature tracker.

Feature

class supreme.lib.klt.Feature

Bases: _ctypes.Structure

__init__()
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
aff_Axx
Structure/Union member
aff_Axy
Structure/Union member
aff_Ayx
Structure/Union member
aff_Ayy
Structure/Union member
aff_img
Structure/Union member
aff_img_gradx
Structure/Union member
aff_img_grady
Structure/Union member
aff_x
Structure/Union member
aff_y
Structure/Union member
val
Structure/Union member
x
Structure/Union member
y
Structure/Union member

FeatureHistory

class supreme.lib.klt.FeatureHistory

Bases: _ctypes.Structure

__init__()
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
feature
Structure/Union member
nFrames
Structure/Union member

FeatureList

class supreme.lib.klt.FeatureList(n)

Bases: _ctypes.Structure

__init__(n)
as_array()
feature
Structure/Union member
nFeatures
Structure/Union member
to_image(img)

FeatureTable

class supreme.lib.klt.FeatureTable

Bases: _ctypes.Structure

__init__()
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
feature
Structure/Union member
nFeatures
Structure/Union member
nFrames
Structure/Union member

FloatImage

class supreme.lib.klt.FloatImage

Bases: _ctypes.Structure

__init__()
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
data
Structure/Union member
ncols
Structure/Union member
nrows
Structure/Union member

Structure

class supreme.lib.klt.Structure

Bases: _ctypes._CData

Structure base class

__init__()
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

TrackingContext

class supreme.lib.klt.TrackingContext

Bases: _ctypes.Structure

__init__()
borderx
Structure/Union member
bordery
Structure/Union member
grad_sigma
Structure/Union member
lighting_insensitive
Structure/Union member
max_iterations
Structure/Union member
max_residue
Structure/Union member
min_determinant
Structure/Union member
min_displacement
Structure/Union member
min_eigenvalue
Structure/Union member
mindist
Structure/Union member
nPyramidLevels
Structure/Union member
nSkippedPixels
Structure/Union member
pyramid_last
Structure/Union member
pyramid_last_gradx
Structure/Union member
pyramid_last_grady
Structure/Union member
pyramid_sigma_fact
Structure/Union member
sequentialMode
Structure/Union member
smoothBeforeSelecting
Structure/Union member
smooth_sigma_fact
Structure/Union member
subsampling
Structure/Union member
window_height
Structure/Union member
window_width
Structure/Union member
writeInternalImages
Structure/Union member
supreme.lib.klt.replace_lost_features(...)
supreme.lib.klt.select_good_features(...)
supreme.lib.klt.track_features(...)

replace_lost_features

supreme.lib.klt.replace_lost_features(tracking_context, img, features)

select_good_features

supreme.lib.klt.select_good_features(tracking_context, img, features)

track_features

supreme.lib.klt.track_features(tracking_context, img1, img2, features)