tesseract
4.00.00dev
|
#include <shapetable.h>
Public Member Functions | |
ShapeTable () | |
ShapeTable (const UNICHARSET &unicharset) | |
bool | Serialize (FILE *fp) const |
bool | DeSerialize (TFile *fp) |
int | NumShapes () const |
const UNICHARSET & | unicharset () const |
int | NumFonts () const |
void | set_unicharset (const UNICHARSET &unicharset) |
void | ReMapClassIds (const GenericVector< int > &unicharset_map) |
STRING | DebugStr (int shape_id) const |
STRING | SummaryStr () const |
int | AddShape (int unichar_id, int font_id) |
int | AddShape (const Shape &other) |
void | DeleteShape (int shape_id) |
void | AddToShape (int shape_id, int unichar_id, int font_id) |
void | AddShapeToShape (int shape_id, const Shape &other) |
int | FindShape (int unichar_id, int font_id) const |
void | GetFirstUnicharAndFont (int shape_id, int *unichar_id, int *font_id) const |
const Shape & | GetShape (int shape_id) const |
Shape * | MutableShape (int shape_id) |
int | BuildFromShape (const Shape &shape, const ShapeTable &master_shapes) |
bool | AlreadyMerged (int shape_id1, int shape_id2) const |
bool | AnyMultipleUnichars () const |
int | MaxNumUnichars () const |
void | ForceFontMerges (int start, int end) |
int | MasterUnicharCount (int shape_id) const |
int | MasterFontCount (int shape_id) const |
int | MergedUnicharCount (int shape_id1, int shape_id2) const |
void | MergeShapes (int shape_id1, int shape_id2) |
void | SwapShapes (int shape_id1, int shape_id2) |
void | AppendMasterShapes (const ShapeTable &other, GenericVector< int > *shape_map) |
int | NumMasterShapes () const |
int | MasterDestinationIndex (int shape_id) const |
bool | SubsetUnichar (int shape_id1, int shape_id2) const |
bool | MergeSubsetUnichar (int merge_id1, int merge_id2, int shape_id) const |
bool | EqualUnichars (int shape_id1, int shape_id2) const |
bool | MergeEqualUnichars (int merge_id1, int merge_id2, int shape_id) const |
bool | CommonUnichars (int shape_id1, int shape_id2) const |
bool | CommonFont (int shape_id1, int shape_id2) const |
void | AddShapeToResults (const ShapeRating &shape_rating, GenericVector< int > *unichar_map, GenericVector< UnicharRating > *results) const |
Definition at line 262 of file shapetable.h.
tesseract::ShapeTable::ShapeTable | ( | ) |
Definition at line 239 of file shapetable.cpp.
|
explicit |
Definition at line 241 of file shapetable.cpp.
Definition at line 342 of file shapetable.cpp.
Definition at line 353 of file shapetable.cpp.
void tesseract::ShapeTable::AddShapeToResults | ( | const ShapeRating & | shape_rating, |
GenericVector< int > * | unichar_map, | ||
GenericVector< UnicharRating > * | results | ||
) | const |
Definition at line 693 of file shapetable.cpp.
Definition at line 382 of file shapetable.cpp.
Definition at line 375 of file shapetable.cpp.
Definition at line 445 of file shapetable.cpp.
bool tesseract::ShapeTable::AnyMultipleUnichars | ( | ) | const |
Definition at line 450 of file shapetable.cpp.
void tesseract::ShapeTable::AppendMasterShapes | ( | const ShapeTable & | other, |
GenericVector< int > * | shape_map | ||
) |
Definition at line 662 of file shapetable.cpp.
int tesseract::ShapeTable::BuildFromShape | ( | const Shape & | shape, |
const ShapeTable & | master_shapes | ||
) |
Definition at line 419 of file shapetable.cpp.
Definition at line 647 of file shapetable.cpp.
Definition at line 635 of file shapetable.cpp.
Definition at line 287 of file shapetable.cpp.
void tesseract::ShapeTable::DeleteShape | ( | int | shape_id | ) |
Definition at line 367 of file shapetable.cpp.
bool tesseract::ShapeTable::DeSerialize | ( | TFile * | fp | ) |
Definition at line 252 of file shapetable.cpp.
Definition at line 593 of file shapetable.cpp.
Definition at line 392 of file shapetable.cpp.
Definition at line 474 of file shapetable.cpp.
void tesseract::ShapeTable::GetFirstUnicharAndFont | ( | int | shape_id, |
int * | unichar_id, | ||
int * | font_id | ||
) | const |
Definition at line 410 of file shapetable.cpp.
Definition at line 320 of file shapetable.h.
Definition at line 537 of file shapetable.cpp.
Definition at line 498 of file shapetable.cpp.
Definition at line 492 of file shapetable.cpp.
int tesseract::ShapeTable::MaxNumUnichars | ( | ) | const |
Definition at line 461 of file shapetable.cpp.
Definition at line 509 of file shapetable.cpp.
Definition at line 610 of file shapetable.cpp.
Definition at line 519 of file shapetable.cpp.
Definition at line 567 of file shapetable.cpp.
Definition at line 323 of file shapetable.h.
int tesseract::ShapeTable::NumFonts | ( | ) | const |
Definition at line 260 of file shapetable.cpp.
int tesseract::ShapeTable::NumMasterShapes | ( | ) | const |
Definition at line 676 of file shapetable.cpp.
|
inline |
Definition at line 275 of file shapetable.h.
void tesseract::ShapeTable::ReMapClassIds | ( | const GenericVector< int > & | unicharset_map | ) |
Definition at line 277 of file shapetable.cpp.
bool tesseract::ShapeTable::Serialize | ( | FILE * | fp | ) | const |
Definition at line 246 of file shapetable.cpp.
|
inline |
Definition at line 286 of file shapetable.h.
Definition at line 549 of file shapetable.cpp.
STRING tesseract::ShapeTable::SummaryStr | ( | ) | const |
Definition at line 319 of file shapetable.cpp.
Definition at line 529 of file shapetable.cpp.
|
inline |
Definition at line 278 of file shapetable.h.