17 #ifndef TESSERACT_CLASSIFY_SAMPLEITERATOR_H_ 18 #define TESSERACT_CLASSIFY_SAMPLEITERATOR_H_ 26 class TrainingSampleSet;
27 struct UnicharAndFonts;
138 return *charset_map_;
182 int shape_char_index_;
183 int num_shape_chars_;
185 int shape_font_index_;
186 int num_shape_fonts_;
195 #endif // TESSERACT_CLASSIFY_SAMPLEITERATOR_H_ int GetCompactClassID() const
double NormalizeSamples()
const ShapeTable * shape_table() const
void Init(const IndexMapBiDi *charset_map, const ShapeTable *shape_table, bool randomize, TrainingSampleSet *sample_set)
int GlobalSampleIndex() const
void MapSampleFeatures(const IntFeatureMap &feature_map)
const TrainingSample & GetSample() const
TrainingSample * MutableSample() const
int CompactCharsetSize() const
const TrainingSampleSet * sample_set() const
int GetSparseClassID() const
int SparseCharsetSize() const
const IndexMapBiDi & charset_map() const