#include <stdio.h>
#include "hash.h"
#include "list.h"
#include "unicode.h"
#include "gocr_char.h"
Go to the source code of this file.
Compounds | |
| struct | gocrpixel |
| struct | gocrimage |
| struct | gocrblock |
| struct | gocrline |
| struct | gocrtextblock |
| struct | gocrpictureblock |
| struct | gocrmathblock |
Image | |
| #define | GOCR_BLACK 0 |
| Black pixel value. More... | |
| #define | GOCR_WHITE 1 |
| White pixel value. More... | |
| typedef enum gocrimagetype | gocrImageType |
| Typedef encapsulation. | |
| typedef struct gocrpixel | gocrPixel |
| Typedef encapsulation. | |
| typedef struct gocrimage | gocrImage |
| Typedef encapsulation. | |
| enum | gocrimagetype { BLACK_AND_WHITE, GRAY } |
| Image type values. | |
| void | gocr_imageFree ( gocrImage *image ) |
| Closes an image. More... | |
| gocrImage* | currentimage = NULL |
| A pointer to the current image. This variable holds the image being processed right now, and can be freely accessed by the programmer. More... | |
Block | |
| typedef int | gocrblockType |
| typedef struct gocrblock | gocrBlock |
| Typedef encapsulation. | |
| typedef struct gocrline | gocrLine |
| typedef struct gocrtextblock | gocrTextBlock |
| typedef struct gocrpictureblock | gocrPictureBlock |
| typedef struct gocrmathblock | gocrMathBlock |
| gocrblockType | gocr_blockTypeRegister ( char *name ) |
| registers a new blockType. More... | |
| gocrblockType | gocr_blockTypeGetByName ( char *name ) |
| returns the blockType given its name string. More... | |
| char* | gocr_blockTypeGetNameByType ( gocrblockType t ) |
| returns the name of the block type given its id. More... | |
| int | gocr_blockAdd ( gocrBlock *b ) |
| adds a block to the block list. More... | |
Debugging utilities | |
| int | gocr_printArea ( gocrImage *image, int x0, int y0, int x1, int y1 ) |
| prints an image. More... | |
| int | gocr_printBlock ( gocrBlock *b ) |
| prints a block. More... | |
| int | gocr_printBox ( gocrBox *b ) |
| prints a box. More... | |
| int | gocr_printBox2 ( gocrBox *b1, gocrBox *b2 ) |
| prints two boxes. More... | |
|
|
Black pixel value.
|
|
|
White pixel value.
|
|
|
Closes an image. This function closes the image, freeing all memory.
|
|
|
registers a new blockType. Long description.
|
|
|
returns the blockType given its name string. Long description.
|
|
|
returns the name of the block type given its id. Long description.
|
|
|
adds a block to the block list. Long description.
|
|
|
prints an image. This function prints an image to the file specified by the ERROR_FILE attribute, formatted according to the PRINT attribute:
|
|
|
prints a block. This function prints a block to the file specified by the ERROR_FILE attribute. If PRINT_IMAGE attribute is 1 (true), the image of the block will be printed too.
|
|
|
prints a box. This function prints a box to the file specified by the ERROR_FILE attribute. If PRINT_IMAGE attribute is 1 (true), the image of the box will be printed too.
|
|
|
prints two boxes. This function prints two boxes side by side, to the file specified by the ERROR_FILE attribute. If PRINT_IMAGE attribute is 1 (true), the image of the boxes will be printed too.
|
|
|
A pointer to the current image. This variable holds the image being processed right now, and can be freely accessed by the programmer.
|
1.2.2 written by Dimitri van Heesch,
© 1997-2000