![]() |
aimsalgo
5.0.5
Neuroimaging image processing
|
Classical histogram container class. More...
#include <aims/histogram/simpleHisto.h>
Public Member Functions | |
void | doit (const AimsData< T > &thing) |
classical histogram computation function. More... | |
template<> | |
void | doit (const AimsData< float > &thing) |
template<> | |
void | doit (const AimsData< double > &thing) |
Constructors and destructor | |
SimpleHistogram () | |
constructor. Does nothing. More... | |
SimpleHistogram (const SimpleHistogram< T > &other) | |
copy constructor. More... | |
virtual | ~SimpleHistogram () |
destructor. More... | |
Rebinning functions. | |
void | rebin (int size) |
rebinning to a specific result vector size. More... | |
void | rebin (AimsData< int32_t >::iterator beg, AimsData< int32_t >::iterator end) |
rebinning from the beginning iterator to the ending one. More... | |
void | rebin (int size, AimsData< int32_t >::iterator beg, AimsData< int32_t >::iterator end) |
rebinning from iterator 'beg' to iterator 'end' to a result vector of size 'size' More... | |
![]() | |
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... | |
Histogram () | |
constructor. More... | |
Histogram (const Histogram< T > &other) | |
copy constructor. More... | |
virtual | ~Histogram () |
destructor. More... | |
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... | |
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... | |
Additional Inherited Members | |
![]() | |
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... | |
Classical histogram container class.
Definition at line 43 of file simpleHisto.h.
|
inline |
constructor. Does nothing.
Definition at line 50 of file simpleHisto.h.
|
inline |
copy constructor.
Definition at line 52 of file simpleHisto.h.
|
inlinevirtual |
destructor.
Definition at line 55 of file simpleHisto.h.
References SimpleHistogram< T >::doit(), and SimpleHistogram< T >::rebin().
|
inlinevirtual |
classical histogram computation function.
\ Be careful that for float and double data types the histogram is not set in a float or double 1D AimsData but in a 16 bits short 1D AimsData, i.e. a rebinning is performed.
Reimplemented from Histogram< T >.
Definition at line 82 of file simpleHisto.h.
References Histogram< T >::_data, Histogram< T >::_maxValid, Histogram< T >::_minValid, Histogram< T >::_nPoints, AimsData< int32_t >::begin(), AimsData< T >::begin(), AimsData< T >::dimT(), AimsData< T >::dimX(), AimsData< T >::dimY(), AimsData< T >::dimZ(), AimsData< T >::maximum(), AimsData< T >::minimum(), aims::Border::oFirstPoint(), aims::Border::oLineBetweenSlice(), aims::Border::oPointBetweenLine(), and aims::Border::oSliceBetweenVolume().
Referenced by CumulatedHistogram< T >::doit(), and SimpleHistogram< T >::~SimpleHistogram().
|
inline |
Definition at line 164 of file simpleHisto.h.
References Histogram< T >::_data, Histogram< T >::_maxValid, Histogram< T >::_minValid, Histogram< T >::_nPoints, AimsData< float >::begin(), AimsData< float >::dimT(), AimsData< float >::dimX(), AimsData< float >::dimY(), AimsData< float >::dimZ(), AimsData< float >::maximum(), AimsData< float >::minimum(), aims::Border::oFirstPoint(), aims::Border::oLineBetweenSlice(), aims::Border::oPointBetweenLine(), and aims::Border::oSliceBetweenVolume().
|
inline |
Definition at line 211 of file simpleHisto.h.
References Histogram< T >::_data, Histogram< T >::_maxValid, Histogram< T >::_minValid, Histogram< T >::_nPoints, AimsData< int32_t >::begin(), AimsData< T >::begin(), AimsData< T >::dimT(), AimsData< T >::dimX(), AimsData< T >::dimY(), AimsData< T >::dimZ(), AimsData< T >::maximum(), AimsData< T >::minimum(), aims::Border::oFirstPoint(), aims::Border::oLineBetweenSlice(), aims::Border::oPointBetweenLine(), and aims::Border::oSliceBetweenVolume().
|
inline |
rebinning to a specific result vector size.
Definition at line 108 of file simpleHisto.h.
References Histogram< T >::_data, AimsData< int32_t >::begin(), and AimsData< int32_t >::end().
Referenced by SimpleHistogram< T >::rebin(), and SimpleHistogram< T >::~SimpleHistogram().
|
inline |
rebinning from the beginning iterator to the ending one.
The result vector size is then defined by the number of bins included between the two iterators.
Definition at line 115 of file simpleHisto.h.
References SimpleHistogram< T >::rebin().
|
inline |
rebinning from iterator 'beg' to iterator 'end' to a result vector of size 'size'
Definition at line 123 of file simpleHisto.h.
References Histogram< T >::_data, Histogram< T >::_maxValid, Histogram< T >::_minValid, Histogram< T >::_nPoints, ASSERT, AimsData< int32_t >::begin(), AimsData< int32_t >::end(), and sum().