![]() |
aimsalgo 6.0.0
Neuroimaging image processing
|
Base class of histogram container class. More...
#include <aims/histogram/histogram.h>


Public Member Functions | |
Constructors and destructor. | |
| Histogram () | |
| constructor. | |
| Histogram (const Histogram< T > &other) | |
| copy constructor. | |
| virtual | ~Histogram () |
| destructor. | |
Data of histogram | |
| carto::VolumeRef< int32_t > & | data () |
| return a reference to the data field of the histogram class. | |
| const carto::VolumeRef< int32_t > & | data () const |
| return a constant reference to the data field of the histogram class. | |
Iterators | |
| int32_t * | beginValid () |
| return the iterator to the first valid value of the histogram | |
| int32_t * | endValid () |
| return the iterator to the last valid value of the histogram | |
| const int32_t * | beginValid () const |
| return the constant iterator to the first valid value of the histogram | |
| const int32_t * | endValid () const |
| return the constant iterator to the last valid value of the histogram | |
| int | minValid () const |
| return the minimum valid (used) value of the histogram | |
| int | maxValid () const |
| returnn the maximum valid (used) value of the histogram | |
| int | totalPoints () const |
| return the total number of points in the histogram | |
| virtual void | doit (const carto::rc_ptr< carto::Volume< T > > &) |
| the histogram computation function. | |
Output stream | |
| int | _nPoints |
| total number of points | |
| int | _minValid |
| minimum used value | |
| int | _maxValid |
| maximum used value | |
| carto::VolumeRef< int32_t > | _data |
| histogram datas | |
| std::ostream & | operator<< (std::ostream &os, const Histogram< T > &thing) |
Base class of histogram container class.
Definition at line 49 of file histogram.h.
|
inline |
constructor.
Definition at line 122 of file histogram.h.
References _maxValid, _minValid, and _nPoints.
Referenced by CumulatedHistogram< T >::CumulatedHistogram(), CumulatedHistogram< T >::CumulatedHistogram(), Histogram(), operator<<, aims::RegularBinnedHistogram< T >::RegularBinnedHistogram(), aims::RegularBinnedHistogram< T >::RegularBinnedHistogram(), SimpleHistogram< T >::SimpleHistogram(), and SimpleHistogram< T >::SimpleHistogram().
|
inline |
copy constructor.
Definition at line 129 of file histogram.h.
References _data, _maxValid, _minValid, _nPoints, data(), and Histogram().
destructor.
Definition at line 60 of file histogram.h.
|
inline |
return the iterator to the first valid value of the histogram
Definition at line 74 of file histogram.h.
References _data.
|
inline |
return the constant iterator to the first valid value of the histogram
Definition at line 81 of file histogram.h.
References _data.
|
inline |
return a reference to the data field of the histogram class.
Definition at line 66 of file histogram.h.
References _data.
Referenced by CumulatedHistogram< T >::doit(), Histogram(), and AimsEMThreshold< T, U >::processEMThresholds().
|
inline |
return a constant reference to the data field of the histogram class.
Definition at line 68 of file histogram.h.
References _data.
|
inlinevirtual |
the histogram computation function.
\ This virtual function must be defined in the child classes.
Reimplemented in aims::RegularBinnedHistogram< T >, CumulatedHistogram< T >, and SimpleHistogram< T >.
Definition at line 98 of file histogram.h.
|
inline |
return the iterator to the last valid value of the histogram
Definition at line 77 of file histogram.h.
|
inline |
return the constant iterator to the last valid value of the histogram
Definition at line 84 of file histogram.h.
|
inline |
returnn the maximum valid (used) value of the histogram
Definition at line 91 of file histogram.h.
References _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 _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 _nPoints.
Referenced by CumulatedHistogram< T >::doit().
|
friend |
Definition at line 138 of file histogram.h.
References _data, _maxValid, _minValid, _nPoints, and Histogram().
|
protected |
histogram datas
Definition at line 117 of file histogram.h.
Referenced by beginValid(), beginValid(), data(), data(), aims::RegularBinnedHistogram< T >::doit(), CumulatedHistogram< T >::doit(), SimpleHistogram< T >::doit(), SimpleHistogram< T >::doit(), SimpleHistogram< T >::doit(), endValid(), endValid(), Histogram(), operator<<, SimpleHistogram< T >::rebin(), SimpleHistogram< T >::rebin(), aims::RegularBinnedHistogram< T >::setBins(), and CumulatedHistogram< T >::valueForPercentage().
|
protected |
maximum used value
Definition at line 114 of file histogram.h.
Referenced by CumulatedHistogram< T >::doit(), SimpleHistogram< T >::doit(), SimpleHistogram< T >::doit(), SimpleHistogram< T >::doit(), endValid(), endValid(), Histogram(), Histogram(), maxValid(), operator<<, and SimpleHistogram< T >::rebin().
|
protected |
minimum used value
Definition at line 112 of file histogram.h.
Referenced by CumulatedHistogram< T >::doit(), SimpleHistogram< T >::doit(), SimpleHistogram< T >::doit(), SimpleHistogram< T >::doit(), endValid(), endValid(), Histogram(), Histogram(), minValid(), operator<<, 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 >::doit(), SimpleHistogram< T >::doit(), Histogram(), Histogram(), operator<<, SimpleHistogram< T >::rebin(), totalPoints(), and CumulatedHistogram< T >::valueForPercentage().