#include <pic_randomizer.h>
Classes | |
class | point_cluster |
Public Member Functions | |
pic_randomizer () | |
~pic_randomizer () | |
bool | load_image (const char *fn) |
bool | run () |
IplImage * | gen_view () |
void | detect_kpts () |
void | group_ids () |
bool | save_points () |
void | prune () |
bool | save_keypoints () |
Public Attributes | |
int | nb_views |
float | min_view_rate |
bool | save_descriptors_only |
const char * | tree_fn |
const char * | output_fn |
const char * | visualdb_fn |
Definition at line 55 of file pic_randomizer.h.
pic_randomizer::pic_randomizer | ( | ) |
Definition at line 90 of file pic_randomizer.cpp.
References min_view_rate, nb_views, output_fn, save_descriptors_only, tree_fn, and visualdb_fn.
pic_randomizer::~pic_randomizer | ( | ) |
Definition at line 105 of file pic_randomizer.cpp.
void pic_randomizer::detect_kpts | ( | ) |
Definition at line 382 of file pic_randomizer.cpp.
References kpt_tracker::add_frame(), kpt_tracker::detect_keypoints(), gen_view(), kpt_tracker::load_tree(), save_descriptors_only, kpt_tracker::set_size(), kpt_tracker::traverse_tree(), tree_fn, and visualdb_fn.
Referenced by run().
IplImage * pic_randomizer::gen_view | ( | ) |
Definition at line 351 of file pic_randomizer.cpp.
References M_PI, and random_homography().
Referenced by detect_kpts(), and run().
void pic_randomizer::group_ids | ( | ) |
Definition at line 495 of file pic_randomizer.cpp.
References bucket2d< T >::add_pt(), bucket2d< T >::begin(), tracks::get_nth_frame(), bucket2d< T >::move_pt(), tframe::points, tracks::remove_frame(), and kpt_tracker::tree.
Referenced by run().
bool pic_randomizer::load_image | ( | const char * | fn | ) |
void pic_randomizer::prune | ( | ) |
Definition at line 557 of file pic_randomizer.cpp.
References min(), min_view_rate, nb_views, bucket2d< T >::rm_pt(), and bucket2d< T >::size().
Referenced by run().
bool pic_randomizer::run | ( | ) |
Definition at line 599 of file pic_randomizer.cpp.
References detect_kpts(), gen_view(), group_ids(), nb_views, prune(), save_descriptors_only, save_keypoints(), and save_points().
Referenced by main().
bool pic_randomizer::save_keypoints | ( | ) |
Definition at line 477 of file pic_randomizer.cpp.
References bucket2d< T >::begin(), tracks::get_nth_frame(), open_and_lock(), output_fn, tframe::points, tracks::remove_frame(), unlock_and_close(), and write_descriptor().
Referenced by run().
bool pic_randomizer::save_points | ( | ) |
Definition at line 577 of file pic_randomizer.cpp.
References id_cluster_collection::add_cluster(), open_and_lock(), output_fn, id_cluster_collection::QUERY_NORMALIZED_FREQ, id_cluster_collection::save(), and unlock_and_close().
Referenced by run().
Definition at line 72 of file pic_randomizer.h.
Referenced by main(), pic_randomizer(), and prune().
Definition at line 71 of file pic_randomizer.h.
Referenced by main(), pic_randomizer(), prune(), and run().
const char* pic_randomizer::output_fn |
Definition at line 77 of file pic_randomizer.h.
Referenced by main(), pic_randomizer(), save_keypoints(), and save_points().
Definition at line 74 of file pic_randomizer.h.
Referenced by detect_kpts(), main(), pic_randomizer(), and run().
const char* pic_randomizer::tree_fn |
Definition at line 76 of file pic_randomizer.h.
Referenced by detect_kpts(), main(), and pic_randomizer().
const char* pic_randomizer::visualdb_fn |
Definition at line 78 of file pic_randomizer.h.
Referenced by detect_kpts(), main(), and pic_randomizer().