/home/rays/src/opensrc/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:
Choices choices 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:
Blob blob 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"

Generated on Thu Feb 2 08:19:22 2012 for Tesseract by  doxygen 1.6.3