#include <assert.h>
#include <highgui.h>
#include "pic_randomizer.h"
#include <iostream>
#include <sys/file.h>
Go to the source code of this file.
Defines | |
#define | M_PI CV_PI |
Functions | |
FILE * | open_and_lock (const char *fn) |
void | unlock_and_close (FILE *f) |
float | rand_range (float min, float max) |
void | random_homography (CvMat *H, int *width, int *height, float min_angle, float max_angle, float min_scale, float max_scale, float h_range, float v_range) |
bool | write_descriptor (FILE *descrf, pyr_keypoint *k, long ptr) |
#define M_PI CV_PI |
Definition at line 44 of file pic_randomizer.cpp.
Referenced by patch_tagger::compute_sift_descriptor(), kpt_tracker::detect_keypoints(), pic_randomizer::gen_view(), gl_hash_mark(), and patch_tagger::precalc().
FILE* open_and_lock | ( | const char * | fn | ) |
Definition at line 54 of file pic_randomizer.cpp.
Referenced by pic_randomizer::save_keypoints(), and pic_randomizer::save_points().
float rand_range | ( | float | min, | |
float | max | |||
) |
Definition at line 136 of file pic_randomizer.cpp.
Referenced by patch_tagger::precalc(), rand_range4(), random_homography(), and Corners::random_homography().
void random_homography | ( | CvMat * | H, | |
int * | width, | |||
int * | height, | |||
float | min_angle, | |||
float | max_angle, | |||
float | min_scale, | |||
float | max_scale, | |||
float | h_range, | |||
float | v_range | |||
) |
Definition at line 288 of file pic_randomizer.cpp.
References rand_range().
Referenced by pic_randomizer::gen_view().
void unlock_and_close | ( | FILE * | f | ) |
Definition at line 77 of file pic_randomizer.cpp.
Referenced by pic_randomizer::save_keypoints(), and pic_randomizer::save_points().
bool write_descriptor | ( | FILE * | descrf, | |
pyr_keypoint * | k, | |||
long | ptr | |||
) |
Definition at line 421 of file pic_randomizer.cpp.
References patch_tagger::descriptor::array(), pyr_keypoint::descriptor, kmean_tree::descriptor_size, and patch_tagger::descriptor::total.
Referenced by pic_randomizer::save_keypoints().