⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 imgs.h

📁 一个google的OCR源码
💻 H
字号:
/********************************************************************** * File:        imgs.h  (Formerly images.h) * Description: Header file for IMAGE member functions. * Author:      Ray Smith * Created:     Mon Jun 11 15:32:53 BST 1990 * * (C) Copyright 1990, Hewlett-Packard Ltd. ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** http://www.apache.org/licenses/LICENSE-2.0 ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. * **********************************************************************/#ifndef           IMGS_H#define           IMGS_H#include          "img.h"#include          "varable.h"extern INT_VAR_H (image_default_resolution, 300, "Image resolution dpi");inT32 check_legal_image_size(                     //get rest of image                             inT32 x,             //x size required                             inT32 y,             //ysize required                             inT8 bits_per_pixel  //bpp required                            );                                 //copy rectangleextern DLLSYM void copy_sub_image(IMAGE *source,     //source image                                  inT32 xstart,      //start coords                                  inT32 ystart,                                  inT32 xext,        //extent to copy                                  inT32 yext,                                  IMAGE *dest,       //destination image                                  inT32 xdest,       //destination coords                                  inT32 ydest,                                  BOOL8 adjust_grey  //shift to new bpp                                 );                                 //enlarge rectangleextern DLLSYM void enlarge_sub_image(IMAGE *source,     //source image                                     inT32 xstart,      //scaled start coords                                     inT32 ystart,                                     IMAGE *dest,       //destination image                                     inT32 xdest,       //dest coords                                     inT32 ydest,                                     inT32 xext,        //destination extent                                     inT32 yext,                                     inT32 scale,       //scale factor                                     BOOL8 adjust_grey  //shift to new bpp                                    );                                 //reduce rectangleextern DLLSYM void fast_reduce_sub_image(IMAGE *source,     //source image                                         inT32 xstart,      //start coords                                         inT32 ystart,                                         inT32 xext,        //extent to copy                                         inT32 yext,                                         IMAGE *dest,       //destination image                                         inT32 xdest,       //destination coords                                         inT32 ydest,                                         inT32 scale,       //reduction factor                                         BOOL8 adjust_grey  //shift to new bpp                                        );                                 //reduce rectangleextern DLLSYM void reduce_sub_image(IMAGE *source,     //source image                                    inT32 xstart,      //start coords                                    inT32 ystart,                                    inT32 xext,        //extent to copy                                    inT32 yext,                                    IMAGE *dest,       //destination image                                    inT32 xdest,       //destination coords                                    inT32 ydest,                                    inT32 scale,       //reduction factor                                    BOOL8 adjust_grey  //shift to new bpp                                   );extern DLLSYM void invert_image(              /*invert the image */                                IMAGE *image  /*image ot invert */                               );                                 //bias rectangleextern DLLSYM void bias_sub_image(IMAGE *source,  //source image                                  inT32 xstart,   //start coords                                  inT32 ystart,                                  inT32 xext,     //extent to copy                                  inT32 yext,                                  uinT8 bias      //number to add                                 );                                 //copy rectangleextern DLLSYM void starbase_to_normal(IMAGE *source,       //source image                                      inT32 xstart,        //start coords                                      inT32 ystart,                                      inT32 xext,          //extent to copy                                      inT32 yext,                                      IMAGE *dest,         //destination image                                      inT32 xdest,         //destination coords                                      inT32 ydest,                                      BOOL8 preserve_grey  //shift to new bpp                                     );#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -