Classes | |
class | FeatureDists |
Functions | |
def | on_mouse |
the mouse callback | |
def | ptptdist |
Variables | |
add_remove_pt = False | |
tuple | c = cv.WaitKey(0) |
tuple | cc = chr(c) |
int | count = 0 |
tuple | dist = math.sqrt(math.pow(the_point[0] - p[0], 2) + math.pow(the_point[1] - p[1], 2)) |
list | dist_list = [] |
tuple | eig = cv.CreateImage(cv.GetSize (grey), 32, 1) |
int | fc = 0 |
list | features = [] |
int | flags = 0 |
tuple | frame = cv.LoadImage(frames[fc]) |
list | frames = sys.argv[1:] |
tuple | grey = cv.CreateImage(cv.GetSize (frame), 8, 1) |
image = None | |
some "global" variables | |
int | MAX_COUNT = 500 |
int | min_distance = 10 |
need_to_init = False | |
night_mode = False | |
tuple | prev_grey = cv.CreateImage(cv.GetSize (frame), 8, 1) |
tuple | prev_pyramid = cv.CreateImage(cv.GetSize (frame), 8, 1) |
pt = None | |
tuple | pyramid = cv.CreateImage(cv.GetSize (frame), 8, 1) |
float | quality = 0.01 |
tuple | temp = cv.CreateImage(cv.GetSize (grey), 32, 1) |
int | win_size = 10 |
some "constants" |
def track_features_lk.on_mouse | ( | event, | |
x, | |||
y, | |||
flags, | |||
param | |||
) |
the mouse callback
Definition at line 34 of file track_features_lk.py.
def track_features_lk.ptptdist | ( | p0, | |
p1 | |||
) |
Definition at line 160 of file track_features_lk.py.
int track_features_lk::add_remove_pt = False |
Definition at line 25 of file track_features_lk.py.
tuple track_features_lk::c = cv.WaitKey(0) |
Definition at line 209 of file track_features_lk.py.
tuple track_features_lk::cc = chr(c) |
Definition at line 221 of file track_features_lk.py.
int track_features_lk::count = 0 |
Definition at line 174 of file track_features_lk.py.
tuple track_features_lk::dist = math.sqrt(math.pow(the_point[0] - p[0], 2) + math.pow(the_point[1] - p[1], 2)) |
Definition at line 179 of file track_features_lk.py.
list track_features_lk::dist_list = [] |
Definition at line 175 of file track_features_lk.py.
tuple track_features_lk::eig = cv.CreateImage(cv.GetSize (grey), 32, 1) |
Definition at line 114 of file track_features_lk.py.
tuple track_features_lk::fc = 0 |
Definition at line 84 of file track_features_lk.py.
list track_features_lk::features = [] |
Definition at line 98 of file track_features_lk.py.
int track_features_lk::flags = 0 |
Definition at line 26 of file track_features_lk.py.
tuple track_features_lk::frame = cv.LoadImage(frames[fc]) |
Definition at line 88 of file track_features_lk.py.
list track_features_lk::frames = sys.argv[1:] |
Definition at line 62 of file track_features_lk.py.
tuple track_features_lk::grey = cv.CreateImage(cv.GetSize (frame), 8, 1) |
Definition at line 94 of file track_features_lk.py.
tuple track_features_lk::image = None |
some "global" variables
Definition at line 23 of file track_features_lk.py.
int track_features_lk::MAX_COUNT = 500 |
Definition at line 18 of file track_features_lk.py.
int track_features_lk::min_distance = 10 |
Definition at line 119 of file track_features_lk.py.
track_features_lk::need_to_init = False |
Definition at line 28 of file track_features_lk.py.
track_features_lk::night_mode = False |
Definition at line 27 of file track_features_lk.py.
tuple track_features_lk::prev_grey = cv.CreateImage(cv.GetSize (frame), 8, 1) |
Definition at line 95 of file track_features_lk.py.
tuple track_features_lk::prev_pyramid = cv.CreateImage(cv.GetSize (frame), 8, 1) |
Definition at line 97 of file track_features_lk.py.
Definition at line 24 of file track_features_lk.py.
tuple track_features_lk::pyramid = cv.CreateImage(cv.GetSize (frame), 8, 1) |
Definition at line 96 of file track_features_lk.py.
float track_features_lk::quality = 0.01 |
Definition at line 118 of file track_features_lk.py.
tuple track_features_lk::temp = cv.CreateImage(cv.GetSize (grey), 32, 1) |
Definition at line 115 of file track_features_lk.py.
int track_features_lk::win_size = 10 |
some "constants"
Definition at line 17 of file track_features_lk.py.