oln::utils::abstract::histogram< Exact > Class Template Reference

#include <histogram.hh>

Inheritance diagram for oln::utils::abstract::histogram< Exact >:

Inheritance graph
[legend]
Collaboration diagram for oln::utils::abstract::histogram< Exact >:

Collaboration graph
[legend]
List of all members.

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_typeoperator[] (const value_type &v)
 Read or write the number of occurrence of v.

template<class I> void init (const oln::abstract::image< I > &img)

Detailed Description

template<class Exact = mlc::final>
class oln::utils::abstract::histogram< Exact >

Abstract base class for histogram.

See also:
oln::histogram

Definition at line 110 of file histogram.hh.


Member Function Documentation

template<class Exact = mlc::final>
template<class I>
void oln::utils::abstract::histogram< Exact >::init const oln::abstract::image< I > &  img  )  [inline]
 

Build the histogram of an image.

Attention:
The histogram is not cleared.

Definition at line 142 of file histogram.hh.

Referenced by oln::utils::histogram< T, CPT, V2P, mlc::exact_vt< histogram_minmax< T, CPT, V2P, Exact >, Exact >::ret >::histogram().

00143         {
00144           return this->exact().init_impl(img.exact());
00145         }


The documentation for this class was generated from the following file:
Generated on Thu Apr 15 20:17:29 2004 for Olena by doxygen 1.3.6-20040222