#include <vsview.h>
Classes | |
struct | script_instruction |
Public Slots | |
void | timerEvent (QTimerEvent *) |
void | keyPressEvent (QKeyEvent *k) |
void | mousePressEvent (QMouseEvent *event) |
void | mouseReleaseEvent (QMouseEvent *event) |
void | mouseDoubleClickEvent (QMouseEvent *event) |
void | paintGL () |
Paint the box. | |
void | show_help () |
Public Member Functions | |
VSView (QWidget *parent, const char *name, VideoSource *vs) | |
~VSView () | |
void | saveCurrentFrame (const char *filename) |
bool | load_script (const char *fn) |
void | summary () |
Public Attributes | |
VideoSource * | vs |
bool | record |
bool | record_pts |
bool | record_movie |
bool | auto_index |
bool | dark |
const char * | tree_fn |
const char * | clusters_fn |
const char * | descriptors_fn |
const char * | visual_db_fn |
float | threshold |
int | query_flags |
bool | use_pipeline |
Protected Member Functions | |
void | script_exec (int id) |
void | segment_scene () |
Protected Attributes | |
int | nlost |
QWidget * | help_window |
Definition at line 35 of file vsview.h.
VSView::VSView | ( | QWidget * | parent, | |
const char * | name, | |||
VideoSource * | vs | |||
) |
Definition at line 67 of file vsview.cpp.
References auto_index, clusters_fn, dark, descriptors_fn, VideoSource::getFrame(), VideoSource::getSize(), help_window, nlost, record, record_movie, record_pts, GLBox::setImage(), VideoSource::start(), threshold, tree_fn, use_pipeline, visual_db_fn, and GLBox::zoom().
VSView::~VSView | ( | ) |
void VSView::keyPressEvent | ( | QKeyEvent * | k | ) | [slot] |
Definition at line 351 of file vsview.cpp.
References auto_index, dark, tracks::get_nth_frame(), init_query_with_frame(), VideoSource::isPlaying(), record, record_movie, record_pts, GLBox::renderAndSave(), show_help(), VideoSource::start(), VideoSource::stop(), summary(), threshold, GLBox::translate(), visual_object::VERIFY_FMAT, visual_object::VERIFY_HOMOGRAPHY, vs, and GLBox::zoom().
bool VSView::load_script | ( | const char * | fn | ) |
void VSView::mouseDoubleClickEvent | ( | QMouseEvent * | event | ) | [slot] |
Definition at line 504 of file vsview.cpp.
void VSView::mousePressEvent | ( | QMouseEvent * | event | ) | [virtual, slot] |
void VSView::mouseReleaseEvent | ( | QMouseEvent * | event | ) | [slot] |
Definition at line 524 of file vsview.cpp.
void VSView::paintGL | ( | ) | [virtual, slot] |
Paint the box.
The actual openGL commands for drawing the box are performed here.
Reimplemented from GLBox.
Definition at line 929 of file vsview.cpp.
References dark, IplTexture::drawQuad(), tracks::get_nth_frame(), visual_object::get_total(), IplTexture::getIm(), PyrImage::images, TaskTimer::popTask(), TaskTimer::pushTask(), pyr_frame::pyr, GLBox::resizeGL(), GLBox::setAxisUp(), and GLBox::setImageSpace().
void VSView::saveCurrentFrame | ( | const char * | filename | ) |
void VSView::script_exec | ( | int | id | ) | [protected] |
Definition at line 1308 of file vsview.cpp.
References visual_object::get_comment(), visual_object::VERIFY_FMAT, and visual_object::VERIFY_HOMOGRAPHY.
Referenced by timerEvent().
void VSView::segment_scene | ( | ) | [protected] |
Definition at line 419 of file vsview.cpp.
References tracks::all_tracks, bucket2d< T >::begin(), pyr_keypoint::cid, tracks::get_nth_frame(), tracks::get_nth_frame_it(), ttrack::length, tkeypoint::matches, mlist_elem< T >::next, nlost, tframe::points, tracks::remove_frame(), tkeypoint::track, and ttrack::track_node.
void VSView::show_help | ( | ) | [slot] |
void VSView::summary | ( | ) |
Definition at line 1286 of file vsview.cpp.
References fps_stat_bin_size, and TaskTimer::printStats().
Referenced by keyPressEvent(), and timerEvent().
void VSView::timerEvent | ( | QTimerEvent * | ) | [slot] |
Definition at line 143 of file vsview.cpp.
References auto_index, pyr_keypoint::cid, visual_database::create_incremental_query(), incremental_query::get_best(), visual_object::get_comment(), visual_object::get_correspondences(), tracks::get_nth_frame(), tracks::get_nth_frame_it(), VideoSource::getFrame(), VideoSource::getId(), VideoSource::getSize(), pyr_keypoint::id, GLBox::image, PyrImage::images, init_query_with_frame(), tkeypoint::matches, mlist_elem< T >::next, TaskTimer::popTask(), kpt_tracker::process_frame(), kpt_tracker::process_frame_pipeline(), TaskTimer::pushTask(), pyr_frame::pyr, record, record_movie, record_pts, tracks::remove_frame(), tracks::remove_unmatched_tracks(), GLBox::renderAndSave(), script_exec(), GLBox::setImage(), summary(), threshold, update_query_with_frame(), use_pipeline, and vs.
bool VSView::auto_index |
const char * VSView::clusters_fn |
bool VSView::dark |
const char * VSView::descriptors_fn |
QWidget* VSView::help_window [protected] |
int VSView::nlost [protected] |
bool VSView::record |
Definition at line 61 of file vsview.h.
Referenced by keyPressEvent(), main(), timerEvent(), and VSView().
bool VSView::record_movie |
bool VSView::record_pts |
Definition at line 62 of file vsview.h.
Referenced by keyPressEvent(), main(), timerEvent(), and VSView().
float VSView::threshold |
const char* VSView::tree_fn |
bool VSView::use_pipeline |
const char* VSView::visual_db_fn |