BIAS::Histogram1D< T > Class Template Reference
[Algorithms]

simple one dimensional histogram computation More...

#include <MathAlgo/Histogram1D.hh>

Inheritance diagram for BIAS::Histogram1D< T >:

Inheritance graph
[legend]
Collaboration diagram for BIAS::Histogram1D< T >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void AddData (const std::vector< T > &data)
void AddDebugLevel (const std::string &name)
void AddDebugLevel (const long int lv)
void Clear ()
bool DebugLevelIsSet (const std::string &name) const
bool DebugLevelIsSet (const long int lv) const
int GetDebugLevel () const
void GetDebugStream (std::ostream &os) const
std::ostream & GetDebugStream () const
int GetHistogram (std::vector< T > &bin_center, std::vector< unsigned > &hist)
template<>
 Histogram1D ()
template<>
 Histogram1D ()
 Histogram1D ()
long int Name2DebugLevel (const std::string &name) const
 looks up a debuglevel in the internal map, returns 0 if not found
long int NewDebugLevel (const std::string &name)
 creates a new debuglevel
void PrintDebugLevel (std::ostream &os=std::cout) const
void RemoveDebugLevel (const std::string &name)
void RemoveDebugLevel (const long int lv)
void SetAutoScale (const bool val)
void SetDebugLevel (const std::string &name)
void SetDebugLevel (const long int lv)
void SetDebugStream (const std::ostream &os)
void SetHistogramBoundaries (const T &min_val, const T &max_val)
void SetNumBins (const unsigned val)
void ShowDebugLevel (std::ostream &os=std::cout) const
 prints all internally known debuglevels
 ~Histogram1D ()

Static Public Member Functions

static long int GetGlobalDebugLevel ()
static void SetGlobalDebugLevel (long int lev)

Protected Member Functions

void ComputeBinCenters_ (std::vector< T > &center) const
long ConsumeNextFreeDebuglevel_ ()
 returns the next available debuglevel
int GetBinNum_ (const T &data)
void InitInternals_ ()
void InitInternalsFromData_ ()

Protected Attributes

long int _liDebugLevel
long int _liNextDebugLevel
 new concept, debuglevel are managed here in the debug class
std::map< std::string, long int > _String2Debuglevel
bool AutoScale_
 compute min and max value automatically
BinSize_
std::vector< T > Data_
MaxValue_
MinValue_
unsigned NumBins_

Static Protected Attributes

static std::ostream _zDebugStream
static long int GlobalDebugLevel = 0


Detailed Description

template<class T>
class BIAS::Histogram1D< T >

simple one dimensional histogram computation

Author:
woelk 01/2008 (c) www.vision-n.de

Definition at line 36 of file Histogram1D.hh.


Constructor & Destructor Documentation

template<class T>
BIAS::Histogram1D< T >::Histogram1D (  )  [inline]

Definition at line 82 of file Histogram1D.hh.

template<class T>
BIAS::Histogram1D< T >::~Histogram1D (  )  [inline]

Definition at line 104 of file Histogram1D.hh.

template<>
BIAS::Histogram1D< float >::Histogram1D (  )  [inline]

Definition at line 89 of file Histogram1D.hh.

template<>
BIAS::Histogram1D< double >::Histogram1D (  )  [inline]

Definition at line 96 of file Histogram1D.hh.


Member Function Documentation

template<class T>
void BIAS::Histogram1D< T >::AddData ( const std::vector< T > &  data  )  [inline]

Definition at line 110 of file Histogram1D.hh.

void BIAS::Debug::AddDebugLevel ( const std::string &  name  )  [inline, inherited]

Definition at line 363 of file Debug.hh.

void BIAS::Debug::AddDebugLevel ( const long int  lv  )  [inline, inherited]

template<class T>
void BIAS::Histogram1D< T >::Clear (  )  [inline]

Definition at line 44 of file Histogram1D.hh.

References BIAS::Histogram1D< T >::Data_.

template<class T>
void BIAS::Histogram1D< T >::ComputeBinCenters_ ( std::vector< T > &  center  )  const [inline, protected]

Definition at line 188 of file Histogram1D.hh.

long BIAS::Debug::ConsumeNextFreeDebuglevel_ (  )  [inline, protected, inherited]

