#include <cubeclassifier.h>
List of all members.
Detailed Description
Definition at line 37 of file cubeclassifier.h.
Constructor & Destructor Documentation
tesseract::CubeClassifier::~CubeClassifier |
( |
| ) |
|
|
virtual |
Member Function Documentation
Implements tesseract::ShapeClassifier.
Definition at line 44 of file cubeclassifier.cpp.
{
if (page_pix ==
NULL)
return 0;
cube_cntxt_, page_pix, char_box.
left(),
pixGetHeight(page_pix) - char_box.
top(),
for (int i = 0; i < alt_list->AltCount(); ++i) {
int alt_id = alt_list->Alt(i);
int unichar_id = char_set->
UnicharID(char_set->ClassString(alt_id));
int shape_id = shape_table_.
FindShape(unichar_id, -1);
if (shape_id >= 0)
results->
push_back(ShapeRating(shape_id, alt_list->AltProb(i)));
}
delete alt_list;
}
delete cube_obj;
}
const ShapeTable * tesseract::CubeClassifier::GetShapeTable |
( |
| ) |
const |
|
virtual |
The documentation for this class was generated from the following files: