bazar
1.3.1
|
Normalize local patches against rotation. More...
#include <keypoint_orientation_corrector.h>
Public Member Functions | |
keypoint_orientation_corrector (int width, int height, int neighborhood_size, int nbLev) | |
~keypoint_orientation_corrector () | |
void | compute_gradient_images (IplImage *image, IplImage **Ix, IplImage **Iy) |
int | orientation_bucket_index (const IplImage *_Ix, const IplImage *_Iy, const int u, const int v) |
Returns the estimated orientation (actually the corresponding bucket index) | |
int | optimized_orientation_bucket_index (const IplImage *_Ix, const IplImage *_Iy, const int u, const int v) |
Optimized version. | |
float | estimate_orientation_in_radians (IplImage *image, int u, int v, IplImage *_Ix, IplImage *_Iy) |
returns the estimated orientation expressed in radians | |
int | correct_orientation (IplImage *image, int u, int v, IplImage *rotated_neighborhood, IplImage *Ix, IplImage *Iy, int level) |
Rotates the (u,v) neighborhood and returns the estimated orientation (actually the corresponding bucket index): | |
int | correct_orientationf (IplImage *image, float u, float v, IplImage *rotated_neighborhood, float orientation_in_radians, int level) |
Static Public Attributes | |
static bool | subpixel_rotate = false |
static const int | ANGLE_QUANTUM = 20 |
static const int | ANGLE_BUCKET_NUMBER = 360 / ANGLE_QUANTUM |
Normalize local patches against rotation.
Definition at line 30 of file keypoint_orientation_corrector.h.
keypoint_orientation_corrector::keypoint_orientation_corrector | ( | int | width, |
int | height, | ||
int | neighborhood_size, | ||
int | nbLev | ||
) |
Definition at line 40 of file keypoint_orientation_corrector.cpp.
keypoint_orientation_corrector::~keypoint_orientation_corrector | ( | ) |
Definition at line 130 of file keypoint_orientation_corrector.cpp.
void keypoint_orientation_corrector::compute_gradient_images | ( | IplImage * | image, |
IplImage ** | Ix, | ||
IplImage ** | Iy | ||
) |
Definition at line 140 of file keypoint_orientation_corrector.cpp.
References DERIVATIVES_KERNEL_SIZE.
int keypoint_orientation_corrector::correct_orientation | ( | IplImage * | image, |
int | u, | ||
int | v, | ||
IplImage * | rotated_neighborhood, | ||
IplImage * | Ix, | ||
IplImage * | Iy, | ||
int | level | ||
) |
Rotates the (u,v) neighborhood and returns the estimated orientation (actually the corresponding bucket index):
Definition at line 328 of file keypoint_orientation_corrector.cpp.
int keypoint_orientation_corrector::correct_orientationf | ( | IplImage * | image, |
float | u, | ||
float | v, | ||
IplImage * | rotated_neighborhood, | ||
float | orientation_in_radians, | ||
int | level | ||
) |
Definition at line 339 of file keypoint_orientation_corrector.cpp.
float keypoint_orientation_corrector::estimate_orientation_in_radians | ( | IplImage * | image, |
int | u, | ||
int | v, | ||
IplImage * | _Ix, | ||
IplImage * | _Iy | ||
) |
returns the estimated orientation expressed in radians
Definition at line 317 of file keypoint_orientation_corrector.cpp.
int keypoint_orientation_corrector::optimized_orientation_bucket_index | ( | const IplImage * | _Ix, |
const IplImage * | _Iy, | ||
const int | u, | ||
const int | v | ||
) |
Optimized version.
Definition at line 197 of file keypoint_orientation_corrector.cpp.
References ATAN2_TABLE_INDEX, GRADIENT_SHIFT, and MAX_GRADIENT.
int keypoint_orientation_corrector::orientation_bucket_index | ( | const IplImage * | _Ix, |
const IplImage * | _Iy, | ||
const int | u, | ||
const int | v | ||
) |
Returns the estimated orientation (actually the corresponding bucket index)
Definition at line 149 of file keypoint_orientation_corrector.cpp.
References ATAN2_TABLE_INDEX, GRADIENT_SHIFT, and MAX_GRADIENT.
|
static |
Definition at line 58 of file keypoint_orientation_corrector.h.
|
static |
Definition at line 57 of file keypoint_orientation_corrector.h.
|
static |
Definition at line 55 of file keypoint_orientation_corrector.h.