00001 /* -*-C-*- 00002 ******************************************************************************** 00003 * 00004 * File: matchtab.h (Formerly matchtab.h) 00005 * Description: Match table to retain blobs that were matched. 00006 * Author: Mark Seaman, OCR Technology 00007 * Created: Mon Jan 29 09:00:56 1990 00008 * Modified: Tue Mar 19 15:38:19 1991 (Mark Seaman) marks@hpgrlt 00009 * Language: C 00010 * Package: N/A 00011 * Status: Experimental (Do Not Distribute) 00012 * 00013 * (c) Copyright 1990, 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 MATCHTAB_H 00026 #define MATCHTAB_H 00027 00028 /*---------------------------------------------------------------------- 00029 I n c l u d e s 00030 ----------------------------------------------------------------------*/ 00031 00032 #include "ratngs.h" 00033 #include "tessclas.h" 00034 00035 /*---------------------------------------------------------------------- 00036 F u n c t i o n s 00037 ----------------------------------------------------------------------*/ 00038 void init_match_table(); 00039 void end_match_table(); 00040 00041 void put_match(TBLOB *blob, BLOB_CHOICE_LIST *ratings); 00042 00043 BLOB_CHOICE_LIST *get_match(TBLOB *blob); 00044 00045 BLOB_CHOICE_LIST *get_match_by_bounds(unsigned int topleft, 00046 unsigned int botright); 00047 00048 void add_to_match(TBLOB *blob, BLOB_CHOICE_LIST *ratings); 00049 #endif