qtpolyora/vsview.cpp File Reference

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

Include dependency graph for vsview.cpp:

Go to the source code of this file.

Classes

struct  id_pair
struct  upair

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 void glVertex (cv::Point_< float > p)
void draw_keypoint (const 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)
void trim (string &str)

Variables

const int fps_stat_bin_size = 20
map< id_pair, unsigned > affinity_matrix
static const char * help


Define Documentation

#define M_2PI   6.283185307179586476925286766559f

Definition at line 32 of file vsview.cpp.

#define M_PI   3.141592653589793238462643383279f

Definition at line 35 of file vsview.cpp.


Function Documentation

void draw_keypoint ( const pyr_keypoint k  ) 

static void gl_hash_color ( unsigned  key  )  [static]

Definition at line 616 of file vsview.cpp.

References HSVtoRGB().

Referenced by gl_hash_mark().

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

Definition at line 623 of file vsview.cpp.

References gl_hash_color(), and M_PI.

Referenced by draw_keypoint().

static void glVertex ( cv::Point_< float >  p  )  [inline, static]

Definition at line 529 of file vsview.cpp.

Referenced by draw_keypoint().

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

Definition at line 587 of file vsview.cpp.

Referenced by gl_hash_color().

void trim ( string &  str  ) 

Definition at line 1235 of file vsview.cpp.

Referenced by VSView::load_script().


Variable Documentation

map<id_pair,unsigned> affinity_matrix

Definition at line 64 of file vsview.cpp.

const int fps_stat_bin_size = 20

Definition at line 40 of file vsview.cpp.

Referenced by VSView::summary().

const char* help [static]

Initial value:

"Key mapping:\n"
"--- Database editing ---\n"
"a: add current view without geometric check\n"
"h: add current view with Homography check\n"
"f: add current view with F-Mat check\n"
"backspace - delete visible object(s) from DB\n"
"+/-: increase/decrease detection threshold\n"
"\n--- Video/Processing control ---\n"
"tab - pause/resume video input\n"
"space - pause/resume processing\n"
"\n--- Display ---\n"
"1: Normal display\n"
"2: Keypoint display\n"
"3: Track display\n"
"4: Show annotations\n"
"d: toggles image darkening for better constrast\n"
"l/L: increase/decrease displayed pyramid level\n"
"\n--- Keypoint selection ---\n"
"click - select a point\n"
"esc - unselect point\n"
"\n--- Miscellaneous ---\n"
"s: save a screen shot as 'shot0000.png'\n"
"r: toggle track recording\n"
"p: toggle descriptor recording\n"
"q: quit the program\n"
"z: reset view\n"

Definition at line 307 of file vsview.cpp.


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