tesseract  v4.0.0-17-g361f3264
Open Source OCR Engine
tesseract::SampleIterator Class Reference

#include <sampleiterator.h>

Collaboration diagram for tesseract::SampleIterator:

Public Member Functions

 SampleIterator ()
 
 ~SampleIterator ()
 
void Clear ()
 
void Init (const IndexMapBiDi *charset_map, const ShapeTable *shape_table, bool randomize, TrainingSampleSet *sample_set)
 
void Begin ()
 
bool AtEnd () const
 
const TrainingSampleGetSample () const
 
TrainingSampleMutableSample () const
 
int GlobalSampleIndex () const
 
int GetCompactClassID () const
 
int GetSparseClassID () const
 
void Next ()
 
int CompactCharsetSize () const
 
int SparseCharsetSize () const
 
const IndexMapBiDicharset_map () const
 
const ShapeTableshape_table () const
 
const TrainingSampleSetsample_set () const
 
void MapSampleFeatures (const IntFeatureMap &feature_map)
 
int UniformSamples ()
 
double NormalizeSamples ()
 

Private Member Functions

const UnicharAndFontsGetShapeEntry () const
 

Private Attributes

const IndexMapBiDicharset_map_
 
const ShapeTableshape_table_
 
TrainingSampleSetsample_set_
 
bool randomize_
 
ShapeTableowned_shape_table_
 
int shape_index_
 
int num_shapes_
 
int shape_char_index_
 
int num_shape_chars_
 
int shape_font_index_
 
int num_shape_fonts_
 
int sample_index_
 
int num_samples_
 

Constructor & Destructor Documentation

◆ SampleIterator()

tesseract::SampleIterator::SampleIterator ( )

◆ ~SampleIterator()

tesseract::SampleIterator::~SampleIterator ( )

Member Function Documentation

◆ AtEnd()

bool tesseract::SampleIterator::AtEnd ( ) const

◆ Begin()

void tesseract::SampleIterator::Begin ( )

◆ charset_map()

const IndexMapBiDi& tesseract::SampleIterator::charset_map ( ) const
inline

◆ Clear()

void tesseract::SampleIterator::Clear ( )

◆ CompactCharsetSize()

int tesseract::SampleIterator::CompactCharsetSize ( ) const

◆ GetCompactClassID()

int tesseract::SampleIterator::GetCompactClassID ( ) const

◆ GetSample()

const TrainingSample & tesseract::SampleIterator::GetSample ( ) const

◆ GetShapeEntry()

const UnicharAndFonts * tesseract::SampleIterator::GetShapeEntry ( ) const
private

◆ GetSparseClassID()

int tesseract::SampleIterator::GetSparseClassID ( ) const

◆ GlobalSampleIndex()

int tesseract::SampleIterator::GlobalSampleIndex ( ) const

◆ Init()

void tesseract::SampleIterator::Init ( const IndexMapBiDi charset_map,
const ShapeTable shape_table,
bool  randomize,
TrainingSampleSet sample_set 
)

◆ MapSampleFeatures()

void tesseract::SampleIterator::MapSampleFeatures ( const IntFeatureMap feature_map)

◆ MutableSample()

TrainingSample * tesseract::SampleIterator::MutableSample ( ) const

◆ Next()

void tesseract::SampleIterator::Next ( )

◆ NormalizeSamples()

double tesseract::SampleIterator::NormalizeSamples ( )

◆ sample_set()

const TrainingSampleSet* tesseract::SampleIterator::sample_set ( ) const
inline

◆ shape_table()

const ShapeTable* tesseract::SampleIterator::shape_table ( ) const
inline

◆ SparseCharsetSize()

int tesseract::SampleIterator::SparseCharsetSize ( ) const

◆ UniformSamples()

int tesseract::SampleIterator::UniformSamples ( )

Member Data Documentation

◆ charset_map_

const IndexMapBiDi* tesseract::SampleIterator::charset_map_
private

◆ num_samples_

int tesseract::SampleIterator::num_samples_
private

◆ num_shape_chars_

int tesseract::SampleIterator::num_shape_chars_
private

◆ num_shape_fonts_

int tesseract::SampleIterator::num_shape_fonts_
private

◆ num_shapes_

int tesseract::SampleIterator::num_shapes_
private

◆ owned_shape_table_

ShapeTable* tesseract::SampleIterator::owned_shape_table_
private

◆ randomize_

bool tesseract::SampleIterator::randomize_
private

◆ sample_index_

int tesseract::SampleIterator::sample_index_
private

◆ sample_set_

TrainingSampleSet* tesseract::SampleIterator::sample_set_
private

◆ shape_char_index_

int tesseract::SampleIterator::shape_char_index_
private

◆ shape_font_index_

int tesseract::SampleIterator::shape_font_index_
private

◆ shape_index_

int tesseract::SampleIterator::shape_index_
private

◆ shape_table_

const ShapeTable* tesseract::SampleIterator::shape_table_
private

The documentation for this class was generated from the following files: