#include <idcluster.h>

Public Types | |
| typedef std::map< unsigned, unsigned > | uumap |
Public Member Functions | |
| id_cluster () | |
| virtual | ~id_cluster () |
| unsigned | add (unsigned id, int amount=1) |
| float | dotprod (const id_cluster &a) const |
| void | print () const |
| void | clear () |
| unsigned | get_freq (unsigned id) |
| float | get_proba (unsigned id) |
Public Attributes | |
| uumap | histo |
| unsigned | total |
| cluster_id_t | id |
| float | weighted_sum |
The name of this class is confusing. It is just a histogram, stored in a sparse manner.
Definition at line 35 of file idcluster.h.
| typedef std::map<unsigned, unsigned> id_cluster::uumap |
Definition at line 41 of file idcluster.h.
| id_cluster::id_cluster | ( | ) | [inline] |
Definition at line 38 of file idcluster.h.
| virtual id_cluster::~id_cluster | ( | ) | [inline, virtual] |
Definition at line 39 of file idcluster.h.
| unsigned id_cluster::add | ( | unsigned | id, | |
| int | amount = 1 | |||
| ) |
Definition at line 193 of file idcluster.cpp.
Referenced by init_query_with_frame(), id_cluster_collection::load(), load_patch_track(), id_cluster_collection::merge_clusters(), incremental_query::modify(), query_frame(), id_cluster_collection::update_cluster(), and update_query_with_frame().
| void id_cluster::clear | ( | ) |
Definition at line 30 of file idcluster.cpp.
References histo, total, and weighted_sum.
Referenced by incremental_query::clear(), and visual_database::remove_object().
| float id_cluster::dotprod | ( | const id_cluster & | a | ) | const |
| unsigned id_cluster::get_freq | ( | unsigned | id | ) |
| float id_cluster::get_proba | ( | unsigned | id | ) | [inline] |
| void id_cluster::print | ( | ) | const |
Definition at line 42 of file idcluster.h.
Referenced by add(), id_cluster_collection::add_cluster(), clear(), dotprod(), get_correspondences(), visual_object::get_correspondences_std(), get_freq(), id_cluster_collection::get_scores(), init_query_with_frame(), id_cluster_collection::merge_clusters(), print(), id_cluster_collection::remove_cluster(), and incremental_query::set().
| unsigned id_cluster::total |
Definition at line 43 of file idcluster.h.
Referenced by add(), clear(), dotprod(), get_proba(), id_cluster_collection::get_scores(), visual_object::get_total(), id_cluster_collection::load(), load_patch_track(), pyr_track::point_added(), print(), incremental_query::sort_results(), incremental_query::sort_results_min_ratio(), and id_cluster_collection::update_cluster().
| float id_cluster::weighted_sum |
Definition at line 45 of file idcluster.h.
Referenced by clear(), and id_cluster_collection::update_cluster().
1.5.9