![]() |
aimsalgo
5.0.5
Neuroimaging image processing
|
Base class of histogram container class. More...
#include <aims/histogram/histogram.h>
Public Member Functions | |
int | minValid () const |
return the minimum valid (used) value of the histogram More... | |
int | maxValid () const |
returnn the maximum valid (used) value of the histogram More... | |
int | totalPoints () const |
return the total number of points in the histogram More... | |
virtual void | doit (const AimsData< T > &) |
the histogram computation function. More... | |
Constructors and destructor. | |
Histogram () | |
constructor. More... | |
Histogram (const Histogram< T > &other) | |
copy constructor. More... | |
virtual | ~Histogram () |
destructor. More... | |
Data of histogram | |
AimsData< int32_t > & | data () |
return a reference to the data field of the histogram class. More... | |
const AimsData< int32_t > & | data () const |
return a constant reference to the data field of the histogram class. More... | |
Iterators | |
AimsData< int32_t >::iterator | beginValid () |
return the iterator to the first valid value of the histogram More... | |
AimsData< int32_t >::iterator | endValid () |
return the iterator to the last valid value of the histogram More... | |
AimsData< int32_t >::const_iterator | beginValid () const |
return the constant iterator to the first valid value of the histogram More... | |
AimsData< int32_t >::const_iterator | endValid () const |
return the constant iterator to the last valid value of the histogram More... | |
Protected Attributes | |
int | _nPoints |
total number of points More... | |
int | _minValid |
minimum used value More... | |
int | _maxValid |
maximum used value More... | |
AimsData< int32_t > | _data |
histogram datas More... | |
Friends | |
Output stream | |
std::ostream & | operator<< (std::ostream &os, const Histogram< T > &thing) |
Base class of histogram container class.
Definition at line 42 of file histogram.h.
constructor.
Definition at line 122 of file histogram.h.
copy constructor.
Definition at line 129 of file histogram.h.
References Histogram< T >::_data, AimsData< int32_t >::clone(), and Histogram< T >::data().
destructor.
Definition at line 60 of file histogram.h.
References Histogram< T >::_data, and Histogram< T >::data().
return the iterator to the first valid value of the histogram
Definition at line 74 of file histogram.h.
Referenced by Histogram< T >::data().
|
inline |
return the constant iterator to the first valid value of the histogram
Definition at line 81 of file histogram.h.
References Histogram< T >::_data, and AimsData< int32_t >::begin().
return a reference to the data field of the histogram class.
Definition at line 66 of file histogram.h.
Referenced by CumulatedHistogram< T >::doit(), Histogram< T >::Histogram(), AimsEMThreshold< T, U >::processEMThresholds(), and Histogram< T >::~Histogram().
return a constant reference to the data field of the histogram class.
Definition at line 68 of file histogram.h.
References Histogram< T >::_data, AimsData< int32_t >::begin(), and Histogram< T >::beginValid().
the histogram computation function.
\ This virtual function must be defined in the child classes.
Reimplemented in SimpleHistogram< T >, CumulatedHistogram< T >, and aims::RegularBinnedHistogram< T >.
Definition at line 98 of file histogram.h.
return the iterator to the last valid value of the histogram
Definition at line 77 of file histogram.h.
References Histogram< T >::_data, Histogram< T >::_maxValid, Histogram< T >::_minValid, and AimsData< int32_t >::begin().
|
inline |
return the constant iterator to the last valid value of the histogram
Definition at line 84 of file histogram.h.
References Histogram< T >::_data, Histogram< T >::_maxValid, Histogram< T >::_minValid, and AimsData< int32_t >::begin().
|
inline |
returnn the maximum valid (used) value of the histogram
Definition at line 91 of file histogram.h.
References Histogram< T >::_maxValid.
Referenced by CumulatedHistogram< T >::doit().
|
inline |
return the minimum valid (used) value of the histogram
Definition at line 89 of file histogram.h.
References Histogram< T >::_minValid.
Referenced by CumulatedHistogram< T >::doit().
|
inline |
return the total number of points in the histogram
Definition at line 94 of file histogram.h.
References Histogram< T >::_nPoints.
Referenced by CumulatedHistogram< T >::doit().
|
friend |
Definition at line 138 of file histogram.h.
histogram datas
Definition at line 117 of file histogram.h.
Referenced by Histogram< T >::beginValid(), Histogram< T >::data(), CumulatedHistogram< T >::doit(), aims::RegularBinnedHistogram< T >::doit(), SimpleHistogram< T >::doit(), Histogram< T >::endValid(), Histogram< T >::Histogram(), SimpleHistogram< T >::rebin(), aims::RegularBinnedHistogram< T >::setBins(), CumulatedHistogram< T >::valueForPercentage(), and Histogram< T >::~Histogram().
|
protected |
maximum used value
Definition at line 114 of file histogram.h.
Referenced by CumulatedHistogram< T >::doit(), SimpleHistogram< T >::doit(), Histogram< T >::endValid(), Histogram< T >::maxValid(), and SimpleHistogram< T >::rebin().
|
protected |
minimum used value
Definition at line 112 of file histogram.h.
Referenced by CumulatedHistogram< T >::doit(), SimpleHistogram< T >::doit(), Histogram< T >::endValid(), Histogram< T >::minValid(), SimpleHistogram< T >::rebin(), and CumulatedHistogram< T >::valueForPercentage().
|
protected |
total number of points
Definition at line 110 of file histogram.h.
Referenced by CumulatedHistogram< T >::doit(), SimpleHistogram< T >::doit(), SimpleHistogram< T >::rebin(), Histogram< T >::totalPoints(), and CumulatedHistogram< T >::valueForPercentage().