tesseract-doxygen/wordrec/seam.h File Reference
#include "split.h"
#include "tessarray.h"
Go to the source code of this file.
Classes |
struct | seam_record |
Typedefs |
typedef float | PRIORITY |
typedef struct seam_record | SEAM |
typedef ARRAY | SEAMS |
Functions |
SEAM * | newseam () |
clone_seam |
Create a new seam record and copy the contents of this seam into it.
|
#define | clone_seam(dest, source) |
#define | exact_point(p1, p2) (! ((p1->pos.x - p2->pos.x) || (p1->pos.y - p2->pos.y))) |
bool | point_in_split (SPLIT *split, EDGEPT *point1, EDGEPT *point2) |
bool | point_in_seam (SEAM *seam, SPLIT *split) |
SEAMS | add_seam (SEAMS seam_list, SEAM *seam) |
void | combine_seams (SEAM *dest_seam, SEAM *source_seam) |
void | delete_seam (void *arg) |
void | free_seam_list (SEAMS seam_list) |
bool | test_insert_seam (SEAMS seam_list, int index, TBLOB *left_blob, TBLOB *first_blob) |
SEAMS | insert_seam (SEAMS seam_list, int index, SEAM *seam, TBLOB *left_blob, TBLOB *first_blob) |
int | account_splits_right (SEAM *seam, TBLOB *blob) |
int | account_splits_left (SEAM *seam, TBLOB *blob, TBLOB *end_blob) |
bool | find_split_in_blob (SPLIT *split, TBLOB *blob) |
SEAM * | join_two_seams (SEAM *seam1, SEAM *seam2) |
SEAM * | new_seam (PRIORITY priority, int x_location, SPLIT *split1, SPLIT *split2, SPLIT *split3) |
SEAMS | new_seam_list () |
void | print_seam (const char *label, SEAM *seam) |
void | print_seams (const char *label, SEAMS seams) |
int | shared_split_points (SEAM *seam1, SEAM *seam2) |
Define Documentation
#define clone_seam |
( |
dest, |
|
|
source |
|
) |
|
Value:if (source) { \
(dest) = newseam (); \
(dest)->location = (source)->location; \
(dest)->widthp = (source)->widthp; \
(dest)->widthn = (source)->widthn; \
(dest)->priority = (source)->priority; \
clone_split ((dest)->split1, (source)->split1); \
clone_split ((dest)->split2, (source)->split2); \
clone_split ((dest)->split3, (source)->split3); \
} \
else { \
(dest) = (SEAM*) NULL; \
} \
#define exact_point |
( |
p1, |
|
|
p2 |
|
) |
(! ((p1->pos.x - p2->pos.x) || (p1->pos.y - p2->pos.y))) |
exact_point
Return TRUE if the point positions are the exactly the same. The parameters must be of type (EDGEPT*).
Typedef Documentation
Function Documentation
int account_splits_left |
( |
SEAM * |
seam, |
|
|
TBLOB * |
blob, |
|
|
TBLOB * |
end_blob | |
|
) |
| | |
int account_splits_right |
( |
SEAM * |
seam, |
|
|
TBLOB * |
blob | |
|
) |
| | |
void combine_seams |
( |
SEAM * |
dest_seam, |
|
|
SEAM * |
source_seam | |
|
) |
| | |
void delete_seam |
( |
void * |
arg |
) |
|
void free_seam_list |
( |
SEAMS |
seam_list |
) |
|
void print_seam |
( |
const char * |
label, |
|
|
SEAM * |
seam | |
|
) |
| | |
void print_seams |
( |
const char * |
label, |
|
|
SEAMS |
seams | |
|
) |
| | |
int shared_split_points |
( |
SEAM * |
seam1, |
|
|
SEAM * |
seam2 | |
|
) |
| | |