MDSTk Libraries
1.1.0
Medical Data Segmentation Toolkit
|
Histogram having number of bins/columns corresponding to a number of possible item values. More...
#include <mdsHistogram.h>
Public Types | |
enum | { NO_ITERATOR_IS_DECLARED_FOR_TEMPLATE_PARAMETER = C::ITERATOR_DECLARED } |
Check that C has an iterator declared. More... | |
typedef int | tBin |
Histogram bin type. | |
typedef C | tContainer |
Container type. | |
typedef C::tConstIterator | tContainerIterator |
Container iterator type. | |
typedef CFullHistogram< C > | tHistogram |
Concrete histogram type. | |
typedef CTypeTraits< typename tContainerIterator::tItem > ::tNonConst | tItem |
Container item type. | |
typedef mds::math::CVector< tBin > | tVector |
Internal histogram representation. | |
Public Member Functions | |
CFullHistogram (tItem Min=CTypeTraits< tItem >::getMin(), tItem Max=CTypeTraits< tItem >::getMax()) | |
Constructor that creates a new empty histogram. | |
void | cumulate () |
Creates the cumulative histogram. | |
tBin | getCount (tSize Index) const |
Returns value of a given histogram bin. | |
const tVector & | getHistogram () const |
Returns vector representing the computed histogram. | |
tHistogram & | getImpl () |
Returns reference to the histogram implementation. | |
const tHistogram & | getImpl () const |
tSize | getIndex (tItem Value) const |
Computes and returns histogram bin index. | |
tItem | getLowerBound (tSize Index) const |
Returns lower bound of item value of a specified histogram bin. | |
tBin | getMax () const |
Returns maximal histogram value. | |
tSize | getSize () const |
Returns the number of histogram bins. | |
tBin | getTotalCount () const |
Returns sum of all histogram bins. | |
bool | operator() (const tContainer &Container) |
Computes histogram of all container items. | |
~CFullHistogram () | |
Destructor. | |
Protected Attributes | |
tVector | m_Histogram |
Histogram. | |
tItem | m_Max |
tItem | m_Min |
Minimal and maximal allowed container item value. |
Histogram having number of bins/columns corresponding to a number of possible item values.
typedef int mds::img::CFullHistogram< C >::tBin |
Histogram bin type.
typedef C mds::img::CFullHistogram< C >::tContainer |
Container type.
typedef C::tConstIterator mds::img::CFullHistogram< C >::tContainerIterator |
Container iterator type.
typedef CFullHistogram< C > mds::img::CHistogramBase< CFullHistogram< C > >::tHistogram [inherited] |
Concrete histogram type.
typedef CTypeTraits<typename tContainerIterator::tItem>::tNonConst mds::img::CFullHistogram< C >::tItem |
Container item type.
typedef mds::math::CVector<tBin> mds::img::CFullHistogram< C >::tVector |
Internal histogram representation.
anonymous enum |
CFullHistogram::CFullHistogram | ( | tItem | Min = CTypeTraits<tItem>::getMin() , |
tItem | Max = CTypeTraits<tItem>::getMax() |
||
) |
Constructor that creates a new empty histogram.
mds::img::CFullHistogram< C >::~CFullHistogram | ( | ) |
Destructor.
void CFullHistogram::cumulate | ( | ) |
Creates the cumulative histogram.
tBin mds::img::CFullHistogram< C >::getCount | ( | tSize | Index | ) | const |
Returns value of a given histogram bin.
const tVector& mds::img::CFullHistogram< C >::getHistogram | ( | ) | const |
Returns vector representing the computed histogram.
tHistogram& mds::img::CHistogramBase< CFullHistogram< C > >::getImpl | ( | ) | [inherited] |
Returns reference to the histogram implementation.
const tHistogram& mds::img::CHistogramBase< CFullHistogram< C > >::getImpl | ( | ) | const [inherited] |
tSize mds::img::CFullHistogram< C >::getIndex | ( | tItem | Value | ) | const |
Computes and returns histogram bin index.
tItem mds::img::CFullHistogram< C >::getLowerBound | ( | tSize | Index | ) | const |
Returns lower bound of item value of a specified histogram bin.
tBin mds::img::CFullHistogram< C >::getMax | ( | ) | const |
Returns maximal histogram value.
tSize mds::img::CFullHistogram< C >::getSize | ( | ) | const |
Returns the number of histogram bins.
tBin mds::img::CFullHistogram< C >::getTotalCount | ( | ) | const |
Returns sum of all histogram bins.
bool CFullHistogram::operator() | ( | const tContainer & | Container | ) |
Computes histogram of all container items.
tVector mds::img::CFullHistogram< C >::m_Histogram [protected] |
Histogram.
tItem mds::img::CFullHistogram< C >::m_Max [protected] |
tItem mds::img::CFullHistogram< C >::m_Min [protected] |
Minimal and maximal allowed container item value.