polyora/yape.cpp File Reference

#include <algorithm>
#include <iostream>
#include <fstream>
#include <stdlib.h>
#include <math.h>
#include "yape.h"

Include dependency graph for yape.cpp:

Go to the source code of this file.

Defines

#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 Documentation

#define A_INF   (A < Im)

Definition at line 198 of file yape.cpp.

Referenced by yape::perform_one_point().

#define A_NOT_INF   (A >= Im)

Definition at line 200 of file yape.cpp.

Referenced by yape::perform_one_point().

#define A_NOT_SUP   (A <= Ip)

Definition at line 201 of file yape.cpp.

Referenced by yape::perform_one_point().

#define A_SUP   (A > Ip)

Definition at line 199 of file yape.cpp.

Referenced by yape::perform_one_point().

#define B0_INF   (B0 < Im)

Definition at line 203 of file yape.cpp.

Referenced by yape::perform_one_point().

#define B0_NOT_INF   (B0 >= Im)

Definition at line 205 of file yape.cpp.

Referenced by yape::perform_one_point().

#define B0_NOT_SUP   (B0 <= Ip)

Definition at line 206 of file yape.cpp.

Referenced by yape::perform_one_point().

#define B0_SUP   (B0 > Ip)

Definition at line 204 of file yape.cpp.

Referenced by yape::perform_one_point().

#define B1_EQUAL_B2_NOT_INF   9

Definition at line 236 of file yape.cpp.

Referenced by yape::perform_one_point().

#define B1_EQUAL_B2_NOT_SUP   8

Definition at line 235 of file yape.cpp.

Referenced by yape::perform_one_point().

#define B1_INF   (B1 < Im)

Definition at line 208 of file yape.cpp.

Referenced by yape::perform_one_point().

#define B1_INF_B2_INF   2

Definition at line 229 of file yape.cpp.

Referenced by yape::perform_one_point().

#define B1_INF_B2_NOT_SUP   4

Definition at line 231 of file yape.cpp.

Referenced by yape::perform_one_point().

#define B1_INF_B2_SUP   7

Definition at line 234 of file yape.cpp.

Referenced by yape::perform_one_point().

#define B1_NOT_INF   (B1 >= Im)

Definition at line 210 of file yape.cpp.

Referenced by yape::perform_one_point().

#define B1_NOT_INF_B2_NOT_INF   0

Definition at line 227 of file yape.cpp.

Referenced by yape::perform_one_point().

#define B1_NOT_SUP   (B1 <= Ip)

Definition at line 211 of file yape.cpp.

Referenced by yape::perform_one_point().

#define B1_NOT_SUP_B2_NOT_SUP   1

Definition at line 228 of file yape.cpp.

Referenced by yape::perform_one_point().

#define B1_SUP   (B1 > Ip)

Definition at line 209 of file yape.cpp.

Referenced by yape::perform_one_point().

#define B1_SUP_B2_INF   6

Definition at line 233 of file yape.cpp.

Referenced by yape::perform_one_point().

#define B1_SUP_B2_NOT_INF   5

Definition at line 232 of file yape.cpp.

Referenced by yape::perform_one_point().

#define B1_SUP_B2_SUP   3

Definition at line 230 of file yape.cpp.

Referenced by yape::perform_one_point().

#define B2_INF   (B2 < Im)

Definition at line 213 of file yape.cpp.

Referenced by yape::perform_one_point().

#define B2_NOT_INF   (B2 >= Im)

Definition at line 215 of file yape.cpp.

Referenced by yape::perform_one_point().

#define B2_NOT_SUP   (B2 <= Ip)

Definition at line 216 of file yape.cpp.

Referenced by yape::perform_one_point().

#define B2_SUP   (B2 > Ip)

Definition at line 214 of file yape.cpp.

Referenced by yape::perform_one_point().

#define Dx   1

Definition at line 597 of file yape.cpp.

#define Dy   next_line

Definition at line 598 of file yape.cpp.

#define E   (+Dx)

Definition at line 601 of file yape.cpp.

Referenced by yape::third_check().

 
#define GET_A (  )     A = I[x+dirs[a]]

Definition at line 218 of file yape.cpp.

Referenced by yape::perform_one_point().

 
#define GET_B0 (  )     B0 = I[x+dirs[b]]

Definition at line 219 of file yape.cpp.

Referenced by yape::perform_one_point().

 
#define GET_B1 (  )     b++; B1 = I[x+dirs[b]]

Definition at line 220 of file yape.cpp.

Referenced by yape::perform_one_point().

 
#define GET_B2 (  )     b++; B2 = I[x+dirs[b]]

Definition at line 221 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 224 of file yape.cpp.

Referenced by yape::perform_one_point().

#define GOTO_STATE (  )     { score -= A + B1; state = (s); break; }

Definition at line 223 of file yape.cpp.

Referenced by yape::perform_one_point().

#define MINIMAL_SCORE   (0 / radius)

Definition at line 605 of file yape.cpp.

#define N   (-Dy)

 
#define PUT_B2_IN_B1_AND_GET_B2 (  )     B1 = B2; GET_B2()

Definition at line 225 of file yape.cpp.

Referenced by yape::perform_one_point().

#define S   (+Dy)

Definition at line 603 of file yape.cpp.

Referenced by yape::third_check().

#define W   (-Dx)

Definition at line 600 of file yape.cpp.

Referenced by patch_tagger::compute_sift_descriptor(), and yape::third_check().


Function Documentation

static float fit_quadratic_2x2 ( float  x[2],
float  L[3][3] 
) [static]

Definition at line 742 of file yape.cpp.

Referenced by yape::subpix_refine().

static bool is_local_maxima ( const short *  p,
int  neighborhood,
const IplImage *  scores 
) [inline, static]

Definition at line 624 of file yape.cpp.

Referenced by yape::get_local_maxima().

static unsigned mymin ( unsigned  a,
unsigned  b 
) [static]

Definition at line 495 of file yape.cpp.

Referenced by yape::pick_best_points().

bool operator< ( const keypoint p1,
const keypoint p2 
)

Definition at line 41 of file yape.cpp.

References keypoint::score.


Variable Documentation

const unsigned int yape_bin_size = 1000

Definition at line 38 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 39 of file yape.cpp.

Referenced by yape::reserve_tmp_arrays().


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