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 CompactCharsetSize() const
int GlobalSampleIndex() const
double NormalizeSamples()
TrainingSample * MutableSample() const
int SparseCharsetSize() const
const TrainingSampleSet * sample_set() const
void MapSampleFeatures(const IntFeatureMap &feature_map)
void Init(const IndexMapBiDi *charset_map, const ShapeTable *shape_table, bool randomize, TrainingSampleSet *sample_set)
const ShapeTable * shape_table() const
int GetSparseClassID() const
const TrainingSample & GetSample() const
const IndexMapBiDi & charset_map() const
int GetCompactClassID() const