24#ifndef _FIREVISION_FVUTILS_STATISTICAL_HISTOGRAM_FILE_H_
25#define _FIREVISION_FVUTILS_STATISTICAL_HISTOGRAM_FILE_H_
27#define FIREVISION_HISTOGRAM_MAGIC 0xFF04
28#define FIREVISION_HISTOGRAM_CURVER 1
30#include <fvutils/base/roi.h>
31#include <fvutils/fileformat/fvfile.h>
52 uint32_t
get_value(hint_t object_type, uint16_t x, uint16_t y, uint16_t z);
54 void set_value(hint_t object_type, uint16_t x, uint16_t y, uint16_t z, uint32_t val);
57 std::map<hint_t, HistogramBlock *> attached_histograms;
FireVision File Format for data files.
This class defines a file block for histograms.
A fileformat for histograms.
HistogramBlockList histogram_blocks()
Generates a list of histogram blocks attached to the file.
uint32_t get_value(hint_t object_type, uint16_t x, uint16_t y, uint16_t z)
Get a value from a certain histogram.
~HistogramFile()
Destructor.
void add_histogram_block(HistogramBlock *block)
Adds a new histogram block to the file.
void set_value(hint_t object_type, uint16_t x, uint16_t y, uint16_t z, uint32_t val)
Set a value in a certain histogram.
std::list< HistogramBlock * > HistogramBlockList
Convenience typdef for a STL list of pointers to histogram blocks.
HistogramFile()
Constructor.