A sparse histogram.
More...
#include <mia/core/sparse_histogram.hh>
|
typedef std::vector< std::pair< int, unsigned long > > | Compressed |
|
typedef size_t | result_type |
| defines the return type of the filter function More...
|
|
A sparse histogram.
This class implements a sparse histogram. As input only 8 and 16 bit (un)signed data is allowed.
Definition at line 38 of file sparse_histogram.hh.
◆ Compressed
◆ CSparseHistogram()
CSparseHistogram::CSparseHistogram |
( |
| ) |
|
◆ get_compressed_histogram()
Compressed CSparseHistogram::get_compressed_histogram |
( |
| ) |
const |
- Returns
- the histogram as a vector of <value, count> pairs
◆ operator()() [1/2]
template<typename Image >
size_t CSparseHistogram::operator() |
( |
const Image & |
image | ) |
|
|
inline |
◆ operator()() [2/2]
template<typename InIterator >
size_t CSparseHistogram::operator() |
( |
InIterator |
begin, |
|
|
InIterator |
end |
|
) |
| |
Fees pixels to the histogram
- Template Parameters
-
InIterator | input iterator, must be a forward iterator |
- Parameters
-
begin | start of range |
end | end of range |
- Returns
- number of added pixels
The documentation for this class was generated from the following file: