N-dimensional Histograms calculating also the subpixel average for max bin. More...
#include <Util.h>
Public Member Functions | |
void | Clear () |
Clear the histogram. | |
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. | |
void | Inc (double dim0, double dim1=0, double dim2=0) |
Increase the histogram for given dimensions. | |
Protected Attributes | |
std::map< Index, double > | acc_dim0 |
std::map< Index, double > | acc_dim1 |
std::map< Index, double > | acc_dim2 |
N-dimensional Histograms calculating also the subpixel average for max bin.
void alvar::HistogramSubpixel::Clear | ( | ) |
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.
Reimplemented from alvar::Histogram.
void alvar::HistogramSubpixel::Inc | ( | double | dim0, |
double | dim1 = 0 , |
||
double | dim2 = 0 |
||
) |
Increase the histogram for given dimensions.
Reimplemented from alvar::Histogram.
std::map<Index, double> alvar::HistogramSubpixel::acc_dim0 [protected] |
std::map<Index, double> alvar::HistogramSubpixel::acc_dim1 [protected] |
std::map<Index, double> alvar::HistogramSubpixel::acc_dim2 [protected] |