Basic Image AlgorithmS Library
2.8.0
|
Simple one dimensional histogram computation. More...
#include <MathAlgo/Histogram1D.hh>
Public Member Functions | |
void | AddData (const std::vector< T > &data) |
void | AddData (const T &data) |
void | AddDebugLevel (const long int lv) |
void | AddDebugLevel (const std::string &name) |
void | Clear () |
bool | DebugLevelIsSet (const long int lv) const |
bool | DebugLevelIsSet (const std::string &name) const |
T | GetBinCenterWithMaxEntries () |
int | GetDebugLevel () const |
std::ostream & | GetDebugStream () const |
void | GetDebugStream (std::ostream &os) const |
int | GetHistogram (std::vector< T > &bin_center, std::vector< unsigned > &hist) |
Histogram1D () | |
long int | Name2DebugLevel (const std::string &name) const |
looks up a debuglevel in the internal map, returns 0 if not found More... | |
long int | NewDebugLevel (const std::string &name) |
creates a new debuglevel More... | |
void | PrintDebugLevel (std::ostream &os=std::cout) const |
void | RemoveDebugLevel (const long int lv) |
void | RemoveDebugLevel (const std::string &name) |
void | SetAutoScale (const bool val) |
void | SetDebugLevel (const long int lv) |
void | SetDebugLevel (const std::string &name) |
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 More... | |
~Histogram1D () | |
Static Public Member Functions | |
static long int | GetGlobalDebugLevel () |
static void | SetGlobalDebugLevel (long int lev) |
Protected Member Functions | |
void | ComputeBinCenters_ (std::vector< T > ¢er) const |
long | ConsumeNextFreeDebuglevel_ () |
returns the next available debuglevel More... | |
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 More... | |
std::map< std::string, long int > | _String2Debuglevel |
bool | AutoScale_ |
compute min and max value automatically More... | |
T | BinSize_ |
std::vector< T > | Data_ |
T | MaxValue_ |
T | MinValue_ |
unsigned | NumBins_ |
Static Protected Attributes | |
static std::ostream | _zDebugStream |
static long int | GlobalDebugLevel = 0 |
Simple one dimensional histogram computation.
Only defined for T=float|double
Definition at line 38 of file Histogram1D.hh.
Histogram1D::Histogram1D | ( | ) |
Definition at line 8 of file Histogram1D.cpp.
Histogram1D::~Histogram1D | ( | ) |
Definition at line 15 of file Histogram1D.cpp.
void Histogram1D::AddData | ( | const std::vector< T > & | data | ) |
Definition at line 21 of file Histogram1D.cpp.
Referenced by BIAS::PMDImageProc::LimitDepthSpread().
void Histogram1D::AddData | ( | const T & | data | ) |
Definition at line 26 of file Histogram1D.cpp.
|
inlineinherited |
Definition at line 355 of file Debug.hh.
Referenced by BIAS::GLProjectionParametersBase::AddDebugLevel(), BIAS::Triangulation::CorrectCorrespondences(), BIAS::FilterBase< InputStorageType, OutputStorageType >::FilterBase(), BIAS::ShowCamWxVideoSourceFactory::OpenDevice(), and BIAS::SceneOpenSceneGraph::SceneOpenSceneGraph().
|
inlineinherited |
|
inline |
Definition at line 46 of file Histogram1D.hh.
|
protected |
Definition at line 119 of file Histogram1D.cpp.
|
inlineprotectedinherited |
|
inlineinherited |
Definition at line 341 of file Debug.hh.
Referenced by BIAS::GenSynthMatches::_AddUniformDistributedOutliers(), BIAS::GenSynthMatches::_CreateCamMovement(), BIAS::GenSynthMatches::_CreateStatic2DPoints(), BIAS::UnscentedTransform::ComputeSigmaPoints_(), BIAS::Triangulation::CorrectCorrespondences(), BIAS::GenSynthMatches::GetGTNormalizedF(), BIAS::MonteCarloTransform::GetSamples_(), and BIAS::MonteCarloTransform::Transform().
|
inlineinherited |
T Histogram1D::GetBinCenterWithMaxEntries | ( | ) |
Definition at line 64 of file Histogram1D.cpp.
Referenced by BIAS::PMDImageProc::LimitDepthSpread().
|
inlineprotected |
Definition at line 75 of file Histogram1D.hh.
|
inlineinherited |
Definition at line 332 of file Debug.hh.
Referenced by BIAS::listenthread(), BIAS::Image< StorageType >::operator=(), and BIAS::ImageBase::operator=().
|
inlineinherited |
|
inlineinherited |
|
inlinestaticinherited |
int Histogram1D::GetHistogram | ( | std::vector< T > & | bin_center, |
std::vector< unsigned > & | hist | ||
) |
this should not happen when autoscale is true
Definition at line 31 of file Histogram1D.cpp.
|
protected |
Definition at line 105 of file Histogram1D.cpp.
|
protected |
Definition at line 81 of file Histogram1D.cpp.
|
inlineinherited |
|
inlineinherited |
creates a new debuglevel
Definition at line 474 of file Debug.hh.
Referenced by BIAS::COSAC< SolutionType >::COSAC(), BIAS::ProjectionParametersPerspectiveDepth::Init(), BIAS::MonteCarloTransform::MonteCarloTransform(), BIAS::PMatrixEstimation::PMatrixEstimation(), BIAS::PreemptiveRANSAC< SolutionType >::PreemptiveRANSAC(), BIAS::RANSACPreKnowledge< SolutionType >::RANSACPreKnowledge(), BIAS::ROI::ROI(), BIAS::RotationAveraging::RotationAveraging(), BIAS::SceneOpenSceneGraph::SceneOpenSceneGraph(), BIAS::ThreeDOutOpenSceneGraph::ThreeDOutOpenSceneGraph(), BIAS::Triangulation::Triangulation(), and BIAS::UnscentedTransform::UnscentedTransform().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inline |
Definition at line 63 of file Histogram1D.hh.
|
inlineinherited |
Definition at line 318 of file Debug.hh.
Referenced by BIAS::ShowCamWxVideoSourceFactory::CreateBumbleBee(), BIAS::ShowCamWxVideoSourceFactory::CreateDCAM(), BIAS::VideoSource_MDcam::ScanBus(), BIAS::GLProjectionParametersBase::SetDebugLevel(), BIAS::VideoSource_Disk::VideoSource_Disk(), BIAS::VideoSource_DV2::VideoSource_DV2(), BIAS::VideoSource_DV::VideoSource_DV_Internal_Init_(), and BIAS::VideoSource_V4L::VideoSource_V4L().
|
inlineinherited |
|
inlineinherited |
|
inlinestaticinherited |
|
inline |
Definition at line 60 of file Histogram1D.hh.
Referenced by BIAS::PMDImageProc::LimitDepthSpread().
|
inline |
Definition at line 66 of file Histogram1D.hh.
Referenced by BIAS::PMDImageProc::LimitDepthSpread().
|
inlineinherited |
|
protectedinherited |
Definition at line 510 of file Debug.hh.
Referenced by BIAS::Debug::operator=(), and BIAS::ImageBase::operator=().
|
protectedinherited |
new concept, debuglevel are managed here in the debug class
Definition at line 516 of file Debug.hh.
Referenced by BIAS::Debug::operator=().
|
protectedinherited |
Definition at line 517 of file Debug.hh.
Referenced by BIAS::Debug::operator=().
|
staticprotectedinherited |
Definition at line 511 of file Debug.hh.
Referenced by BIAS::Debug::operator=().
|
protected |
compute min and max value automatically
Definition at line 73 of file Histogram1D.hh.
|
protected |
Definition at line 72 of file Histogram1D.hh.
|
protected |
Definition at line 70 of file Histogram1D.hh.
|
staticprotectedinherited |
|
protected |
Definition at line 72 of file Histogram1D.hh.
|
protected |
Definition at line 72 of file Histogram1D.hh.
|
protected |
Definition at line 71 of file Histogram1D.hh.