ccmain/tstruct.h

Go to the documentation of this file.
00001 
00020 #ifndef           TSTRUCT_H
00021 #define           TSTRUCT_H
00022 
00023 #include          "tessarray.h"
00024 #include          "werd.h"
00025 #include          "tessclas.h"
00026 #include          "ratngs.h"
00027 #include          "notdll.h"
00028 #include "oldlist.h"
00029 
00030 /*
00031 struct TESS_LIST
00032 {
00033   TESS_LIST          *node;                  //data
00034   TESS_LIST          *next;                  //next in list
00035 };
00036 
00037 struct TESS_CHOICE
00038 {
00039   float              rating;                 //scaled
00040   float              certainty;              //absolute
00041   char               permuter;               //which permuter code
00042   INT8               config;                 //which config
00043   char*              string;                 //really can!
00044 };
00045 */
00046 
00051 class FRAGMENT:public ELIST_LINK
00052 {
00053   public:
00054     FRAGMENT() {  //constructor
00055     }
00056     FRAGMENT(EDGEPT *head_pt,   //start
00057              EDGEPT *tail_pt);  //end
00058 
00059     ICOORD head;                 //coords of start
00060     ICOORD tail;                 //coords of end
00061     EDGEPT *headpt;              //start point
00062     EDGEPT *tailpt;              //end point
00063 
00064     NEWDELETE2 (FRAGMENT)
00065 };
00066 
00067 ELISTIZEH (FRAGMENT)
00068 
00069 WERD *make_ed_word(                  //construct word
00070                    TWERD *tessword,  //word to convert
00071                    WERD *clone       //clone this one
00072                   );
00073 PBLOB *make_ed_blob(                 //construct blob
00074                     TBLOB *tessblob  //blob to convert
00075                    );
00076 OUTLINE *make_ed_outline(                     //constructoutline
00077                          FRAGMENT_LIST *list  //list of fragments
00078                         );
00079 void register_outline(                     //add fragments
00080                       TESSLINE *outline,   //tess format
00081                       FRAGMENT_LIST *list  //list to add to
00082                      );
00083 void convert_choice_lists(                                 //convert lists
00084                           ARRAY tessarray,                 //list from tess
00085                           BLOB_CHOICE_LIST_CLIST *ratings  //list of results
00086                          );
00087 void convert_choice_list(                           //convert lists
00088                          LIST list,                 //list from tess
00089                          BLOB_CHOICE_LIST &ratings  //list of results
00090                         );
00091 void make_tess_row(                  //make fake row
00092                    DENORM *denorm,   //row info
00093                    TEXTROW *tessrow  //output row
00094                   );
00095 TWERD *make_tess_word(              //convert owrd
00096                       WERD *word,   //word to do
00097                       TEXTROW *row  //fake row
00098                      );
00099 TBLOB *make_tess_blobs(                      //make tess blobs
00100                        PBLOB_LIST *bloblist  //list to convert
00101                       );
00102 TBLOB *make_tess_blob(               //make tess blob
00103                       PBLOB *blob,   //blob to convert
00104                       BOOL8 flatten  //flatten outline structure
00105                      );
00106 TESSLINE *make_tess_outlines(                            //make tess outlines
00107                              OUTLINE_LIST *outlinelist,  //list to convert
00108                              BOOL8 flatten               //flatten outline structure
00109                             );
00110 EDGEPT *make_tess_edgepts(                          //make tess edgepts
00111                           POLYPT_LIST *edgeptlist,  //list to convert
00112                           TPOINT &tl,               //bounding box
00113                           TPOINT &br);
00114 #endif

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