Kinetic Visualization (Visualisierung 2 - S2012)
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Private Member Functions | Private Attributes
HistogramGenerator Class Reference

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 Member Functions

void generate ()
int getBin (float v)

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

Returns the histogram.


Member Data Documentation

bool HistogramGenerator::_countZeros
private

Boolean flag which indicates if zeros should be counted or not.

std::vector<float> HistogramGenerator::_histogram
private

Stores the histogram.

vl::Image* HistogramGenerator::_image
private

Stores the volume.

int HistogramGenerator::_nBins
private

Stores the number of bins.


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