"Fossies" - the Fresh Open Source Software Archive

Member "tesseract-ocr/doc/html/mfx_8h.html" (26 Oct 2012, 17454 Bytes) of package /linux/misc/old/tesseract-ocr-3.02.02-doc-html.tar.gz:

Caution: In this restricted "Fossies" environment the current HTML page may not be correctly presentated and may have some non-functional links. You can here alternatively try to browse the pure source code or just view or download the uninterpreted raw source code. If the rendering is insufficient you may try to find and view the page on the tesseract-ocr-3.02.02-doc-html.tar.gz project site itself.

Tesseract  3.02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mfx.h File Reference
#include "params.h"

Go to the source code of this file.


CHAR_FEATURES BlobMicroFeatures (TBLOB *Blob, const DENORM &denorm)


double classify_min_slope = 0.414213562
double classify_max_slope = 2.414213562

Function Documentation

CHAR_FEATURES BlobMicroFeatures ( TBLOB Blob,
const DENORM denorm 

Public Function Prototypes —————————————————————————-

Public Code —————————————————————————-

Definition at line 62 of file mfx.cpp.

** Parameters:
** Blob blob to extract micro-features from
** denorm control parameter to feature extractor
** Operation:
** This routine extracts micro-features from the specified
** blob and returns a list of the micro-features. All
** micro-features are normalized according to the specified
** line statistics.
** Return: List of micro-features extracted from the blob.
** Exceptions: none
** History: 7/21/89, DSJ, Created.
FLOAT32 XScale, YScale;
LIST Outlines;
LIST RemainingOutlines;
if (Blob != NULL) {
Outlines = ConvertBlob (Blob);
if (!ExtractIntFeat(Blob, denorm, blfeatures, cnfeatures, &results))
return NULL;
XScale = 0.2f / results.Ry;
YScale = 0.2f / results.Rx;
RemainingOutlines = Outlines;
iterate(RemainingOutlines) {
Outline = (MFOUTLINE) first_node (RemainingOutlines);
results.Xmean, results.Ymean,
XScale, YScale);
RemainingOutlines = Outlines;
iterate(RemainingOutlines) {
Outline = (MFOUTLINE) first_node (RemainingOutlines);
MicroFeatures = ConvertToMicroFeatures (Outline, MicroFeatures);
return ((CHAR_FEATURES) MicroFeatures);
} /* BlobMicroFeatures */

Variable Documentation

double classify_max_slope = 2.414213562

"Slope above which lines are called vertical"

Definition at line 39 of file mfx.cpp.

double classify_min_slope = 0.414213562

Include Files and Type Defines —————————————————————————- ---------------------------------------------------------------------------- Variables —————————————————————————- "Slope below which lines are called horizontal"

Definition at line 37 of file mfx.cpp.