00001
00020 #ifndef TESSOUT_H
00021 #define TESSOUT_H
00022
00023 #include "ocrblock.h"
00024 #include "tessclas.h"
00025 #include "statistc.h"
00026 #include "notdll.h"
00027
00028 BOOL8 make_blocks_from_rows(
00029 TEXTROW *tessrows,
00030 const char *name,
00031 ICOORD page_tr,
00032 BOOL8 copy_poly,
00033 BLOCK_IT *block_it
00034 );
00035 ROW *convert_row(
00036 TEXTROW *tessrow,
00037 BOOL8 do_shift,
00038 INT16 &top,
00039 INT16 &bottom
00040 );
00041 void convert_words(
00042 TEXTROW *tessrow,
00043 BOOL8 do_shift,
00044 ROW *row
00045 );
00046 PBLOB *convert_blob(
00047 TBLOB *tblob,
00048 BOOL8 do_shift
00049 );
00050 void convert_outline(
00051 TESSLINE *tessline,
00052 BOOL8 do_shift,
00053 BOOL8 reverse,
00054 OUTLINE_IT *it
00055 );
00056 void accumulate_word_stats(
00057 TWERD *word,
00058 STATS *kern_stats,
00059 ICOORD &bleft,
00060 ICOORD &tright);
00061 void blob_bounding_box(
00062 TBLOB *blob,
00063 INT16 &xmin,
00064 INT16 &ymin,
00065 INT16 &xmax,
00066 INT16 &ymax);
00067 void free_blob(
00068 TBLOB *blob
00069 );
00070 void free_tree(
00071 TESSLINE *outline
00072 );
00073 void free_outline(
00074 TESSLINE *outline
00075 );
00076 #endif