Public Member Functions | Protected Attributes | List of all members
alvar::HistogramSubpixel Class Reference

N-dimensional Histograms calculating also the subpixel average for max bin. More...

#include <Util.h>

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

Public Member Functions

void Clear ()
 Clear the histogram. More...
 
int GetMax (double *dim0, double *dim1=0, double *dim2=0)
 Get the maximum from the histogram This finds the maximum bin(s) and averages the original values contained there to achieve subpixel accuracy. More...
 
void Inc (double dim0, double dim1=0, double dim2=0)
 Increase the histogram for given dimensions. More...
 
- Public Member Functions inherited from alvar::Histogram
void AddDimension (int binsize)
 Add dimension with a binsize. More...
 
void Clear ()
 Clear the histogram. More...
 
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. More...
 
void Inc (double dim0, double dim1=0, double dim2=0)
 Increase the histogram for given dimensions. More...
 

Protected Attributes

std::map< Index, double > acc_dim0
 
std::map< Index, double > acc_dim1
 
std::map< Index, double > acc_dim2
 
- Protected Attributes inherited from alvar::Histogram
std::map< Index, int > bins
 
std::vector< int > dim_binsize
 

Additional Inherited Members

- Protected Member Functions inherited from alvar::Histogram
int DimIndex (int dim, double val)
 
double DimVal (int dim, int index)
 

Detailed Description

N-dimensional Histograms calculating also the subpixel average for max bin.

Definition at line 276 of file Util.h.

Member Function Documentation

void alvar::HistogramSubpixel::Clear ( )

Clear the histogram.

Definition at line 312 of file Util.cpp.

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

Get the maximum from the histogram This finds the maximum bin(s) and averages the original values contained there to achieve subpixel accuracy.

Definition at line 332 of file Util.cpp.

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

Increase the histogram for given dimensions.

Definition at line 318 of file Util.cpp.

Member Data Documentation

std::map<Index, double> alvar::HistogramSubpixel::acc_dim0
protected

Definition at line 278 of file Util.h.

std::map<Index, double> alvar::HistogramSubpixel::acc_dim1
protected

Definition at line 279 of file Util.h.

std::map<Index, double> alvar::HistogramSubpixel::acc_dim2
protected

Definition at line 280 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 Jun 6 2019 19:27:24