#include <word_size_model.h>
List of all members.
Public Member Functions |
| WordSizeModel (CharSet *, bool contextual) |
virtual | ~WordSizeModel () |
int | Cost (CharSamp **samp_array, int samp_cnt) const |
bool | Save (string file_name) |
int | FontCount () const |
const FontPairSizeInfo * | FontInfo () const |
Static Public Member Functions |
static WordSizeModel * | Create (const string &data_file_path, const string &lang, CharSet *char_set, bool contextual) |
static double | PairCost (int width_0, int height_0, int top_0, int width_1, int height_1, int top_1, const PairSizeInfo &pair_info) |
static int | SizeCode (int cls_id, int start, int end) |
Constructor & Destructor Documentation
tesseract::WordSizeModel::WordSizeModel |
( |
CharSet * |
char_set, |
|
|
bool |
contextual |
|
) |
| |
tesseract::WordSizeModel::~WordSizeModel |
( |
| ) |
[virtual] |
Member Function Documentation
int tesseract::WordSizeModel::Cost |
( |
CharSamp ** |
samp_array, |
|
|
int |
samp_cnt |
|
) |
| const |
WordSizeModel * tesseract::WordSizeModel::Create |
( |
const string & |
data_file_path, |
|
|
const string & |
lang, |
|
|
CharSet * |
char_set, |
|
|
bool |
contextual |
|
) |
| [static] |
int tesseract::WordSizeModel::FontCount |
( |
| ) |
const [inline] |
double tesseract::WordSizeModel::PairCost |
( |
int |
width_0, |
|
|
int |
height_0, |
|
|
int |
top_0, |
|
|
int |
width_1, |
|
|
int |
height_1, |
|
|
int |
top_1, |
|
|
const PairSizeInfo & |
pair_info |
|
) |
| [static] |
bool tesseract::WordSizeModel::Save |
( |
string |
file_name | ) |
|
static int tesseract::WordSizeModel::SizeCode |
( |
int |
cls_id, |
|
|
int |
start, |
|
|
int |
end |
|
) |
| [inline, static] |
The documentation for this class was generated from the following files: