#include <histogram.hh>
Inheritance diagram for oln::utils::abstract::histogram< Exact >:
Public Types | |
typedef mlc::exact_vt< histogram< Exact >, Exact >::ret | exact_type |
typedef hist_traits< exact_type >::cpt_type | cpt_type |
typedef hist_traits< exact_type >::value_type | value_type |
Public Member Functions | |
void | clear () |
Put the number of occurrence of every value to zero. | |
const cpt_type | operator[] (const value_type &v) const |
Read the number of occurrence of v. | |
cpt_type & | operator[] (const value_type &v) |
Read or write the number of occurrence of v. | |
template<class I> | |
void | init (const oln::abstract::image< I > &img) |
Definition at line 110 of file histogram.hh.
void oln::utils::abstract::histogram< Exact >::init | ( | const oln::abstract::image< I > & | img | ) | [inline] |
Build the histogram of an image.
Definition at line 142 of file histogram.hh.
Referenced by oln::utils::histogram< T, CPT, V2P, mlc::exact_vt< oln::utils::histogram_min< T, CPT, V2P, Exact >, Exact >::ret >::histogram().