KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
DTLib::CHistogram< T > Class Template Reference

#include <histogram.h>

Public Member Functions

 CHistogram ()
 
 CHistogram (const std::string &file_name)
 
 CHistogram (std::istream &ifs)
 
 ~CHistogram ()
 
void GetValues (float *pointer)
 
void SetValues (float *pointer)
 
void Setup (const int &nBins)
 
void Setup (const int &nBins, const T &RangeMin, const T &RangeMax)
 
void Setup (const int &nBinsX, const int &nBinsY, const T &XRangeMin, const T &XRangeMax, const T &YRangeMin, const T &YRangeMax)
 
void Setup (const int &nBinsX, const int &nBinsY, const int &nBinsZ, const T &XRangeMin, const T &XRangeMax, const T &YRangeMin, const T &YRangeMax, const T &ZRangeMin, const T &ZRangeMax)
 
void Update (const T &Val)
 
void Update (const T &XVal, const T &YVal)
 
void Read (const std::string &file_name)
 
void Read (std::istream &ifs)
 
void Write (const std::string &file_name) const
 
void Write (std::ostream &ofs) const
 
void SoftUpdate (const T &XVal, const T &YVal, const float &Sigma)
 
void SoftUpdate1D (const T &XVal, const float &Sigma)
 
void SoftUpdate3D (const T &XVal, const T &YVal, const T &ZVal, const float &Sigma)
 
void SoftUpdate_fast (const T &XVal, const T &YVal, const int &Rad, const FloatCImgPtr pGauss_Window)
 
void IncrementBin (const int &iBin, const T &Val)
 
void Normalize (const float &Area=1.0f)
 
void NormalizeToMax (const float &Max=255.0f)
 
float GetProb (const T &Val)
 
float GetProb (const T &XVal, const T &YVal)
 
float GetProbOfBin (int iBin)
 
void GetProbDist (CImg< T > &InImg, CImg< float > &PDistImg)
 
void GetProbDist (CImg< T > &InImg1, CImg< T > &InImg2, CImg< float > &PDistImg)
 
void Zero ()
 
bool IsEmpty ()
 
float MaxBinVal ()
 
void AdjustDown (const float &Value)
 
void Add (const CHistogram< T > &OtherHisto)
 
void ScalarMultiply (const float &Multiplier)
 
void Display (CImg< BYTE > &InImg)
 
BinIndexToValue (const int &BinIndex)
 
float ChiSquareCompare (CHistogram< T > *OtherHisto)
 
float NormalCompare (CHistogram< T > *OtherHisto)
 
int nBins ()
 
float * pBins ()
 

Public Attributes

int m_nBinsX
 
int m_nBinsY
 
int m_nBinsZ
 
int m_nBins
 
m_XRangeMin
 
m_XRangeMax
 
m_YRangeMin
 
m_YRangeMax
 
m_ZRangeMin
 
m_ZRangeMax
 
float * m_pBins
 
float m_XFactor
 
float m_YFactor
 
float m_ZFactor
 

Constructor & Destructor Documentation

template<class T >
DTLib::CHistogram< T >::CHistogram ( )
template<class T >
DTLib::CHistogram< T >::CHistogram ( const std::string &  file_name)
template<class T >
DTLib::CHistogram< T >::CHistogram ( std::istream &  ifs)
template<class T >
DTLib::CHistogram< T >::~CHistogram ( )

Member Function Documentation

