bazar
1.3.1
|
#include <algorithm>
#include <iostream>
#include <fstream>
#include <stdlib.h>
#include <math.h>
#include <starter.h>
#include "yape.h"
Go to the source code of this file.
Macros | |
#define | A_INF (A < Im) |
#define | A_SUP (A > Ip) |
#define | A_NOT_INF (A >= Im) |
#define | A_NOT_SUP (A <= Ip) |
#define | B0_INF (B0 < Im) |
#define | B0_SUP (B0 > Ip) |
#define | B0_NOT_INF (B0 >= Im) |
#define | B0_NOT_SUP (B0 <= Ip) |
#define | B1_INF (B1 < Im) |
#define | B1_SUP (B1 > Ip) |
#define | B1_NOT_INF (B1 >= Im) |
#define | B1_NOT_SUP (B1 <= Ip) |
#define | B2_INF (B2 < Im) |
#define | B2_SUP (B2 > Ip) |
#define | B2_NOT_INF (B2 >= Im) |
#define | B2_NOT_SUP (B2 <= Ip) |
#define | GET_A() A = I[x+dirs[a]] |
#define | GET_B0() B0 = I[x+dirs[b]] |
#define | GET_B1() b++; B1 = I[x+dirs[b]] |
#define | GET_B2() b++; B2 = I[x+dirs[b]] |
#define | GOTO_STATE(s) { score -= A + B1; state = (s); break; } |
#define | GOTO_END_NOT_AN_INTEREST_POINT { /*stats_iter[a]++;*/ Scores[x] = 0; return; } |
#define | PUT_B2_IN_B1_AND_GET_B2() B1 = B2; GET_B2() |
#define | B1_NOT_INF_B2_NOT_INF 0 |
#define | B1_NOT_SUP_B2_NOT_SUP 1 |
#define | B1_INF_B2_INF 2 |
#define | B1_SUP_B2_SUP 3 |
#define | B1_INF_B2_NOT_SUP 4 |
#define | B1_SUP_B2_NOT_INF 5 |
#define | B1_SUP_B2_INF 6 |
#define | B1_INF_B2_SUP 7 |
#define | B1_EQUAL_B2_NOT_SUP 8 |
#define | B1_EQUAL_B2_NOT_INF 9 |
#define | Dx 1 |
#define | Dy next_line |
#define | W (-Dx) |
#define | E (+Dx) |
#define | N (-Dy) |
#define | S (+Dy) |
#define | MINIMAL_SCORE (0 / radius) |
Functions | |
bool | operator< (const keypoint &p1, const keypoint &p2) |
static unsigned | mymin (unsigned a, unsigned b) |
static bool | is_local_maxima (const short *p, int neighborhood, const IplImage *scores) |
static float | fit_quadratic_2x2 (float x[2], float L[3][3]) |
Variables | |
const unsigned int | yape_bin_size = 1000 |
const int | yape_tmp_points_array_size = 10000 |
#define A_INF (A < Im) |
Definition at line 213 of file yape.cpp.
Referenced by yape::perform_one_point().
#define A_NOT_INF (A >= Im) |
Definition at line 215 of file yape.cpp.
Referenced by yape::perform_one_point().
#define A_NOT_SUP (A <= Ip) |
Definition at line 216 of file yape.cpp.
Referenced by yape::perform_one_point().
#define A_SUP (A > Ip) |
Definition at line 214 of file yape.cpp.
Referenced by yape::perform_one_point().
#define B0_INF (B0 < Im) |
Definition at line 218 of file yape.cpp.
Referenced by yape::perform_one_point().
#define B0_NOT_INF (B0 >= Im) |
Definition at line 220 of file yape.cpp.
Referenced by yape::perform_one_point().
#define B0_NOT_SUP (B0 <= Ip) |
Definition at line 221 of file yape.cpp.
Referenced by yape::perform_one_point().
#define B0_SUP (B0 > Ip) |
Definition at line 219 of file yape.cpp.
Referenced by yape::perform_one_point().
#define B1_EQUAL_B2_NOT_INF 9 |
Definition at line 251 of file yape.cpp.
Referenced by yape::perform_one_point().
#define B1_EQUAL_B2_NOT_SUP 8 |
Definition at line 250 of file yape.cpp.
Referenced by yape::perform_one_point().
#define B1_INF (B1 < Im) |
Definition at line 223 of file yape.cpp.
Referenced by yape::perform_one_point().
#define B1_INF_B2_INF 2 |
Definition at line 244 of file yape.cpp.
Referenced by yape::perform_one_point().
#define B1_INF_B2_NOT_SUP 4 |
Definition at line 246 of file yape.cpp.
Referenced by yape::perform_one_point().
#define B1_INF_B2_SUP 7 |
Definition at line 249 of file yape.cpp.
Referenced by yape::perform_one_point().
#define B1_NOT_INF (B1 >= Im) |
Definition at line 225 of file yape.cpp.
Referenced by yape::perform_one_point().
#define B1_NOT_INF_B2_NOT_INF 0 |
Definition at line 242 of file yape.cpp.
Referenced by yape::perform_one_point().
#define B1_NOT_SUP (B1 <= Ip) |
Definition at line 226 of file yape.cpp.
Referenced by yape::perform_one_point().
#define B1_NOT_SUP_B2_NOT_SUP 1 |
Definition at line 243 of file yape.cpp.
Referenced by yape::perform_one_point().
#define B1_SUP (B1 > Ip) |
Definition at line 224 of file yape.cpp.
Referenced by yape::perform_one_point().
#define B1_SUP_B2_INF 6 |
Definition at line 248 of file yape.cpp.
Referenced by yape::perform_one_point().
#define B1_SUP_B2_NOT_INF 5 |
Definition at line 247 of file yape.cpp.
Referenced by yape::perform_one_point().
#define B1_SUP_B2_SUP 3 |
Definition at line 245 of file yape.cpp.
Referenced by yape::perform_one_point().
#define B2_INF (B2 < Im) |
Definition at line 228 of file yape.cpp.
Referenced by yape::perform_one_point().
#define B2_NOT_INF (B2 >= Im) |
Definition at line 230 of file yape.cpp.
Referenced by yape::perform_one_point().
#define B2_NOT_SUP (B2 <= Ip) |
Definition at line 231 of file yape.cpp.
Referenced by yape::perform_one_point().
#define B2_SUP (B2 > Ip) |
Definition at line 229 of file yape.cpp.
Referenced by yape::perform_one_point().
#define E (+Dx) |
Definition at line 611 of file yape.cpp.
Referenced by solve_deg4(), and yape::third_check().
#define GET_A | ( | ) | A = I[x+dirs[a]] |
Definition at line 233 of file yape.cpp.
Referenced by yape::perform_one_point().
#define GET_B0 | ( | ) | B0 = I[x+dirs[b]] |
Definition at line 234 of file yape.cpp.
Referenced by yape::perform_one_point().
#define GET_B1 | ( | ) | b++; B1 = I[x+dirs[b]] |
Definition at line 235 of file yape.cpp.
Referenced by yape::perform_one_point().
#define GET_B2 | ( | ) | b++; B2 = I[x+dirs[b]] |
Definition at line 236 of file yape.cpp.
Referenced by yape::perform_one_point().
#define GOTO_END_NOT_AN_INTEREST_POINT { /*stats_iter[a]++;*/ Scores[x] = 0; return; } |
Definition at line 239 of file yape.cpp.
Referenced by yape::perform_one_point().
#define GOTO_STATE | ( | s | ) | { score -= A + B1; state = (s); break; } |
Definition at line 238 of file yape.cpp.
Referenced by yape::perform_one_point().
#define N (-Dy) |
Definition at line 612 of file yape.cpp.
Referenced by mcvSetBorder(), yape::pick_best_points(), and yape::third_check().
#define PUT_B2_IN_B1_AND_GET_B2 | ( | ) | B1 = B2; GET_B2() |
Definition at line 240 of file yape.cpp.
Referenced by yape::perform_one_point().
#define S (+Dy) |
Definition at line 613 of file yape.cpp.
Referenced by mcvHSV2RGB(), projection_matrix::set_GL_PROJECTION(), and yape::third_check().
#define W (-Dx) |
Definition at line 610 of file yape.cpp.
Referenced by yape::third_check().
|
static |
Definition at line 752 of file yape.cpp.
Referenced by yape::subpix_refine().
|
inlinestatic |
Definition at line 634 of file yape.cpp.
Referenced by yape::get_local_maxima().
|
static |
Definition at line 510 of file yape.cpp.
Referenced by yape::pick_best_points().
Definition at line 42 of file yape.cpp.
References keypoint::score.
const unsigned int yape_bin_size = 1000 |
Definition at line 39 of file yape.cpp.
Referenced by yape::get_local_maxima(), and yape::reserve_tmp_arrays().
const int yape_tmp_points_array_size = 10000 |
Definition at line 40 of file yape.cpp.
Referenced by yape::reserve_tmp_arrays().