Tesseract 3.01
/data/source/tesseract-ocr/classify/speckle.h File Reference
#include "baseline.h"
#include "ratngs.h"

Go to the source code of this file.

Functions

void AddLargeSpeckleTo (BLOB_CHOICE_LIST *Choices)
BOOL8 LargeSpeckle (TBLOB *Blob)

Function Documentation

void AddLargeSpeckleTo ( BLOB_CHOICE_LIST *  Choices)

This routine adds a null choice to Choices with a rating equal to the worst rating in Choices plus a pad. The certainty of the new choice is the same as the certainty of the worst choice in Choices. The new choice is added to the end of Choices.

Globals:

Parameters:
Choiceschoices to add a speckle choice to
Returns:
New Choices list with null choice added to end.

Exceptions: none History: Mon Mar 11 11:08:11 1991, DSJ, Created.

BOOL8 LargeSpeckle ( TBLOB Blob)

This routine returns TRUE if both the width of height of Blob are less than the MaxLargeSpeckleSize.

Globals:

Exceptions: none History: Mon Mar 11 10:06:49 1991, DSJ, Created.

Parameters:
Blobblob to test against speckle criteria
Returns:
TRUE if Blob is speckle, FALSE otherwise.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines