classify/extract.cpp File Reference

#include "extract.h"
#include "variables.h"
#include "flexfx.h"
#include "funcdefs.h"
#include "danerror.h"

Go to the source code of this file.

Defines

Typedefs

Functions

Variables


Define Documentation

#define DEFAULT_FX   2

Not used anywhere in tesseract 1.02

Definition at line 43 of file extract.cpp.

#define DUMMY_ERROR   1

Referenced by ExtractorStub().

#define NUM_FX   3

Not used anywhere in tesseract 1.02

Definition at line 41 of file extract.cpp.


Typedef Documentation

typedef CHAR_FEATURES(*) CF_FUNC()

Note:
File: extract.cpp
Generic high level feature extractor routines.
Author:
Dan Johnson
Date:
Sun Jan 21 09:44:08 1990, DSJ, Created.
 **	(c) Copyright Hewlett-Packard Company, 1988.
 ** Licensed under the Apache License, Version 2.0 (the "License");
 ** you may not use this file except in compliance with the License.
 ** You may obtain a copy of the License at
 ** http://www.apache.org/licenses/LICENSE-2.0
 ** Unless required by applicable law or agreed to in writing, software
 ** distributed under the License is distributed on an "AS IS" BASIS,
 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 ** See the License for the specific language governing permissions and
 ** limitations under the License.

Definition at line 29 of file extract.cpp.


Function Documentation

CHAR_DESC ExtractBlobFeatures ( TBLOB Blob,
LINE_STATS LineStats 
)

Extract features from Blob by calling the feature extractor which is currently being used.

Parameters:
Blob TBLOB, blob to extract features from
LineStats LINE_STATS, statistics about line blob is in
Returns:
CHAR_DESC, character features extracted from Blob
Simply provides a high level interface to feature extraction. The caller can extract any type of features from a blob without understanding any lower level details.
Note:
Exceptions: none
Date:
Sun Jan 21 10:07:28 1990, DSJ, Created.

Definition at line 64 of file extract.cpp.

References ExtractFlexFeatures().

Referenced by LearnBlob().

00064                                                                   { 
00065   return (ExtractFlexFeatures (Blob, LineStats));
00066 }                                /* ExtractBlobFeatures */

void ExtractorStub (  ) 

Used to stub out feature extractors that are no longer used. It simply calls.

Parameters:
none 
Returns:
none
See also:
DoError.
Note:
Exceptions: none
Date:
Wed Jan 2 14:16:49 1991, DSJ, Created.

Definition at line 97 of file extract.cpp.

References DoError(), and DUMMY_ERROR.

00099 {
00100   DoError (DUMMY_ERROR, "Selected feature extractor has been stubbed out!");
00101 }                                /* ExtractorStub */

void InitExtractorVars (  ) 

Install global extractor variables into the variable system.

Parameters:
none 
Returns:
none
Note:
Exceptions: none
Date:
Sun Jan 21 10:19:59 1990, DSJ, Created.

Definition at line 78 of file extract.cpp.

References InitFlexFXVars().

Referenced by mfeature_variables().

00078                          { 
00079   //      VALUE dummy;
00080   InitFlexFXVars(); 
00081 }                                /* InitExtractorVars */


Variable Documentation

int CurrentFx = DEFAULT_FX

Not used anywhere in tesseract 1.02

Definition at line 45 of file extract.cpp.


Generated on Wed Feb 28 19:49:19 2007 for Tesseract by  doxygen 1.5.1