aimsalgo 6.0.0
Neuroimaging image processing
CumulatedHistogram< T > Class Template Reference

#include <aims/histogram/cumulated.h>

Inheritance diagram for CumulatedHistogram< T >:
Collaboration diagram for CumulatedHistogram< T >:

Public Member Functions

 CumulatedHistogram ()
 Constructors and destructor.
 
 CumulatedHistogram (const CumulatedHistogram< T > &other)
 copy constructor
 
virtual ~CumulatedHistogram ()
 destructor
 
Cumulated histogram computation
void doit (const carto::rc_ptr< carto::Volume< T > > &thing)
 computation from a Volume
 
void doit (const SimpleHistogram< T > &thing)
 computation from an already computed classical histogram
 
int valueForPercentage (float)
 return the bin value for a given percentage
 
- Public Member Functions inherited from Histogram< T >
 Histogram ()
 constructor.
 
 Histogram (const Histogram< T > &other)
 copy constructor.
 
virtual ~Histogram ()
 destructor.
 
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.
 
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
 

Additional Inherited Members

int _nPoints
 total number of points
 
int _minValid
 minimum used value
 
int _maxValid
 maximum used value
 
carto::VolumeRef< int32_t > _data
 histogram datas
 

Detailed Description

template<class T>
class CumulatedHistogram< T >

Definition at line 42 of file cumulated.h.

Constructor & Destructor Documentation

◆ CumulatedHistogram() [1/2]

template<class T>
CumulatedHistogram< T >::CumulatedHistogram ( )
inline

Constructors and destructor.

constructor

Definition at line 49 of file cumulated.h.

References Histogram< T >::Histogram().

Referenced by CumulatedHistogram().

◆ CumulatedHistogram() [2/2]

template<class T>
CumulatedHistogram< T >::CumulatedHistogram ( const CumulatedHistogram< T > & other)
inline

copy constructor

Definition at line 51 of file cumulated.h.

References CumulatedHistogram(), and Histogram< T >::Histogram().

◆ ~CumulatedHistogram()

template<class T>
virtual CumulatedHistogram< T >::~CumulatedHistogram ( )
inlinevirtual

destructor

Definition at line 54 of file cumulated.h.

Member Function Documentation

◆ doit() [1/2]

template<class T>
void CumulatedHistogram< T >::doit ( const carto::rc_ptr< carto::Volume< T > > & thing)
inlinevirtual

computation from a Volume

Reimplemented from Histogram< T >.

Definition at line 72 of file cumulated.h.

References doit(), and SimpleHistogram< T >::doit().

Referenced by doit().

◆ doit() [2/2]

◆ valueForPercentage()

template<class T>
int CumulatedHistogram< T >::valueForPercentage ( float percent)
inline

return the bin value for a given percentage

Definition at line 105 of file cumulated.h.

References Histogram< T >::_data, Histogram< T >::_minValid, and Histogram< T >::_nPoints.


The documentation for this class was generated from the following file: