image/imgs.h

Go to the documentation of this file.
00001 
00019 #ifndef           IMGS_H
00020 #define           IMGS_H
00021 
00022 #include          "img.h"
00023 #include          "varable.h"
00024 
00031 extern INT_VAR_H (image_default_resolution, 300, "Image resolution dpi");
00034 INT32 check_legal_image_size(                     //get rest of image
00035                              INT32 x,             //x size required
00036                              INT32 y,             //ysize required
00037                              INT8 bits_per_pixel  //bpp required
00038                             );
00039                                  //copy rectangle
00040 extern DLLSYM void copy_sub_image(IMAGE *source,     //source image
00041                                   INT32 xstart,      //start coords
00042                                   INT32 ystart,
00043                                   INT32 xext,        //extent to copy
00044                                   INT32 yext,
00045                                   IMAGE *dest,       //destination image
00046                                   INT32 xdest,       //destination coords
00047                                   INT32 ydest,
00048                                   BOOL8 adjust_grey  //shift to new bpp
00049                                  );
00050                                  //enlarge rectangle
00051 extern DLLSYM void enlarge_sub_image(IMAGE *source,     //source image
00052                                      INT32 xstart,      //scaled start coords
00053                                      INT32 ystart,
00054                                      IMAGE *dest,       //destination image
00055                                      INT32 xdest,       //dest coords
00056                                      INT32 ydest,
00057                                      INT32 xext,        //destination extent
00058                                      INT32 yext,
00059                                      INT32 scale,       //scale factor
00060                                      BOOL8 adjust_grey  //shift to new bpp
00061                                     );
00062                                  //reduce rectangle
00063 extern DLLSYM void fast_reduce_sub_image(IMAGE *source,     //source image
00064                                          INT32 xstart,      //start coords
00065                                          INT32 ystart,
00066                                          INT32 xext,        //extent to copy
00067                                          INT32 yext,
00068                                          IMAGE *dest,       //destination image
00069                                          INT32 xdest,       //destination coords
00070                                          INT32 ydest,
00071                                          INT32 scale,       //reduction factor
00072                                          BOOL8 adjust_grey  //shift to new bpp
00073                                         );
00074                                  //reduce rectangle
00075 extern DLLSYM void reduce_sub_image(IMAGE *source,     //source image
00076                                     INT32 xstart,      //start coords
00077                                     INT32 ystart,
00078                                     INT32 xext,        //extent to copy
00079                                     INT32 yext,
00080                                     IMAGE *dest,       //destination image
00081                                     INT32 xdest,       //destination coords
00082                                     INT32 ydest,
00083                                     INT32 scale,       //reduction factor
00084                                     BOOL8 adjust_grey  //shift to new bpp
00085                                    );
00086 extern DLLSYM void invert_image(              /*invert the image */
00087                                 IMAGE *image  /*image ot invert */
00088                                );
00089                                  //bias rectangle
00090 extern DLLSYM void bias_sub_image(IMAGE *source,  //source image
00091                                   INT32 xstart,   //start coords
00092                                   INT32 ystart,
00093                                   INT32 xext,     //extent to copy
00094                                   INT32 yext,
00095                                   UINT8 bias      //number to add
00096                                  );
00097                                  //copy rectangle
00098 extern DLLSYM void starbase_to_normal(IMAGE *source,       //source image
00099                                       INT32 xstart,        //start coords
00100                                       INT32 ystart,
00101                                       INT32 xext,          //extent to copy
00102                                       INT32 yext,
00103                                       IMAGE *dest,         //destination image
00104                                       INT32 xdest,         //destination coords
00105                                       INT32 ydest,
00106                                       BOOL8 preserve_grey  //shift to new bpp
00107                                      );
00108 #endif

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