21 #ifndef TESSERACT_CLASSIFY_INTFEATUREMAP_H_ 22 #define TESSERACT_CLASSIFY_INTFEATUREMAP_H_ 24 #include "intfeaturespace.h" 25 #include "indexmapbidi.h" 163 #endif // TESSERACT_CLASSIFY_INTFEATUREMAP_H_ Definition: intfeaturespace.h:38
int sparse_size() const
Definition: intfeaturemap.h:54
void DebugMapFeatures(const GenericVector< int > &map_features) const
Definition: intfeaturemap.cpp:172
IntFeatureMap()
Definition: intfeaturemap.cpp:34
int MapIndexedFeatures(const GenericVector< int > &index_features, GenericVector< int > *map_features) const
Definition: intfeaturemap.h:115
static const int kNumOffsetMaps
Definition: intfeaturemap.h:33
int compact_size_
Definition: intfeaturemap.h:143
int OffsetFeature(int index_feature, int dir) const
Definition: intfeaturemap.cpp:113
Definition: intfeaturemap.h:48
int * offset_minus_[kNumOffsetMaps]
Definition: intfeaturemap.h:154
Definition: baseapi.cpp:94
void operator=(const IntFeatureMap &)
void DeleteMapFeature(int map_feature)
Definition: intfeaturemap.cpp:63
int FindNZFeatureMapping(SampleIterator *it)
IndexMapBiDi feature_map_
Definition: intfeaturemap.h:148
int ComputeOffsetFeature(int index_feature, int dir) const
Definition: intfeaturemap.cpp:201
INT_FEATURE_STRUCT InverseMapFeature(int map_feature) const
Definition: intfeaturemap.cpp:59
void IndexAndSortFeatures(const INT_FEATURE_STRUCT *features, int num_features, GenericVector< int > *sorted_features) const
Definition: intfeaturespace.cpp:67
const IntFeatureSpace & feature_space() const
Definition: intfeaturemap.h:60
int IndexFeature(const INT_FEATURE_STRUCT &f) const
Definition: intfeaturemap.cpp:47
int compact_size() const
Definition: intfeaturemap.h:57
int * offset_plus_[kNumOffsetMaps]
Definition: intfeaturemap.h:153
const IndexMapBiDi & feature_map() const
Definition: intfeaturemap.h:63
Definition: indexmapbidi.h:102
void IndexAndSortFeatures(const INT_FEATURE_STRUCT *features, int num_features, GenericVector< int > *sorted_features) const
Definition: intfeaturemap.h:104
int Size() const
Definition: intfeaturespace.h:51
int MapFeature(const INT_FEATURE_STRUCT &f) const
Definition: intfeaturemap.cpp:50
int MapIndexFeature(int index_feature) const
Definition: intfeaturemap.cpp:53
int MapFeatures(const GenericVector< int > &sparse, GenericVector< int > *compact) const
Definition: indexmapbidi.cpp:236
IntFeatureSpace feature_space_
Definition: intfeaturemap.h:145
Definition: intproto.h:132
bool mapping_changed_
Definition: intfeaturemap.h:141
int FinalizeMapping(SampleIterator *it)
Definition: intfeaturemap.cpp:159
Definition: sampleiterator.h:92
void Clear()
Definition: intfeaturemap.cpp:180
INT_FEATURE_STRUCT InverseIndexFeature(int index_feature) const
Definition: intfeaturemap.cpp:56
void Init(const IntFeatureSpace &feature_space)
Definition: intfeaturemap.cpp:73
~IntFeatureMap()
Definition: intfeaturemap.cpp:42
bool IsMapFeatureDeleted(int map_feature) const
Definition: intfeaturemap.cpp:67