Kinetic Visualization (Visualisierung 2 - S2012)
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
src
vis2
vis2
HistogramGenerator.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <vlCore\Image.hpp>
4
6
9
class
HistogramGenerator
10
{
11
public
:
13
HistogramGenerator
(
int
nBins, vl::Image *image,
bool
countZeros =
false
);
14
~HistogramGenerator
(
void
);
15
17
std::vector<float>
getHistogram
()
const
{
return
_histogram
; }
18
private
:
19
void
generate
();
20
int
getBin
(
float
v);
21
23
vl::Image *
_image
;
25
int
_nBins
;
27
bool
_countZeros
;
29
std::vector<float>
_histogram
;
30
};
31
Generated on Tue Jun 12 2012 15:05:37 for Kinetic Visualization (Visualisierung 2 - S2012) by
1.8.1