![]() |
|
#include <ImageCodebook.h>


Public Types | |
| typedef std::map< double, T > | cont_t |
| typedef cont_t::key_type | key_t |
| typedef cont_t::value_type | entry_t |
| typedef drain::LookUp< typename cont_t::const_iterator > | lookup_t |
| LOOK-UP table is an array of pointers to the actual Palette. | |
| typedef std::list< entry_t > | list_t |
Public Member Functions | |
| ImageCodeMap () | |
| Default constructor. | |
| ImageCodeMap (std::initializer_list< entry_t > l) | |
| ImageCodeMap (const cont_t &map) | |
| Copy constructor //. | |
| lookup_t & | createLookUp (const std::type_info &type, const ValueScaling &scaling) const |
| Creates a vector of 256 or 65535 entries for fast retrieval. | |
| cont_t::const_iterator | retrieve (double d) const |
| cont_t::iterator | retrieve (double d) |
Public Attributes | |
| lookup_t | lookUp |
| char | separator |
| double | - type of lower bound of the value range associated with an entry |
| T | - entry type (LegendEntry, PaletteEntry, HistogramEntry) |
| ImageCodeMap< T >::lookup_t & createLookUp | ( | const std::type_info & | type, |
| const ValueScaling & | scaling | ||
| ) | const |
Creates a vector of 256 or 65535 entries for fast retrieval.
A codebook is assumed to be a sparse list, only containing entries where the values (colors) change. The corresponding lookup table contains an entry for each encountered integer index.
TODO: count parameter (now automatic) TODO: interval fill up function (mixer)
Main loop: traverses entries, and fills up lookUp indices between entries.
Fill up interval [indexLower, index[
1.9.8