textord/wordseg.h

Go to the documentation of this file.
00001 
00020 #ifndef           WORDSEG_H
00021 #define           WORDSEG_H
00022 
00023 #include          "varable.h"
00024 #include          "blobbox.h"
00025 #include          "notdll.h"
00026 
00033 extern BOOL_VAR_H (textord_fp_chopping, TRUE, "Do fixed pitch chopping");
00036 void make_words(                             //make words
00037                 ICOORD page_tr,              //top right
00038                 float gradient,              //page skew
00039                 BLOCK_LIST *blocks,          //block list
00040                 TO_BLOCK_LIST *land_blocks,  //rotated for landscape
00041                 TO_BLOCK_LIST *port_blocks   //output list
00042                );
00043 void set_row_spaces(                  //find space sizes
00044                     TO_BLOCK *block,  //block to do
00045                     FCOORD rotation,  //for drawing
00046                     BOOL8 testing_on  //correct orientation
00047                    );
00048 INT32 row_words(                  //compute space size
00049                 TO_BLOCK *block,  //block it came from
00050                 TO_ROW *row,      //row to operate on
00051                 INT32 maxwidth,   //max expected space size
00052                 FCOORD rotation,  //for drawing
00053                 BOOL8 testing_on  //for debug
00054                );
00055 INT32 row_words2(                  //compute space size
00056                  TO_BLOCK *block,  //block it came from
00057                  TO_ROW *row,      //row to operate on
00058                  INT32 maxwidth,   //max expected space size
00059                  FCOORD rotation,  //for drawing
00060                  BOOL8 testing_on  //for debug
00061                 );
00062 void make_real_words(                  //find lines
00063                      TO_BLOCK *block,  //block to do
00064                      FCOORD rotation   //for drawing
00065                     );
00066 ROW *make_rep_words(                 //make a row
00067                     TO_ROW *row,     //row to convert
00068                     TO_BLOCK *block  //block it lives in
00069                    );
00070 WERD *make_real_word(                      //make a WERD
00071                      BLOBNBOX_IT *box_it,  //iterator
00072                      INT32 blobcount,      //no of blobs to use
00073                      BOOL8 bol,            //start of line
00074                      BOOL8 fuzzy_sp,       //fuzzy space
00075                      BOOL8 fuzzy_non,      //fuzzy non-space
00076                      UINT8 blanks          //no of blanks
00077                     );
00078 #endif

Generated on Wed Feb 28 19:49:12 2007 for Tesseract by  doxygen 1.5.1