Tesseract 3.01
/data/source/tesseract-ocr/image/imgs.cpp File Reference
#include "mfcpch.h"
#include <unistd.h>
#include <string.h>
#include "allheaders.h"
#include "stderr.h"
#include "tprintf.h"
#include "imgerrs.h"
#include "memry.h"
#include "imgs.h"
#include "imgunpk.h"

Defines

#define FIXED_COLOURS   32
#define MIN_4BIT   48
#define MAX_4BIT   64
#define MIN_6BIT   64
#define MAX_6BIT   128
#define BLACK_PIX   0
#define EXTERN

Functions

inT32 check_legal_image_size (inT32 x, inT32 y, inT8 bits_per_pixel)
DLLSYM void copy_sub_image (IMAGE *source, inT32 xstart, inT32 ystart, inT32 xext, inT32 yext, IMAGE *dest, inT32 xdest, inT32 ydest, BOOL8 adjust_grey)
DLLSYM void enlarge_sub_image (IMAGE *source, inT32 xstart, inT32 ystart, IMAGE *dest, inT32 xdest, inT32 ydest, inT32 xext, inT32 yext, inT32 scale, BOOL8 adjust_grey)
DLLSYM void fast_reduce_sub_image (IMAGE *source, inT32 xstart, inT32 ystart, inT32 xext, inT32 yext, IMAGE *dest, inT32 xdest, inT32 ydest, inT32 scale, BOOL8 adjust_grey)
DLLSYM void reduce_sub_image (IMAGE *source, inT32 xstart, inT32 ystart, inT32 xext, inT32 yext, IMAGE *dest, inT32 xdest, inT32 ydest, inT32 scale, BOOL8 adjust_grey)
DLLSYM void invert_image (IMAGE *image)
DLLSYM void bias_sub_image (IMAGE *source, inT32 xstart, inT32 ystart, inT32 xext, inT32 yext, uinT8 bias)
DLLSYM void starbase_to_normal (IMAGE *source, inT32 xstart, inT32 ystart, inT32 xext, inT32 yext, IMAGE *dest, inT32 xdest, inT32 ydest, BOOL8 preserve_grey)

Variables

const uinT8 grey_scales [FIXED_COLOURS]
EXTERN int image_default_resolution = 300

Define Documentation

#define BLACK_PIX   0
#define EXTERN
#define FIXED_COLOURS   32
#define MAX_4BIT   64
#define MAX_6BIT   128
#define MIN_4BIT   48
#define MIN_6BIT   64

Function Documentation

DLLSYM void bias_sub_image ( IMAGE source,
inT32  xstart,
inT32  ystart,
inT32  xext,
inT32  yext,
uinT8  bias 
)
inT32 check_legal_image_size ( inT32  x,
inT32  y,
inT8  bits_per_pixel 
)
DLLSYM void copy_sub_image ( IMAGE source,
inT32  xstart,
inT32  ystart,
inT32  xext,
inT32  yext,
IMAGE dest,
inT32  xdest,
inT32  ydest,
BOOL8  adjust_grey 
)
DLLSYM void enlarge_sub_image ( IMAGE source,
inT32  xstart,
inT32  ystart,
IMAGE dest,
inT32  xdest,
inT32  ydest,
inT32  xext,
inT32  yext,
inT32  scale,
BOOL8  adjust_grey 
)
DLLSYM void fast_reduce_sub_image ( IMAGE source,
inT32  xstart,
inT32  ystart,
inT32  xext,
inT32  yext,
IMAGE dest,
inT32  xdest,
inT32  ydest,
inT32  scale,
BOOL8  adjust_grey 
)
DLLSYM void invert_image ( IMAGE image)
DLLSYM void reduce_sub_image ( IMAGE source,
inT32  xstart,
inT32  ystart,
inT32  xext,
inT32  yext,
IMAGE dest,
inT32  xdest,
inT32  ydest,
inT32  scale,
BOOL8  adjust_grey 
)
DLLSYM void starbase_to_normal ( IMAGE source,
inT32  xstart,
inT32  ystart,
inT32  xext,
inT32  yext,
IMAGE dest,
inT32  xdest,
inT32  ydest,
BOOL8  preserve_grey 
)

Variable Documentation

const uinT8 grey_scales[FIXED_COLOURS]
Initial value:
 {
  0, 255, 76, 227, 151, 179, 28, 104,
  149, 72, 215, 67, 53, 44, 156, 137,
  110, 153, 79, 181, 166, 218, 55, 81,
  129, 105, 179, 149, 168, 69, 84, 126
}
EXTERN int image_default_resolution = 300

"Image resolution dpi"

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines