tesseract  4.00.00dev
seam.h File Reference
#include "blobs.h"
#include "split.h"

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)
 

Typedef Documentation

◆ PRIORITY

typedef float PRIORITY

Definition at line 42 of file seam.h.

Function Documentation

◆ start_seam_list()

void start_seam_list ( TWERD word,
GenericVector< SEAM *> *  seam_array 
)

Definition at line 269 of file seam.cpp.

269  {
270  seam_array->truncate(0);
271  TPOINT location;
272 
273  for (int b = 1; b < word->NumBlobs(); ++b) {
274  TBOX bbox = word->blobs[b - 1]->bounding_box();
275  TBOX nbox = word->blobs[b]->bounding_box();
276  location.x = (bbox.right() + nbox.left()) / 2;
277  location.y = (bbox.bottom() + bbox.top() + nbox.bottom() + nbox.top()) / 4;
278  seam_array->push_back(new SEAM(0.0f, location));
279  }
280 }
int push_back(T object)
void truncate(int size)
inT16 left() const
Definition: rect.h:68
Definition: seam.h:44
inT16 x
Definition: blobs.h:71
int NumBlobs() const
Definition: blobs.h:425
inT16 top() const
Definition: rect.h:54
inT16 y
Definition: blobs.h:72
Definition: rect.h:30
GenericVector< TBLOB * > blobs
Definition: blobs.h:436
Definition: blobs.h:50
inT16 right() const
Definition: rect.h:75
inT16 bottom() const
Definition: rect.h:61