A sparse histogram. More...
#include <mia/core/sparse_histogram.hh>
Public Types | |
typedef std::vector< std::pair< int, unsigned long > > | Compressed |
Public Types inherited from TFilter< size_t > | |
typedef size_t | result_type |
defines the return type of the filter function More... | |
Public Member Functions | |
CSparseHistogram () | |
Compressed | get_compressed_histogram () const |
template<typename InIterator > | |
size_t | operator() (InIterator begin, InIterator end) |
template<typename Image > | |
size_t | operator() (const Image &image) |
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.
typedef std::vector<std::pair<int, unsigned long> > CSparseHistogram::Compressed |
Definition at line 41 of file sparse_histogram.hh.
CSparseHistogram::CSparseHistogram | ( | ) |
Compressed CSparseHistogram::get_compressed_histogram | ( | ) | const |
size_t CSparseHistogram::operator() | ( | InIterator | begin, |
InIterator | end | ||
) |
Fees pixels to the histogram
InIterator | input iterator, must be a forward iterator |
begin | start of range |
end | end of range |
Referenced by operator()().
|
inline |
Definition at line 56 of file sparse_histogram.hh.
References CPixelTypeDict, EXPORT_CORE, it_none, it_sbyte, it_sshort, it_ubyte, it_ushort, NS_MIA_END, and operator()().