Tesseract  3.02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
extract.cpp File Reference
#include "extract.h"
#include "flexfx.h"
#include "danerror.h"

Go to the source code of this file.

Macros

#define DUMMY_ERROR   1
 

Typedefs

typedef CHAR_FEATURES(* CF_FUNC )()
 

Functions

void ExtractorStub ()
 
CHAR_DESC ExtractBlobFeatures (const FEATURE_DEFS_STRUCT &FeatureDefs, const DENORM &denorm, TBLOB *Blob)
 

Macro Definition Documentation

#define DUMMY_ERROR   1

Typedef Documentation

typedef CHAR_FEATURES(* CF_FUNC)()

Definition at line 25 of file extract.cpp.

Function Documentation

CHAR_DESC ExtractBlobFeatures ( const FEATURE_DEFS_STRUCT FeatureDefs,
const DENORM denorm,
TBLOB Blob 
)

Extract features from Blob by calling the feature extractor which is currently being used. This routine 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.

Parameters
FeatureDefsdefinitions of feature types/extractors
denormNormalize/denormalize to access original image
Blobblob to extract features from
Returns
The character features extracted from Blob.
Note
Exceptions: none
History: Sun Jan 21 10:07:28 1990, DSJ, Created.

Definition at line 51 of file extract.cpp.

52  {
53  return (ExtractFlexFeatures(FeatureDefs, Blob, denorm));
54 } /* ExtractBlobFeatures */
CHAR_DESC ExtractFlexFeatures(const FEATURE_DEFS_STRUCT &FeatureDefs, TBLOB *Blob, const DENORM &denorm)
Definition: flexfx.cpp:31
void ExtractorStub ( )

This routine is used to stub out feature extractors that are no longer used. It simply calls DoError.

Note
Exceptions: none
History: Wed Jan 2 14:16:49 1991, DSJ, Created.

Definition at line 61 of file extract.cpp.

70 {
71  DoError (DUMMY_ERROR, "Selected feature extractor has been stubbed out!");
72 } /* ExtractorStub */
void DoError(int Error, const char *Message)
Definition: danerror.cpp:32
#define DUMMY_ERROR