template<class T >
void DTLib::CHistogram< T >::Add ( const CHistogram< T > &  OtherHisto)
template<class T >
void DTLib::CHistogram< T >::AdjustDown ( const float &  Value)
template<class T >
T DTLib::CHistogram< T >::BinIndexToValue ( const int &  BinIndex)
template<class T >
float DTLib::CHistogram< T >::ChiSquareCompare ( CHistogram< T > *  OtherHisto)
template<class T>
void DTLib::CHistogram< T >::Display ( CImg< BYTE > &  InImg)
template<class T >
float DTLib::CHistogram< T >::GetProb ( const T &  Val)
template<class T >
float DTLib::CHistogram< T >::GetProb ( const T &  XVal,
const T &  YVal 
)
template<class T >
void DTLib::CHistogram< T >::GetProbDist ( CImg< T > &  InImg,
CImg< float > &  PDistImg 
)
template<class T >
void DTLib::CHistogram< T >::GetProbDist ( CImg< T > &  InImg1,
CImg< T > &  InImg2,
CImg< float > &  PDistImg 
)
template<class T>
float DTLib::CHistogram< T >::GetProbOfBin ( int  iBin)
inline
template<class T >
void DTLib::CHistogram< T >::GetValues ( float *  pointer)
template<class T >
void DTLib::CHistogram< T >::IncrementBin ( const int &  iBin,
const T &  Val 
)
inline
template<class T >
bool DTLib::CHistogram< T >::IsEmpty ( )
template<class T >
float DTLib::CHistogram< T >::MaxBinVal ( )
template<class T>
int DTLib::CHistogram< T >::nBins ( )
inline
template<class T >
float DTLib::CHistogram< T >::NormalCompare ( CHistogram< T > *  OtherHisto)
template<class T >
void DTLib::CHistogram< T >::Normalize ( const float &  Area = 1.0f)
template<class T >
void DTLib::CHistogram< T >::NormalizeToMax ( const float &  Max = 255.0f)
template<class T>
float* DTLib::CHistogram< T >::pBins ( )
inline
template<class T >
void DTLib::CHistogram< T >::Read ( const std::string &  file_name)
template<class T >
void DTLib::CHistogram< T >::Read ( std::istream &  ifs)
template<class T >
void DTLib::CHistogram< T >::ScalarMultiply ( const float &  Multiplier)
template<class T >
void DTLib::CHistogram< T >::Setup ( const int &  nBins)
template<class T >
void DTLib::CHistogram< T >::Setup ( const int &  nBins,
const T &  RangeMin,
const T &  RangeMax 
)
template<class T >
void DTLib::CHistogram< T >::Setup ( const int &  nBinsX,
const int &  nBinsY,
const T &  XRangeMin,
const T &  XRangeMax,
const T &  YRangeMin,
const T &  YRangeMax 
)
template<class T >
void DTLib::CHistogram< T >::Setup ( const int &  nBinsX,
const int &  nBinsY,
const int &  nBinsZ,
const T &  XRangeMin,
const T &  XRangeMax,
const T &  YRangeMin,
const T &  YRangeMax,
const T &  ZRangeMin,
const T &  ZRangeMax 
)
template<class T >
void DTLib::CHistogram< T >::SetValues ( float *  pointer)
template<class T >
void DTLib::CHistogram< T >::SoftUpdate ( const T &  XVal,
const T &  YVal,
const float &  Sigma 
)
inline
template<class T >
void DTLib::CHistogram< T >::SoftUpdate1D ( const T &  XVal,
const float &  Sigma 
)
inline
template<class T >
void DTLib::CHistogram< T >::SoftUpdate3D ( const T &  XVal,
const T &  YVal,
const T &  ZVal,
const float &  Sigma 
)
inline
template<class T >
void DTLib::CHistogram< T >::SoftUpdate_fast ( const T &  XVal,
const T &  YVal,
const int &  Rad,
const FloatCImgPtr  pGauss_Window 
)
inline
template<class T >
void DTLib::CHistogram< T >::Update ( const T &  Val)
inline
template<class T >
void DTLib::CHistogram< T >::Update ( const T &  XVal,
const T &  YVal 
)
inline
template<class T >
void DTLib::CHistogram< T >::Write ( const std::string &  file_name) const
template<class T >
void DTLib::CHistogram< T >::Write ( std::ostream &  ofs) const
template<class T >
void DTLib::CHistogram< T >::Zero ( )

Member Data Documentation

template<class T>
int DTLib::CHistogram< T >::m_nBins
template<class T>
int DTLib::CHistogram< T >::m_nBinsX
template<class T>
int DTLib::CHistogram< T >::m_nBinsY
template<class T>
int DTLib::CHistogram< T >::m_nBinsZ
template<class T>
float* DTLib::CHistogram< T >::m_pBins
template<class T>
float DTLib::CHistogram< T >::m_XFactor
template<class T>
T DTLib::CHistogram< T >::m_XRangeMax
template<class T>
T DTLib::CHistogram< T >::m_XRangeMin
template<class T>
float DTLib::CHistogram< T >::m_YFactor
template<class T>
T DTLib::CHistogram< T >::m_YRangeMax
template<class T>
T DTLib::CHistogram< T >::m_YRangeMin
template<class T>
float DTLib::CHistogram< T >::m_ZFactor
template<class T>
T DTLib::CHistogram< T >::m_ZRangeMax
template<class T>
T DTLib::CHistogram< T >::m_ZRangeMin

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