00001 /* -*-C-*- 00002 ******************************************************************************** 00003 * 00004 * File: fxid.h (Formerly fxid.h) 00005 * Description: Feature extractor related includes 00006 * Author: Mark Seaman, OCR Technology 00007 * Created: Thu Oct 19 14:59:51 1989 00008 * Modified: Thu Jan 31 16:57:07 1991 (Dan Johnson) danj@hpgrlj 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 00026 *************************************************************************** 00027 ********** A T T E N T I O N ******** 00028 *************************************************************************** 00029 00030 This module is divided into two sections the declarations for this module 00031 (i.e. the function signatures) are listed in 'fxid.h'. The definitions 00032 (i.e. the actual code and variables) are listed in 'fxid1.c' and 'fxid2.c'. 00033 The appropriate piece of code you need for your application should be 00034 included in your top level program file. 00035 00036 */ 00037 00038 #ifndef FXID_H 00039 #define FXID_H 00040 00041 #include "extern.h" 00042 #include "const.h" 00043 #include "tessclas.h" 00044 #include "oldlist.h" 00045 00046 #define FEATURE_MATCHER 1 /* Use micro-features */ 00047 00048 #define WO_UNSCALED 0 /*first square scaled fx */ 00049 #define STATISTICAL_WO 1 /*new wo */ 00050 #define MICRO_FEATURES 2 /*microfeature extractor */ 00051 #define WO_SCALED 3 /*wiseowl scaled to baseline */ 00052 #define MAX_FX 3 /*no of working fx-ers */ 00053 #define NO_FUNCTION 0 /*special value for nothing */ 00054 00055 /* This file contains declarations of the top-level feature 00056 extractor functions as used by the Classify process*/ 00057 00058 typedef LIST (*LISTFUNC) (); 00059 00060 //extern FUNCPTR word_matchers[MAX_FX]; 00061 00062 //extern LISTFUNC blob_matchers[MAX_FX]; 00063 00064 //extern FUNCPTR feature_learners[MAX_FX]; 00065 00066 extern char fx_ids[MAX_FX]; /*one-char ids */ 00067 00068 extern char *fx_names[MAX_FX]; 00069 #endif