• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* -*-C-*-
2  ********************************************************************************
3  *
4  * File:        fxid.h  (Formerly fxid.h)
5  * Description:  Feature extractor related includes
6  * Author:       Mark Seaman, OCR Technology
7  * Created:      Thu Oct 19 14:59:51 1989
8  * Modified:     Thu Jan 31 16:57:07 1991 (Dan Johnson) danj@hpgrlj
9  * Language:     C
10  * Package:      N/A
11  * Status:       Experimental (Do Not Distribute)
12  *
13  * (c) Copyright 1989, Hewlett-Packard Company.
14  ** Licensed under the Apache License, Version 2.0 (the "License");
15  ** you may not use this file except in compliance with the License.
16  ** You may obtain a copy of the License at
17  ** http://www.apache.org/licenses/LICENSE-2.0
18  ** Unless required by applicable law or agreed to in writing, software
19  ** distributed under the License is distributed on an "AS IS" BASIS,
20  ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21  ** See the License for the specific language governing permissions and
22  ** limitations under the License.
23  *
24  ********************************************************************************
25 
26  ***************************************************************************
27  **********                    A T T E N T I O N                    ********
28  ***************************************************************************
29 
30 This module is divided into two sections the declarations for this module
31 (i.e. the function signatures) are listed in 'fxid.h'.  The definitions
32 (i.e. the actual code and variables) are listed in 'fxid1.c' and 'fxid2.c'.
33 The appropriate piece of code you need for your application should be
34 included in your top level program file.
35 
36 */
37 
38 #ifndef FXID_H
39 #define FXID_H
40 
41 #include "extern.h"
42 #include "const.h"
43 #include "tessclas.h"
44 #include "oldlist.h"
45 
46 #define FEATURE_MATCHER    1     /* Use micro-features */
47 
48 #define WO_UNSCALED        0     /*first square scaled fx */
49 #define STATISTICAL_WO     1     /*new wo */
50 #define MICRO_FEATURES     2     /*microfeature extractor */
51 #define WO_SCALED          3     /*wiseowl scaled to baseline */
52 #define MAX_FX             3     /*no of working fx-ers */
53 #define NO_FUNCTION        0     /*special value for nothing */
54 
55 /* This file contains declarations of the top-level feature
56 extractor functions as used by the Classify process*/
57 
58 typedef LIST (*LISTFUNC) ();
59 
60 //extern FUNCPTR             word_matchers[MAX_FX];
61 
62 //extern LISTFUNC            blob_matchers[MAX_FX];
63 
64 //extern FUNCPTR             feature_learners[MAX_FX];
65 
66 extern char fx_ids[MAX_FX];      /*one-char ids */
67 
68 extern char *fx_names[MAX_FX];
69 #endif
70