patch_tagger Class Reference

#include <patchtagger.h>

Collaboration diagram for patch_tagger:

Collaboration graph
[legend]

List of all members.

Classes

struct  descriptor
struct  grad2polar_entry
struct  histo_entry
struct  random_node

Public Member Functions

void cmp_descriptor (CvMat *patch, descriptor *d, float subpix_u, float subpix_v)
unsigned project (patch_tagger::descriptor *d)
void precalc ()

Static Public Member Functions

static patch_taggersingleton ()

Static Public Attributes

static const unsigned patch_size = 16
static const unsigned nb_zone = 4
static const unsigned nb_orient = 16
static const unsigned nb_test = 16

Static Protected Member Functions

static void compute_sift_descriptor (float *descr_pt, cv::Mat patch)
 SIFT descriptor (inspired by siftpp).

Protected Attributes

histo_entry weight_table [patch_size][patch_size]
grad2polar_entry cart2polar_table [512][512]
random_node random_tests [nb_test]
CvMat weight
unsigned char _mask [patch_size][patch_size]
CvMat mask

Static Protected Attributes

static float _weight [patch_size][patch_size]
static float tot_weight = 0


Detailed Description

Definition at line 26 of file patchtagger.h.


Member Function Documentation

void patch_tagger::cmp_descriptor ( CvMat *  patch,
patch_tagger::descriptor d,
float  subpix_u,
float  subpix_v 
)

void patch_tagger::compute_sift_descriptor ( float *  descr_pt,
cv::Mat  patch 
) [static, protected]

SIFT descriptor (inspired by siftpp).

The function computes the descriptor of the keypoint keypoint. The function fills the buffer descr_pt which must be large enough. The funciton uses angle0 as rotation of the keypoint. By calling the function multiple times, different orientations can be evaluated.

Remarks:
The function needs to compute the gradient modululs and orientation of the Gaussian scale space octave to which the keypoint belongs. The result is cached, but discarded if different octaves are visited. Thereofre it is much quicker to evaluate the keypoints in their natural octave order.
The function silently abort the computations of keypoints without the scale space boundaries. See also siftComputeOrientations().

Definition at line 394 of file patchtagger.cpp.

References atd, M_2PI, M_PI, max(), min(), normalize_histogram(), W, and weight.

Referenced by patch_tagger::descriptor::array().

void patch_tagger::precalc (  ) 

unsigned patch_tagger::project ( patch_tagger::descriptor d  ) 

patch_tagger * patch_tagger::singleton (  )  [static]

Definition at line 93 of file patchtagger.cpp.

References precalc().

Referenced by pyr_keypoint::prepare_patch().


Member Data Documentation

unsigned char patch_tagger::_mask[patch_size][patch_size] [protected]

Definition at line 89 of file patchtagger.h.

Referenced by precalc().

float patch_tagger::_weight [static, protected]

Definition at line 85 of file patchtagger.h.

Referenced by cmp_descriptor(), and precalc().

Definition at line 76 of file patchtagger.h.

Referenced by cmp_descriptor(), and precalc().

CvMat patch_tagger::mask [protected]

Definition at line 90 of file patchtagger.h.

Referenced by cmp_descriptor(), and precalc().

const unsigned patch_tagger::nb_orient = 16 [static]

Definition at line 31 of file patchtagger.h.

Referenced by cmp_descriptor(), precalc(), and project().

const unsigned patch_tagger::nb_test = 16 [static]

Definition at line 32 of file patchtagger.h.

Referenced by precalc(), and project().

const unsigned patch_tagger::nb_zone = 4 [static]

Definition at line 30 of file patchtagger.h.

Referenced by cmp_descriptor(), precalc(), and project().

const unsigned patch_tagger::patch_size = 16 [static]

Definition at line 83 of file patchtagger.h.

Referenced by precalc(), and project().

float patch_tagger::tot_weight = 0 [static, protected]

Definition at line 87 of file patchtagger.h.

Referenced by precalc().

CvMat patch_tagger::weight [protected]

Definition at line 86 of file patchtagger.h.

Referenced by cmp_descriptor(), compute_sift_descriptor(), and precalc().

Definition at line 68 of file patchtagger.h.

Referenced by cmp_descriptor(), and precalc().


The documentation for this class was generated from the following files:

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