MCPcopy Create free account
hub / github.com/creatale/node-dv / SparseCharsetSize

Method SparseCharsetSize

deps/tesseract/classify/sampleiterator.cpp:202–207  ·  view source on GitHub ↗

Returns the size of the sparse charset space.

Source from the content-addressed store, hash-verified

200
201// Returns the size of the sparse charset space.
202int SampleIterator::SparseCharsetSize() const {
203 return charset_map_ != NULL
204 ? charset_map_->SparseSize()
205 : (shape_table_ != NULL ? shape_table_->NumShapes()
206 : sample_set_->charsetsize());
207}
208
209// Apply the supplied feature_space/feature_map transform to all samples
210// accessed by this iterator.

Callers 1

TestClassifierMethod · 0.80

Calls 2

charsetsizeMethod · 0.80
SparseSizeMethod · 0.45

Tested by 1

TestClassifierMethod · 0.64