|
tesseract 3.04.01
|
Go to the source code of this file.
Classes | |
| class | SEAM |
Typedefs | |
| typedef float | PRIORITY |
Functions | |
| void | start_seam_list (TWERD *word, GenericVector< SEAM * > *seam_array) |
| void start_seam_list | ( | TWERD * | word, |
| GenericVector< SEAM * > * | seam_array | ||
| ) |
Definition at line 269 of file seam.cpp.
{
seam_array->truncate(0);
TPOINT location;
for (int b = 1; b < word->NumBlobs(); ++b) {
TBOX bbox = word->blobs[b - 1]->bounding_box();
TBOX nbox = word->blobs[b]->bounding_box();
location.x = (bbox.right() + nbox.left()) / 2;
location.y = (bbox.bottom() + bbox.top() + nbox.bottom() + nbox.top()) / 4;
seam_array->push_back(new SEAM(0.0f, location));
}
}