Tesseract  3.02
tesseract-ocr/wordrec/render.h
Go to the documentation of this file.
00001 /* -*-C-*-
00002  ********************************************************************************
00003  *
00004  * File:        render.h  (Formerly render.h)
00005  * Description:  Convert the various data type into line lists
00006  * Author:       Mark Seaman, OCR Technology
00007  * Created:      Fri Jul 28 13:14:48 1989
00008  * Modified:     Fri Apr 26 09:59:45 1991 (Mark Seaman) marks@hpgrlt
00009  * Language:     C
00010  * Package:      N/A
00011  * Status:       Experimental (Do Not Distribute)
00012  *
00013  * (c) Copyright 1989, Hewlett-Packard Company.
00014  ** Licensed under the Apache License, Version 2.0 (the "License");
00015  ** you may not use this file except in compliance with the License.
00016  ** You may obtain a copy of the License at
00017  ** http://www.apache.org/licenses/LICENSE-2.0
00018  ** Unless required by applicable law or agreed to in writing, software
00019  ** distributed under the License is distributed on an "AS IS" BASIS,
00020  ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00021  ** See the License for the specific language governing permissions and
00022  ** limitations under the License.
00023  *
00024  *********************************************************************************/
00025 #ifndef RENDER_H
00026 #define RENDER_H
00027 
00028 #include "host.h"
00029 #include "callcpp.h"
00030 #include "blobs.h"
00031 
00032 /*----------------------------------------------------------------------
00033               V a r i a b l e s
00034 ----------------------------------------------------------------------*/
00035 extern ScrollView *blob_window;        /* Window for blobs */
00036 extern C_COL color_list[];       /* Colors for outlines */
00037 
00038 extern BOOL_VAR_H(wordrec_display_all_blobs, 0, "Display Blobs");
00039 
00040 extern BOOL_VAR_H(wordrec_display_all_words, 0, "Display Words");
00041 
00042 extern BOOL_VAR_H(wordrec_blob_pause, 0, "Blob pause");
00043 
00044 #define NUM_COLORS 6
00045 
00046 /*----------------------------------------------------------------------
00047               F u n c t i o n s
00048 ----------------------------------------------------------------------*/
00049 void display_blob(TBLOB *blob, C_COL color);
00050 
00051 void render_blob(void *window, TBLOB *blob, C_COL color);
00052 
00053 void render_edgepts(void *window, EDGEPT *edgept, C_COL color);
00054 
00055 void render_outline(void *window,
00056                     TESSLINE *outline,
00057                     C_COL color);
00058 
00059 #endif