#include <vobj_tracker_view.h>
Public Types | |
enum | { DRAW_COLOR = 1, DRAW_MATCHES = 2, DRAW_INSTANCE = 4, DRAW_TRACKS = 8, DRAW_DARK = 16, DRAW_KEYPOINTS = 32 } |
Public Member Functions | |
vobj_tracker_view (QWidget *parent, const char *name, VideoSource *vs) | |
~vobj_tracker_view () | |
void | saveCurrentFrame (const char *filename) |
Public Attributes | |
VideoSource * | vs |
bool | record |
bool | record_movie |
bool | auto_index |
bool | learning |
bool | draw_color_flag |
bool | draw_matches_flag |
bool | draw_instance_flag |
unsigned | draw_flags |
const char * | tree_fn |
const char * | clusters_fn |
const char * | descriptors_fn |
const char * | visual_db_fn |
float | threshold |
int | query_flags |
Protected Slots | |
void | timerEvent (QTimerEvent *) |
One iteration of the main loop, processes a frame. | |
void | keyPressEvent (QKeyEvent *k) |
reacts to keyboard events | |
void | mousePressEvent (QMouseEvent *event) |
void | mouseReleaseEvent (QMouseEvent *event) |
void | mouseDoubleClickEvent (QMouseEvent *event) |
void | paintGL () |
display everything in an opengl viewport | |
void | show_help () |
Definition at line 35 of file vobj_tracker_view.h.
anonymous enum |
Definition at line 73 of file vobj_tracker_view.h.
vobj_tracker_view::vobj_tracker_view | ( | QWidget * | parent, | |
const char * | name, | |||
VideoSource * | vs | |||
) |
Definition at line 47 of file vobj_tracker_view.cpp.
References auto_index, clusters_fn, descriptors_fn, DRAW_COLOR, draw_flags, DRAW_INSTANCE, VideoSource::getFrame(), VideoSource::getSize(), learning, record, record_movie, GLBox::setImage(), VideoSource::start(), threshold, tree_fn, and visual_db_fn.
vobj_tracker_view::~vobj_tracker_view | ( | ) |
void vobj_tracker_view::keyPressEvent | ( | QKeyEvent * | k | ) | [protected, slot] |
reacts to keyboard events
Definition at line 261 of file vobj_tracker_view.cpp.
References DRAW_COLOR, DRAW_DARK, draw_flags, DRAW_INSTANCE, DRAW_KEYPOINTS, DRAW_MATCHES, DRAW_TRACKS, tracks::get_nth_frame(), PyrImage::images, VideoSource::isPlaying(), pyr_frame::pyr, record, record_movie, vobj_tracker::remove_visible_objects_from_db(), GLBox::renderAndSave(), show_help(), VideoSource::start(), VideoSource::stop(), threshold, toggle(), GLBox::translate(), vobj_tracker::use_incremental_learning, visual_object::VERIFY_HOMOGRAPHY, vs, and GLBox::zoom().
void vobj_tracker_view::mouseDoubleClickEvent | ( | QMouseEvent * | event | ) | [protected, slot] |
Definition at line 364 of file vobj_tracker_view.cpp.
void vobj_tracker_view::mousePressEvent | ( | QMouseEvent * | event | ) | [protected, virtual, slot] |
void vobj_tracker_view::mouseReleaseEvent | ( | QMouseEvent * | event | ) | [protected, slot] |
Definition at line 384 of file vobj_tracker_view.cpp.
void vobj_tracker_view::paintGL | ( | ) | [protected, virtual, slot] |
display everything in an opengl viewport
Reimplemented from GLBox.
Definition at line 736 of file vobj_tracker_view.cpp.
References DRAW_COLOR, DRAW_DARK, draw_flags, DRAW_INSTANCE, DRAW_KEYPOINTS, DRAW_MATCHES, DRAW_TRACKS, tracks::get_nth_frame(), TaskTimer::popTask(), TaskTimer::pushTask(), GLBox::resizeGL(), GLBox::setAxisUp(), GLBox::setImage(), and GLBox::setImageSpace().
void vobj_tracker_view::saveCurrentFrame | ( | const char * | filename | ) |
void vobj_tracker_view::show_help | ( | ) | [protected, slot] |
void vobj_tracker_view::timerEvent | ( | QTimerEvent * | ) | [protected, slot] |
One iteration of the main loop, processes a frame.
Definition at line 116 of file vobj_tracker_view.cpp.
References tracks::get_nth_frame(), tracks::get_nth_frame_it(), VideoSource::getFrame(), VideoSource::getId(), VideoSource::getSize(), PyrImage::images, TaskTimer::popTask(), vobj_tracker::process_frame_pipeline(), TaskTimer::pushTask(), pyr_frame::pyr, record, record_movie, tracks::remove_frame(), tracks::remove_unmatched_tracks(), GLBox::renderAndSave(), GLBox::setImage(), and vs.
const char * vobj_tracker_view::clusters_fn |
const char * vobj_tracker_view::descriptors_fn |
Definition at line 72 of file vobj_tracker_view.h.
unsigned vobj_tracker_view::draw_flags |
Definition at line 81 of file vobj_tracker_view.h.
Referenced by keyPressEvent(), paintGL(), and vobj_tracker_view().
Definition at line 72 of file vobj_tracker_view.h.
Definition at line 72 of file vobj_tracker_view.h.
Definition at line 101 of file vobj_tracker_view.h.
Definition at line 67 of file vobj_tracker_view.h.
Referenced by keyPressEvent(), timerEvent(), and vobj_tracker_view().
Definition at line 68 of file vobj_tracker_view.h.
Referenced by keyPressEvent(), main(), timerEvent(), and vobj_tracker_view().
Definition at line 100 of file vobj_tracker_view.h.
Referenced by keyPressEvent(), and vobj_tracker_view().
const char* vobj_tracker_view::tree_fn |
const char* vobj_tracker_view::visual_db_fn |
Definition at line 41 of file vobj_tracker_view.h.
Referenced by keyPressEvent(), timerEvent(), and ~vobj_tracker_view().