#include <iostream>
#include <highgui.h>
#include <fstream>
#include "vsview.h"
#include <QInputDialog>
#include <map>
#include <polyora/timer.h>
#include <math.h>
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 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.
void draw_keypoint | ( | const pyr_keypoint * | k | ) |
Definition at line 534 of file vsview.cpp.
References pyr_keypoint::cid, pyr_keypoint::descriptor, gl_hash_mark(), glVertex(), patch_tagger::descriptor::orientation, pyr_keypoint::scale, point2d::u, and point2d::v.
static void gl_hash_color | ( | unsigned | key | ) | [static] |
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] |
static void HSVtoRGB | ( | float * | r, | |
float * | g, | |||
float * | b, | |||
float | h, | |||
float | s, | |||
float | v | |||
) | [static] |
void trim | ( | string & | str | ) |
map<id_pair,unsigned> affinity_matrix |
Definition at line 64 of file vsview.cpp.
const int fps_stat_bin_size = 20 |
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.