54 #include <visp/vpImage.h>
55 #include <visp/vpHistogramPeak.h>
56 #include <visp/vpHistogramValey.h>
58 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
59 # include <visp/vpList.h>
147 return histogram[level];
172 return histogram[level];
194 inline unsigned get(
const unsigned char level)
const
196 return histogram[level];
216 inline void set(
const unsigned char level,
unsigned int value)
218 histogram[level] = value;
222 void smooth(
const unsigned int fsize = 3);
223 unsigned getPeaks(std::list<vpHistogramPeak> & peaks);
224 unsigned getPeaks(
unsigned char dist,
227 bool getPeaks(
unsigned char dist,
231 unsigned getValey(std::list<vpHistogramValey> & valey);
235 unsigned getValey(
unsigned char dist,
239 unsigned sort(std::list<vpHistogramPeak> & peaks);
241 bool write(
const std::string &filename);
242 bool write(
const char *filename);
283 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
293 void init(
unsigned size = 256);
295 unsigned int *histogram;
Provide simple list management.
Class to compute a gray level image histogram.
Declaration of the peak (maximum value) in a gray level image histogram.
unsigned operator[](const unsigned char level) const
unsigned operator()(const unsigned char level) const
Declaration of the valey (minimum value) in a gray level image histogram.
void set(const unsigned char level, unsigned int value)