Tesseract
3.02
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
fxdefs.cpp
Go to the documentation of this file.
1
/******************************************************************************
2
** Filename: fxdefs.c
3
** Purpose: Utility functions to be used by feature extractors.
4
** Author: Dan Johnson
5
** History: Sun Jan 21 15:29:02 1990, DSJ, Created.
6
**
7
** (c) Copyright Hewlett-Packard Company, 1988.
8
** Licensed under the Apache License, Version 2.0 (the "License");
9
** you may not use this file except in compliance with the License.
10
** You may obtain a copy of the License at
11
** http://www.apache.org/licenses/LICENSE-2.0
12
** Unless required by applicable law or agreed to in writing, software
13
** distributed under the License is distributed on an "AS IS" BASIS,
14
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
** See the License for the specific language governing permissions and
16
** limitations under the License.
17
******************************************************************************/
18
#include "
fxdefs.h
"
19
#include "
featdefs.h
"
20
#include "
mf.h
"
21
#include "
outfeat.h
"
22
#include "
picofeat.h
"
23
#include "
normfeat.h
"
24
25
/*-----------------------------------------------------------------------------
26
Global Data Definitions and Declarations
27
-----------------------------------------------------------------------------*/
28
// Definitions of extractors separated from feature definitions.
29
const
FEATURE_EXT_STRUCT
MicroFeatureExt
= {
ExtractMicros
};
30
const
FEATURE_EXT_STRUCT
CharNormExt
= {
ExtractCharNormFeatures
};
31
const
FEATURE_EXT_STRUCT
IntFeatExt
= {
ExtractIntCNFeatures
};
32
const
FEATURE_EXT_STRUCT
GeoFeatExt
= {
ExtractIntGeoFeatures
};
33
34
// MUST be kept in-sync with DescDefs in featdefs.cpp.
35
const
FEATURE_EXT_STRUCT
*
ExtractorDefs
[
NUM_FEATURE_TYPES
] = {
36
&
MicroFeatureExt
,
37
&
CharNormExt
,
38
&
IntFeatExt
,
39
&GeoFeatExt
40
};
41
42
void
SetupExtractors
(
FEATURE_DEFS_STRUCT
*FeatureDefs) {
43
for
(
int
i = 0; i <
NUM_FEATURE_TYPES
; ++i)
44
FeatureDefs->
FeatureExtractors
[i] = ExtractorDefs[i];
45
}
mnt
data
src
tesseract-ocr
classify
fxdefs.cpp
Generated on Thu Nov 1 2012 20:19:46 for Tesseract by
1.8.1