vobj_tracker/vobj_tracker_view.cpp File Reference

#include <iostream>
#include <highgui.h>
#include <fstream>
#include "vobj_tracker_view.h"
#include <QDir>
#include <QInputDialog>
#include <map>
#include <polyora/timer.h>
#include <math.h>
#include <QTextEdit>

Include dependency graph for vobj_tracker_view.cpp:

Go to the source code of this file.

Defines

#define M_2PI   6.283185307179586476925286766559f
#define M_PI   3.141592653589793238462643383279f

Functions

void gl_hash_mark (unsigned code, float x, float y, float orient=0, float r=5)
static bool toggle (unsigned &flags, unsigned bit)
void draw_keypoint (pyr_keypoint *k)
static void HSVtoRGB (float *r, float *g, float *b, float h, float s, float v)
static void gl_hash_color (unsigned key)
static void setupHomography (const float H[3][3])

Variables

const int fps_stat_bin_size = 20
static const char * help


Define Documentation

#define M_2PI   6.283185307179586476925286766559f

Definition at line 33 of file vobj_tracker_view.cpp.

#define M_PI   3.141592653589793238462643383279f

Definition at line 36 of file vobj_tracker_view.cpp.


Function Documentation

void draw_keypoint ( pyr_keypoint k  ) 

static void gl_hash_color ( unsigned  key  )  [static]

Definition at line 477 of file vobj_tracker_view.cpp.

References HSVtoRGB().

void gl_hash_mark ( unsigned  code,
float  x,
float  y,
float  orient = 0,
float  r = 5 
)

static void HSVtoRGB ( float *  r,
float *  g,
float *  b,
float  h,
float  s,
float  v 
) [static]

Definition at line 448 of file vobj_tracker_view.cpp.

Referenced by gl_hash_color().

static void setupHomography ( const float  H[3][3]  )  [static]

Definition at line 644 of file vobj_tracker_view.cpp.

static bool toggle ( unsigned &  flags,
unsigned  bit 
) [inline, static]

Definition at line 220 of file vobj_tracker_view.cpp.

Referenced by vobj_tracker_view::keyPressEvent().


Variable Documentation

const int fps_stat_bin_size = 20

Definition at line 41 of file vobj_tracker_view.cpp.

const char* help [static]

Initial value:

"Key mapping:\n"
"--- Database editing ---\n"
"h - add current view as a new planar object\n"
"backspace - delete visible object(s) from DB\n"
"i - toggle incremental learning\n"
"\n--- Video/Processing control ---\n"
"tab - pause/resume video input\n"
"space - pause/resume processing\n"
"\n--- Display ---\n"
"f: toggle fullscreen display\n"
"1: Display key points\n"
"2: Display tracks\n"
"3: Show matched points\n"
"4: Show augmented reality result\n"
"g: toggle augmented reality display\n"
"c: toggles gray/color display\n"
"d: toggles image darkening for better constrast\n"
"m: show/hide matches\n"
"\n--- Miscellaneous ---\n"
"s: save a screen shot as 'shot0000.png'\n"
"q: quit the program\n"
"z: reset view\n"

Definition at line 222 of file vobj_tracker_view.cpp.


Generated on Tue Mar 30 15:53:25 2010 for Polyora by  doxygen 1.5.9