17 #ifndef TESSERACT_CLASSIFY_SAMPLEITERATOR_H_ 18 #define TESSERACT_CLASSIFY_SAMPLEITERATOR_H_ 26 class TrainingSampleSet;
27 struct UnicharAndFonts;
195 #endif // TESSERACT_CLASSIFY_SAMPLEITERATOR_H_ int num_shape_chars_
Definition: sampleiterator.h:183
int UniformSamples()
Definition: sampleiterator.cpp:220
bool randomize_
Definition: sampleiterator.h:174
void Next()
Definition: sampleiterator.cpp:156
TrainingSampleSet * sample_set_
Definition: sampleiterator.h:172
Definition: trainingsampleset.h:43
const ShapeTable * shape_table() const
Definition: sampleiterator.h:140
SampleIterator()
Definition: sampleiterator.cpp:27
int SparseCharsetSize() const
Definition: sampleiterator.cpp:202
void Init(const IndexMapBiDi *charset_map, const ShapeTable *shape_table, bool randomize, TrainingSampleSet *sample_set)
Definition: sampleiterator.cpp:47
int CompactCharsetSize() const
Definition: sampleiterator.cpp:196
const IndexMapBiDi * charset_map_
Definition: sampleiterator.h:168
const ShapeTable * shape_table_
Definition: sampleiterator.h:170
Definition: shapetable.h:160
int sample_index_
Definition: sampleiterator.h:189
Definition: intfeaturemap.h:48
Definition: baseapi.cpp:94
int shape_index_
Definition: sampleiterator.h:179
const UnicharAndFonts * GetShapeEntry() const
Definition: sampleiterator.cpp:256
const TrainingSample & GetSample() const
Definition: sampleiterator.cpp:103
int shape_font_index_
Definition: sampleiterator.h:185
bool AtEnd() const
Definition: sampleiterator.cpp:99
int num_samples_
Definition: sampleiterator.h:190
Definition: indexmapbidi.h:102
void Begin()
Definition: sampleiterator.cpp:87
void MapSampleFeatures(const IntFeatureMap &feature_map)
Definition: sampleiterator.cpp:211
Definition: shapetable.h:262
int GetSparseClassID() const
Definition: sampleiterator.cpp:150
double NormalizeSamples()
Definition: sampleiterator.cpp:233
int num_shapes_
Definition: sampleiterator.h:180
int shape_char_index_
Definition: sampleiterator.h:182
int num_shape_fonts_
Definition: sampleiterator.h:186
Definition: trainingsample.h:53
int GetCompactClassID() const
Definition: sampleiterator.cpp:142
const IndexMapBiDi & charset_map() const
Definition: sampleiterator.h:137
ShapeTable * owned_shape_table_
Definition: sampleiterator.h:176
Definition: sampleiterator.h:92
int GlobalSampleIndex() const
Definition: sampleiterator.cpp:127
const TrainingSampleSet * sample_set() const
Definition: sampleiterator.h:144
~SampleIterator()
Definition: sampleiterator.cpp:37
TrainingSample * MutableSample() const
Definition: sampleiterator.cpp:114
void Clear()
Definition: sampleiterator.cpp:41