Tesseract 3.01
/data/source/tesseract-ocr/ccmain/fixspace.cpp File Reference
#include "mfcpch.h"
#include <ctype.h>
#include "reject.h"
#include "statistc.h"
#include "control.h"
#include "fixspace.h"
#include "genblob.h"
#include "tessvars.h"
#include "tessbox.h"
#include "secname.h"
#include "globals.h"
#include "tesseractclass.h"

Namespaces

namespace  tesseract

Defines

#define PERFECT_WERDS   999
#define MAXSPACING   128

Functions

void initialise_search (WERD_RES_LIST &src_list, WERD_RES_LIST &new_list)
transform_to_next_perm()

Examines the current word list to find the smallest word gap size. Then walks the word list closing any gaps of this size by either inserted new combination words, or extending existing ones.

The routine COULD be limited to stop it building words longer than N blobs.

If there are no more gaps then it DELETES the entire list and returns the empty list to cause termination.

void transform_to_next_perm (WERD_RES_LIST &words)
void fixspace_dbg (WERD_RES *word)

Define Documentation

#define MAXSPACING   128
#define PERFECT_WERDS   999

Function Documentation

void fixspace_dbg ( WERD_RES word)
void initialise_search ( WERD_RES_LIST &  src_list,
WERD_RES_LIST &  new_list 
)
void transform_to_next_perm ( WERD_RES_LIST &  words)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines