#include <ratngs.h>
Definition at line 32 of file ratngs.h.
| BLOB_CHOICE::BLOB_CHOICE |
( |
| ) |
|
|
inline |
Definition at line 35 of file ratngs.h.
36 unichar_id_ = INVALID_UNICHAR_ID;
42 language_model_state_ =
NULL;
| BLOB_CHOICE::BLOB_CHOICE |
( |
UNICHAR_ID |
src_unichar_id, |
|
|
float |
src_rating, |
|
|
float |
src_cert, |
|
|
inT16 |
src_fontinfo_id, |
|
|
inT16 |
src_fontinfo_id2, |
|
|
int |
src_script_id, |
|
|
inT16 |
min_xheight, |
|
|
inT16 |
max_xheight, |
|
|
bool |
adapted |
|
) |
| |
BLOB_CHOICE::BLOB_CHOICE
Constructor to build a BLOB_CHOICE from a char, rating and certainty.
Definition at line 66 of file ratngs.cpp.
76 unichar_id_ = src_unichar_id;
78 certainty_ = src_cert;
79 fontinfo_id_ = src_fontinfo_id;
80 fontinfo_id2_ = src_fontinfo_id2;
81 script_id_ = src_script_id;
82 language_model_state_ =
NULL;
inT16 max_xheight() const
inT16 min_xheight() const
BLOB_CHOICE::BLOB_CHOICE
Constructor to build a BLOB_CHOICE from another BLOB_CHOICE.
Definition at line 93 of file ratngs.cpp.
100 language_model_state_ =
NULL;
101 min_xheight_ = other.min_xheight_;
102 max_xheight_ = other.max_xheight_;
103 adapted_ = other.adapted_;
inT16 fontinfo_id() const
inT16 fontinfo_id2() const
UNICHAR_ID unichar_id() const
| BLOB_CHOICE::~BLOB_CHOICE |
( |
| ) |
|
|
inline |
| bool BLOB_CHOICE::adapted |
( |
| ) |
const |
|
inline |
| float BLOB_CHOICE::certainty |
( |
| ) |
const |
|
inline |
| inT16 BLOB_CHOICE::fontinfo_id |
( |
| ) |
const |
|
inline |
| inT16 BLOB_CHOICE::fontinfo_id2 |
( |
| ) |
const |
|
inline |
| void* BLOB_CHOICE::language_model_state |
( |
| ) |
|
|
inline |
Definition at line 77 of file ratngs.h.
78 return language_model_state_;
| inT16 BLOB_CHOICE::max_xheight |
( |
| ) |
const |
|
inline |
| inT16 BLOB_CHOICE::min_xheight |
( |
| ) |
const |
|
inline |
| void BLOB_CHOICE::print |
( |
const UNICHARSET * |
unicharset | ) |
|
|
inline |
Definition at line 131 of file ratngs.h.
132 tprintf(
"r%.2f c%.2f : %d %s", rating_, certainty_, unichar_id_,
133 (unicharset ==
NULL) ?
"" :
STRING debug_str(UNICHAR_ID id) const
const char * string() const
DLLSYM void tprintf(const char *format,...)
| float BLOB_CHOICE::rating |
( |
| ) |
const |
|
inline |
| int BLOB_CHOICE::script_id |
( |
| ) |
const |
|
inline |
| void BLOB_CHOICE::set_adapted |
( |
bool |
adapted | ) |
|
|
inline |
| void BLOB_CHOICE::set_certainty |
( |
float |
newrat | ) |
|
|
inline |
| void BLOB_CHOICE::set_fontinfo_id |
( |
inT16 |
newfont | ) |
|
|
inline |
Definition at line 105 of file ratngs.h.
106 fontinfo_id_ = newfont;
| void BLOB_CHOICE::set_fontinfo_id2 |
( |
inT16 |
newfont | ) |
|
|
inline |
Definition at line 108 of file ratngs.h.
109 fontinfo_id2_ = newfont;
| void BLOB_CHOICE::set_language_model_state |
( |
void * |
language_model_state | ) |
|
|
inline |
Definition at line 114 of file ratngs.h.
void * language_model_state()
| void BLOB_CHOICE::set_rating |
( |
float |
newrat | ) |
|
|
inline |
| void BLOB_CHOICE::set_script |
( |
int |
newscript_id | ) |
|
|
inline |
Definition at line 111 of file ratngs.h.
112 script_id_ = newscript_id;
| void BLOB_CHOICE::set_unichar_id |
( |
UNICHAR_ID |
newunichar_id | ) |
|
|
inline |
Definition at line 96 of file ratngs.h.
97 unichar_id_ = newunichar_id;
| void BLOB_CHOICE::set_xgap_after |
( |
inT16 |
gap | ) |
|
|
inline |
| void BLOB_CHOICE::set_xgap_before |
( |
inT16 |
gap | ) |
|
|
inline |
| inT16 BLOB_CHOICE::xgap_after |
( |
| ) |
const |
|
inline |
| inT16 BLOB_CHOICE::xgap_before |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files:
- /home/abuild/rpmbuild/BUILD/tesseract-ocr-3.02.02/ccstruct/ratngs.h
- /home/abuild/rpmbuild/BUILD/tesseract-ocr-3.02.02/ccstruct/ratngs.cpp