tesseract  3.03
/usr/local/google/home/jbreiden/tesseract-ocr-read-only/ccstruct/werd.cpp File Reference
#include "blckerr.h"
#include "helpers.h"
#include "linlsq.h"
#include "werd.h"

Go to the source code of this file.

Defines

#define FIRST_COLOUR   ScrollView::RED
#define LAST_COLOUR   ScrollView::AQUAMARINE
#define CHILD_COLOUR   ScrollView::BROWN

Functions

int word_comparator (const void *word1p, const void *word2p)

Variables

const ERRCODE CANT_SCALE_EDGESTEPS = "Attempted to scale an edgestep format word"

Define Documentation

Definition at line 32 of file werd.cpp.

Definition at line 30 of file werd.cpp.

Definition at line 31 of file werd.cpp.


Function Documentation

int word_comparator ( const void *  word1p,
const void *  word2p 
)

word_comparator()

word comparator used to sort a word list so that words are in increasing order of left edge.

Definition at line 383 of file werd.cpp.

                                                            {
  WERD *word1 = *(WERD **)word1p;
  WERD *word2 = *(WERD **)word2p;
  return word1->bounding_box().left() - word2->bounding_box().left();
}

Variable Documentation

const ERRCODE CANT_SCALE_EDGESTEPS = "Attempted to scale an edgestep format word"

Definition at line 34 of file werd.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines