Public Member Functions | Protected Member Functions | Protected Attributes
alvar::Histogram Class Reference

Class for N-dimensional Histograms. More...

#include <Util.h>

Inheritance diagram for alvar::Histogram:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void AddDimension (int binsize)
 Add dimension with a binsize.
void Clear ()
 Clear the histogram.
int GetMax (double *dim0, double *dim1=0, double *dim2=0)
 Get the maximum from the histogram This returns the value in the middle of the 'bin' instead of bin-number.
void Inc (double dim0, double dim1=0, double dim2=0)
 Increase the histogram for given dimensions.

Protected Member Functions

int DimIndex (int dim, double val)
double DimVal (int dim, int index)

Protected Attributes

std::map< Index, int > bins
std::vector< int > dim_binsize

Detailed Description

Class for N-dimensional Histograms.

Definition at line 252 of file Util.h.


Member Function Documentation

void alvar::Histogram::AddDimension ( int  binsize)

Add dimension with a binsize.

Definition at line 282 of file Util.cpp.

Clear the histogram.

Reimplemented in alvar::HistogramSubpixel.

Definition at line 285 of file Util.cpp.

int alvar::Histogram::DimIndex ( int  dim,
double  val 
) [protected]

Definition at line 273 of file Util.cpp.

double alvar::Histogram::DimVal ( int  dim,
int  index 
) [protected]

Definition at line 278 of file Util.cpp.

int alvar::Histogram::GetMax ( double *  dim0,
double *  dim1 = 0,
double *  dim2 = 0 
)

Get the maximum from the histogram This returns the value in the middle of the 'bin' instead of bin-number.

Reimplemented in alvar::HistogramSubpixel.

Definition at line 296 of file Util.cpp.

void alvar::Histogram::Inc ( double  dim0,
double  dim1 = 0,
double  dim2 = 0 
)

Increase the histogram for given dimensions.

Reimplemented in alvar::HistogramSubpixel.

Definition at line 288 of file Util.cpp.


Member Data Documentation

std::map<Index, int> alvar::Histogram::bins [protected]

Definition at line 254 of file Util.h.

std::vector<int> alvar::Histogram::dim_binsize [protected]

Definition at line 255 of file Util.h.


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


ar_track_alvar
Author(s): Scott Niekum
autogenerated on Thu Feb 16 2017 03:23:02