classify/extract.cpp

Go to the documentation of this file.
00001 
00020 /* =================
00021  Include Files and Type Defines
00022  ==================== */
00023 #include "extract.h"
00024 #include "variables.h"
00025 #include "flexfx.h"
00026 #include "funcdefs.h"
00027 #include "danerror.h"
00028 
00029 typedef CHAR_FEATURES (*CF_FUNC) ();
00030 
00031 /* =================
00032  Private Function Prototypes
00033  ==================== */
00034 void ExtractorStub(); 
00035 
00036 /* =================
00037  Global Data Definitions and Declarations
00038  ==================== */
00039 /* Tables to keep track of the different low level feature extractors */
00041 #define NUM_FX        3
00042 
00043 #define DEFAULT_FX      2
00044 
00045 int CurrentFx = DEFAULT_FX;
00046 
00047 /* =================
00048  Public Code
00049  ==================== */
00064 CHAR_DESC ExtractBlobFeatures(TBLOB *Blob, LINE_STATS *LineStats) { 
00065   return (ExtractFlexFeatures (Blob, LineStats));
00066 }                                /* ExtractBlobFeatures */
00067 
00068 
00069 /* =============================== */
00078 void InitExtractorVars() { 
00079   //      VALUE dummy;
00080   InitFlexFXVars(); 
00081 }                                /* InitExtractorVars */
00082 
00083 
00084 /* =================
00085  Private Code
00086  ==================== */
00096 void
00097 ExtractorStub ()
00098 #define DUMMY_ERROR     1
00099 {
00100   DoError (DUMMY_ERROR, "Selected feature extractor has been stubbed out!");
00101 }                                /* ExtractorStub */

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