textord/underlin.h

Go to the documentation of this file.
00001 
00020 #ifndef           UNDERLIN_H
00021 #define           UNDERLIN_H
00022 
00023 #include          "fpchop.h"
00024 #include          "notdll.h"
00025 
00036 extern double_VAR_H (textord_underline_offset, 0.1,
00037 "Fraction of x to ignore");
00038 extern BOOL_VAR_H (textord_restore_underlines, FALSE,
00039 "Chop underlines & put back");
00042 void restore_underlined_blobs(                 //get chop points
00043                               TO_BLOCK *block  //block to do
00044                              );
00045 TO_ROW *most_overlapping_row(                    //find best row
00046                              TO_ROW_LIST *rows,  //list of rows
00047                              BLOBNBOX *blob      //blob to place
00048                             );
00049 void find_underlined_blobs(                            //get chop points
00050                            BLOBNBOX *u_line,           //underlined unit
00051                            QSPLINE *baseline,          //actual baseline
00052                            float xheight,              //height of line
00053                            float baseline_offset,      //amount to shrinke it
00054                            ICOORDELT_LIST *chop_cells  //places to chop
00055                           );
00056 void vertical_cunderline_projection(                        //project outlines
00057                                     C_OUTLINE *outline,     //outline to project
00058                                     QSPLINE *baseline,      //actual baseline
00059                                     float xheight,          //height of line
00060                                     float baseline_offset,  //amount to shrinke it
00061                                     STATS *lower_proj,      //below baseline
00062                                     STATS *middle_proj,     //centre region
00063                                     STATS *upper_proj       //top region
00064                                    );
00065 #endif

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