returns the next available debuglevel

Author:
woelk 09/2006

Definition at line 522 of file Debug.hh.

bool BIAS::Debug::DebugLevelIsSet ( const std::string &  name  )  const [inline, inherited]

Definition at line 351 of file Debug.hh.

bool BIAS::Debug::DebugLevelIsSet ( const long int  lv  )  const [inline, inherited]

Examples:
ExampleTriangulateOptimal.cpp.

Definition at line 342 of file Debug.hh.

Referenced by BIAS::GenSynthMatches::_AddUniformDistributedOutliers(), BIAS::Rescale< InputStorageType, OutputStorageType >::_ApplyMeanFilter(), BIAS::CornerDetectorGradient< StorageType, CalculationType >::_CalcCornerness(), BIAS::GaussThreshold< InputStorageType, OutputStorageType >::_CalculateKernels(), BIAS::Gauss< InputStorageType, OutputStorageType >::_CalculateKernels(), BIAS::LinearRegionDetector< StorageType, CalculationType >::_ComputeCornerness(), BIAS::CornerDetectorKLT< StorageType, CalculationType >::_ComputeCornerness(), BIAS::GenSynthMatches::_CreateCamMovement(), BIAS::GenSynthMatches::_CreateStatic2DPoints(), BIAS::Rescale< InputStorageType, OutputStorageType >::_FillInterpolated(), BIAS::Rescale< InputStorageType, OutputStorageType >::_FillInterpolatedColor(), BIAS::Rescale< InputStorageType, OutputStorageType >::_FillInterpolatedGrey(), BIAS::ImageBlender::BlendImages(), BIAS::StructureTensor< InputStorageType, OutputStorageType >::CalcStructureTensor(), BIAS::StructureTensor< InputStorageType, OutputStorageType >::CalcStructureTensor3x3(), BIAS::StructureTensor< InputStorageType, OutputStorageType >::CalcStructureTensor5x5(), BIAS::StructureTensor< InputStorageType, OutputStorageType >::CalcStructureTensor7x7(), BIAS::StructureTensor< InputStorageType, OutputStorageType >::CalcStructureTensorValid(), BIAS::UnscentedTransform::ComputeSigmaPoints_(), BIAS::Triangulation::CorrectCorrespondences(), BIAS::CornerDetectorGradient< StorageType, CalculationType >::Detect(), BIAS::Rescale< InputStorageType, OutputStorageType >::DownsampleBy2Color(), BIAS::Binomial< InputStorageType, OutputStorageType >::Filter3x3ValidGreyFloat(), BIAS::Binomial< InputStorageType, OutputStorageType >::Filter5x5ValidGreyFloat(), BIAS::Convolution< InputStorageType, OutputStorageType >::FilterFloat(), BIAS::Convolution< InputStorageType, OutputStorageType >::FilterInt(), BIAS::RANSAC< SolutionType >::GenerateSamplesRandom(), BIAS::GenSynthMatches::GetGTNormalizedF(), BIAS::Tracker< StorageType, CalculationType >::PreparePyramide(), and BIAS::MonteCarloTransform::Transform().

template<class T>
int BIAS::Histogram1D< T >::GetBinNum_ ( const T &  data  )  [inline, protected]

int BIAS::Debug::GetDebugLevel (  )  const [inline, inherited]

void BIAS::Debug::GetDebugStream ( std::ostream &  os  )  const [inline, inherited]

Definition at line 415 of file Debug.hh.

std::ostream& BIAS::Debug::GetDebugStream (  )  const [inline, inherited]

static long int BIAS::Debug::GetGlobalDebugLevel (  )  [inline, static, inherited]

template<class T>
int BIAS::Histogram1D< T >::GetHistogram ( std::vector< T > &  bin_center,
std::vector< unsigned > &  hist 
) [inline]

this should not happen when autoscale is true

Definition at line 116 of file Histogram1D.hh.

template<class T>
void BIAS::Histogram1D< T >::InitInternals_ (  )  [inline, protected]

Definition at line 174 of file Histogram1D.hh.

template<class T>
void BIAS::Histogram1D< T >::InitInternalsFromData_ (  )  [inline, protected]

Definition at line 150 of file Histogram1D.hh.

