This class generates a histogram from the given volume.
More...
#include <HistogramGenerator.h>
List of all members.
Public Member Functions |
| HistogramGenerator (int nBins, vl::Image *image, bool countZeros=false) |
| Initializes the generator with a given number of bins, the volume image, and a flag which indicates if zeros should be counted or not.
|
| ~HistogramGenerator (void) |
std::vector< float > | getHistogram () const |
| Returns the histogram.
|
Private Attributes |
vl::Image * | _image |
| Stores the volume.
|
int | _nBins |
| Stores the number of bins.
|
bool | _countZeros |
| Boolean flag which indicates if zeros should be counted or not.
|
std::vector< float > | _histogram |
| Stores the histogram.
|
Detailed Description
This class generates a histogram from the given volume.
Constructor & Destructor Documentation
HistogramGenerator::HistogramGenerator |
( |
int |
nBins, |
|
|
vl::Image * |
image, |
|
|
bool |
countZeros = false |
|
) |
| |
Initializes the generator with a given number of bins, the volume image, and a flag which indicates if zeros should be counted or not.
HistogramGenerator::~HistogramGenerator |
( |
void |
| ) |
|
Member Function Documentation
void HistogramGenerator::generate |
( |
| ) |
|
|
private |
int HistogramGenerator::getBin |
( |
float |
v | ) |
|
|
private |
std::vector<float> HistogramGenerator::getHistogram |
( |
| ) |
const |
|
inline |
Member Data Documentation
bool HistogramGenerator::_countZeros |
|
private |
Boolean flag which indicates if zeros should be counted or not.
std::vector<float> HistogramGenerator::_histogram |
|
private |
vl::Image* HistogramGenerator::_image |
|
private |
int HistogramGenerator::_nBins |
|
private |
Stores the number of bins.
The documentation for this class was generated from the following files: