textord/scanedg.h

Go to the documentation of this file.
00001 
00020 #ifndef           SCANEDG_H
00021 #define           SCANEDG_H
00022 
00023 #include          "varable.h"
00024 #include          "grphics.h"
00025 #include          "img.h"
00026 #include          "pdblock.h"
00027 #include          "crakedge.h"
00028 
00029 DLLSYM void block_edges(                      //get edges in a block
00030                         IMAGE *t_image,       //threshold image
00031                         PDBLK *block,         //block in image
00032                         ICOORD page_tr        //corner of page
00033                        );
00034 void make_margins(                         //get a line
00035                   PDBLK *block,            //block in image
00036                   BLOCK_LINE_IT *line_it,  //for old style
00037                   UINT8 *pixels,           //pixels to strip
00038                   UINT8 margin,            //white-out pixel
00039                   INT16 left,              //block edges
00040                   INT16 right,
00041                   INT16 y                  //line coord
00042                  );
00043 void whiteout_block(                 //clean it
00044                     IMAGE *t_image,  //threshold image
00045                     PDBLK *block     //block in image
00046                    );
00047 void line_edges (                //scan for edges
00048 INT16 x,                         //coord of line start
00049 INT16 y,                         //coord of line
00050 INT16 xext,                      //width of line
00051 UINT8 uppercolour,               //start of prev line
00052 UINT8 * bwpos,                   //thresholded line
00053 CRACKEDGE ** prevline            //edges in progress
00054 );
00055 CRACKEDGE *h_edge (              //horizontal edge
00056 INT16 x,                         //xposition
00057 INT16 y,                         //y position
00058 INT8 sign,                       //sign of edge
00059 CRACKEDGE * join                 //edge to join to
00060 );
00061 CRACKEDGE *v_edge (              //vertical edge
00062 INT16 x,                         //xposition
00063 INT16 y,                         //y position
00064 INT8 sign,                       //sign of edge
00065 CRACKEDGE * join                 //edge to join to
00066 );
00067 void join_edges(                   //join edge fragments
00068                 CRACKEDGE *edge1,  //edges to join
00069                 CRACKEDGE *edge2   //no specific order
00070                );
00071 void free_crackedges(                  //really free them
00072                      CRACKEDGE *start  //start of loop
00073                     );
00074 #endif

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