long int BIAS::Debug::Name2DebugLevel ( const std::string &  name  )  const [inline, inherited]

looks up a debuglevel in the internal map, returns 0 if not found

Author:
woelk 09/2006

Definition at line 455 of file Debug.hh.

long int BIAS::Debug::NewDebugLevel ( const std::string &  name  )  [inline, inherited]

void BIAS::Debug::PrintDebugLevel ( std::ostream &  os = std::cout  )  const [inline, inherited]

Examples:
ExampleDebug.cpp.

Definition at line 384 of file Debug.hh.

void BIAS::Debug::RemoveDebugLevel ( const std::string &  name  )  [inline, inherited]

Definition at line 377 of file Debug.hh.

void BIAS::Debug::RemoveDebugLevel ( const long int  lv  )  [inline, inherited]

Definition at line 370 of file Debug.hh.

template<class T>
void BIAS::Histogram1D< T >::SetAutoScale ( const bool  val  )  [inline]

Definition at line 53 of file Histogram1D.hh.

References BIAS::Histogram1D< T >::AutoScale_.

void BIAS::Debug::SetDebugLevel ( const std::string &  name  )  [inline, inherited]

Definition at line 326 of file Debug.hh.

void BIAS::Debug::SetDebugLevel ( const long int  lv  )  [inline, inherited]

void BIAS::Debug::SetDebugStream ( const std::ostream &  os  )  [inline, inherited]

Examples:
DebugMyMain.cpp.

Definition at line 399 of file Debug.hh.

static void BIAS::Debug::SetGlobalDebugLevel ( long int  lev  )  [inline, static, inherited]

Examples:
DebugMyMain.cpp.

Definition at line 425 of file Debug.hh.

template<class T>
void BIAS::Histogram1D< T >::SetHistogramBoundaries ( const T &  min_val,
const T &  max_val 
) [inline]

template<class T>
void BIAS::Histogram1D< T >::SetNumBins ( const unsigned  val  )  [inline]

Definition at line 56 of file Histogram1D.hh.

References BIAS::Histogram1D< T >::NumBins_.

void BIAS::Debug::ShowDebugLevel ( std::ostream &  os = std::cout  )  const [inline, inherited]

prints all internally known debuglevels

Author:
woelk 09/2006
Examples:
ExampleDebug.cpp.

Definition at line 497 of file Debug.hh.


Member Data Documentation

long int BIAS::Debug::_liDebugLevel [protected, inherited]

long int BIAS::Debug::_liNextDebugLevel [protected, inherited]

new concept, debuglevel are managed here in the debug class

Definition at line 517 of file Debug.hh.

Referenced by BIAS::Debug::operator=().

std::map<std::string, long int> BIAS::Debug::_String2Debuglevel [protected, inherited]

Definition at line 518 of file Debug.hh.

Referenced by BIAS::Debug::operator=().

std::ostream BIAS::Debug::_zDebugStream [static, protected, inherited]

template<class T>
bool BIAS::Histogram1D< T >::AutoScale_ [protected]

compute min and max value automatically

Definition at line 63 of file Histogram1D.hh.

Referenced by BIAS::Histogram1D< T >::SetAutoScale().

template<class T>
T BIAS::Histogram1D< T >::BinSize_ [protected]

Definition at line 62 of file Histogram1D.hh.

Referenced by BIAS::Histogram1D< T >::GetBinNum_().

template<class T>
std::vector<T> BIAS::Histogram1D< T >::Data_ [protected]

Definition at line 60 of file Histogram1D.hh.

Referenced by BIAS::Histogram1D< T >::Clear().

long int BIAS::Debug::GlobalDebugLevel = 0 [static, protected, inherited]

Definition at line 514 of file Debug.hh.

template<class T>
T BIAS::Histogram1D< T >::MaxValue_ [protected]

template<class T>
T BIAS::Histogram1D< T >::MinValue_ [protected]

template<class T>
unsigned BIAS::Histogram1D< T >::NumBins_ [protected]

Definition at line 61 of file Histogram1D.hh.

Referenced by BIAS::Histogram1D< T >::SetNumBins().


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

Generated on Mon Mar 15 01:10:18 2010 for Basic Image AlgorithmS Library by  doxygen 1.5.6