MDSTk Libraries
1.1.0
Medical Data Segmentation Toolkit
|
Quantized histogram having predefined number of bins/columns. 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 CHistogram< C > | tHistogram |
Concrete histogram type. | |
typedef C::tIterator::tItem | tItem |
Container item type. | |
typedef mds::math::CVector< tBin > | tVector |
Internal histogram representation. | |
Public Member Functions | |
CHistogram (tSize NumOfBins=DEFAULT_NUM_OF_BINS, 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. | |
~CHistogram () | |
Destructor. | |
Static Public Attributes | |
static const int | DEFAULT_NUM_OF_BINS = 64 |
Default number of bins in the histogram. | |
Protected Attributes | |
tItem | m_BinSize |
Histogram bin size. | |
tVector | m_Histogram |
Histogram. | |
tItem | m_Max |
tItem | m_Min |
Minimal and maximal allowed container item value. |
Quantized histogram having predefined number of bins/columns.
typedef int mds::img::CHistogram< C >::tBin |
Histogram bin type.
typedef C mds::img::CHistogram< C >::tContainer |
Container type.
typedef C::tConstIterator mds::img::CHistogram< C >::tContainerIterator |
Container iterator type.
typedef CHistogram< C > mds::img::CHistogramBase< CHistogram< C > >::tHistogram [inherited] |
Concrete histogram type.
typedef C::tIterator::tItem mds::img::CHistogram< C >::tItem |
Container item type.
typedef mds::math::CVector<tBin> mds::img::CHistogram< C >::tVector |
Internal histogram representation.
anonymous enum |
CHistogram::CHistogram | ( | tSize | NumOfBins = DEFAULT_NUM_OF_BINS , |
tItem | Min = CTypeTraits<tItem>::getMin() , |
||
tItem | Max = CTypeTraits<tItem>::getMax() |
||
) |
Constructor that creates a new empty histogram.
mds::img::CHistogram< C >::~CHistogram | ( | ) |
Destructor.
void CHistogram::cumulate | ( | ) |
Creates the cumulative histogram.
tBin mds::img::CHistogram< C >::getCount | ( | tSize | Index | ) | const |
Returns value of a given histogram bin.
const tVector& mds::img::CHistogram< C >::getHistogram | ( | ) | const |
Returns vector representing the computed histogram.
tHistogram& mds::img::CHistogramBase< CHistogram< C > >::getImpl | ( | ) | [inherited] |
Returns reference to the histogram implementation.
const tHistogram& mds::img::CHistogramBase< CHistogram< C > >::getImpl | ( | ) | const [inherited] |
tSize mds::img::CHistogram< C >::getIndex | ( | tItem | Value | ) | const |
Computes and returns histogram bin index.
tItem mds::img::CHistogram< C >::getLowerBound | ( | tSize | Index | ) | const |
Returns lower bound of item value of a specified histogram bin.
tBin mds::img::CHistogram< C >::getMax | ( | ) | const |
Returns maximal histogram value.
tSize mds::img::CHistogram< C >::getSize | ( | ) | const |
Returns the number of histogram bins.
tBin mds::img::CHistogram< C >::getTotalCount | ( | ) | const |
Returns sum of all histogram bins.
bool CHistogram::operator() | ( | const tContainer & | Container | ) |
Computes histogram of all container items.
const int mds::img::CHistogram< C >::DEFAULT_NUM_OF_BINS = 64 [static] |
Default number of bins in the histogram.
tItem mds::img::CHistogram< C >::m_BinSize [protected] |
Histogram bin size.
tVector mds::img::CHistogram< C >::m_Histogram [protected] |
Histogram.
tItem mds::img::CHistogram< C >::m_Max [protected] |
tItem mds::img::CHistogram< C >::m_Min [protected] |
Minimal and maximal allowed container item value.