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

Functions

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

Variables

double speckle_large_max_size = 0.30
double speckle_small_penalty = 10.0
double speckle_large_penalty = 10.0
double speckle_small_certainty = -1.0

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.

Variable Documentation

double speckle_large_max_size = 0.30

define control knobs for adjusting definition of speckle "Max large speckle size"

double speckle_large_penalty = 10.0

"Large speckle penalty"

double speckle_small_certainty = -1.0

"Small speckle certainty"

double speckle_small_penalty = 10.0

"Small speckle penalty"

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines