My Project
Public Member Functions | Protected Attributes | List of all members
HistogramSubpixel Class Reference

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

#include <Util.h>

Inheritance diagram for HistogramSubpixel:
Histogram

Public Member Functions

void Clear ()
 Clear the histogram.
 
void Inc (double dim0, double dim1=0, double dim2=0)
 Increase the histogram for given dimensions.
 
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.
 
- Public Member Functions inherited from Histogram
void AddDimension (int binsize)
 Add dimension with a binsize.
 
void Clear ()
 Clear the histogram.
 
void Inc (double dim0, double dim1=0, double dim2=0)
 Increase the histogram for given dimensions.
 
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.
 

Protected Attributes

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

Additional Inherited Members

- Protected Member Functions inherited from 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 288 of file Util.h.


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