#include <idcluster.h>
Classes | |
struct | ranked_cluster |
Public Types | |
typedef std::set< ranked_cluster > | ranked_cluster_set |
typedef ranked_cluster_set::iterator | iterator |
Public Member Functions | |
incremental_query (id_cluster_collection *db) | |
Constructor. One option is to use the create_incremental_query() of visual_database. | |
void | modify (unsigned id, int amount=1) |
Update the query. The amount can be negative for removal. | |
void | set (id_cluster *c) |
Set the query to c. | |
iterator | sort_results (unsigned max_results=1) |
iterator | sort_results_min_ratio (float ratio) |
iterator | begin () |
iterator | end () |
void | clear () |
id_cluster * | get_best (float *score) |
id_cluster_collection::query_flags | get_flags () |
void | set_all_flags (id_cluster_collection::query_flags flag) |
Public Attributes | |
ranked_cluster_set | results |
cluster_score_map | scores |
id_cluster | query_cluster |
id_cluster_collection * | database |
int | version |
Protected Attributes | |
int | flags |
Definition at line 145 of file idcluster.h.
typedef ranked_cluster_set::iterator incremental_query::iterator |
Definition at line 160 of file idcluster.h.
typedef std::set<ranked_cluster> incremental_query::ranked_cluster_set |
Definition at line 159 of file idcluster.h.
incremental_query::incremental_query | ( | id_cluster_collection * | db | ) |
Constructor. One option is to use the create_incremental_query() of visual_database.
Definition at line 693 of file idcluster.cpp.
References id_cluster_collection::version, and version.
iterator incremental_query::begin | ( | ) | [inline] |
Definition at line 177 of file idcluster.h.
References results.
Referenced by get_correspondences(), visual_object::get_correspondences_std(), sort_results(), sort_results_min_ratio(), and update_query_with_frame().
void incremental_query::clear | ( | ) |
Definition at line 699 of file idcluster.cpp.
References id_cluster::clear(), database, query_cluster, results, scores, id_cluster_collection::version, and version.
Referenced by init_query_with_frame(), set(), and set_all_flags().
iterator incremental_query::end | ( | ) | [inline] |
Definition at line 178 of file idcluster.h.
References results.
Referenced by get_correspondences(), visual_object::get_correspondences_std(), pyr_track::point_added(), sort_results(), sort_results_min_ratio(), and update_query_with_frame().
id_cluster * incremental_query::get_best | ( | float * | score | ) |
Definition at line 887 of file idcluster.cpp.
References database, results, and sort_results().
Referenced by VSView::timerEvent().
id_cluster_collection::query_flags incremental_query::get_flags | ( | ) | [inline] |
void incremental_query::modify | ( | unsigned | id, | |
int | amount = 1 | |||
) |
Update the query. The amount can be negative for removal.
Definition at line 708 of file idcluster.cpp.
References id_cluster::add(), database, id_cluster_collection::id2cluster, id_cluster_collection::idf(), min(), id_cluster_collection::QUERY_BIN_FREQ, query_cluster, id_cluster_collection::QUERY_IDF, id_cluster_collection::QUERY_MIN_FREQ, id_cluster_collection::QUERY_NORMALIZED_FREQ, scores, and id_cluster_collection::set_query_rules().
Referenced by init_query_with_frame(), pyr_track::point_added(), pyr_track::point_removed(), set(), and update_query_with_frame().
void incremental_query::set | ( | id_cluster * | c | ) |
Set the query to c.
Incremental or full query is done, depending on which one is faster.
Definition at line 830 of file idcluster.cpp.
References vecmap< _Key, _Data, _Compare >::begin(), clear(), database, vecmap< _Key, _Data, _Compare >::end(), id_cluster::histo, modify(), query_cluster, vecmap< _Key, _Data, _Compare >::reserve(), id_cluster_collection::version, and version.
Referenced by update_query_with_frame().
void incremental_query::set_all_flags | ( | id_cluster_collection::query_flags | flag | ) | [inline] |
Definition at line 192 of file idcluster.h.
References clear(), database, and id_cluster_collection::set_query_rules().
incremental_query::iterator incremental_query::sort_results | ( | unsigned | max_results = 1 |
) |
Definition at line 771 of file idcluster.cpp.
References begin(), database, end(), id_cluster_collection::QUERY_BIN_FREQ, query_cluster, id_cluster_collection::QUERY_MIN_FREQ, id_cluster_collection::QUERY_NORMALIZED_FREQ, results, scores, and id_cluster::total.
Referenced by get_best().
incremental_query::iterator incremental_query::sort_results_min_ratio | ( | float | ratio | ) |
Definition at line 802 of file idcluster.cpp.
References begin(), database, end(), id_cluster_collection::QUERY_BIN_FREQ, query_cluster, id_cluster_collection::QUERY_MIN_FREQ, id_cluster_collection::QUERY_NORMALIZED_FREQ, results, scores, and id_cluster::total.
Referenced by get_correspondences(), visual_object::get_correspondences_std(), and pyr_track::point_added().
Definition at line 186 of file idcluster.h.
Referenced by clear(), get_best(), get_flags(), init_query_with_frame(), modify(), pyr_track::point_added(), set(), set_all_flags(), sort_results(), and sort_results_min_ratio().
int incremental_query::flags [protected] |
Definition at line 196 of file idcluster.h.
Definition at line 185 of file idcluster.h.
Referenced by clear(), modify(), pyr_track::point_added(), set(), sort_results(), and sort_results_min_ratio().
Definition at line 161 of file idcluster.h.
Referenced by begin(), clear(), end(), get_best(), sort_results(), and sort_results_min_ratio().
Definition at line 184 of file idcluster.h.
Referenced by clear(), modify(), sort_results(), and sort_results_min_ratio().
Definition at line 194 of file idcluster.h.
Referenced by clear(), incremental_query(), init_query_with_frame(), and set().