Tesseract 3.01
/data/source/tesseract-ocr/textord/underlin.cpp File Reference
#include "mfcpch.h"
#include "underlin.h"

Defines

#define PROJECTION_MARGIN   10
#define EXTERN

Functions

void restore_underlined_blobs (TO_BLOCK *block)
TO_ROWmost_overlapping_row (TO_ROW_LIST *rows, BLOBNBOX *blob)
void find_underlined_blobs (BLOBNBOX *u_line, QSPLINE *baseline, float xheight, float baseline_offset, ICOORDELT_LIST *chop_cells)
void vertical_cunderline_projection (C_OUTLINE *outline, QSPLINE *baseline, float xheight, float baseline_offset, STATS *lower_proj, STATS *middle_proj, STATS *upper_proj)

Variables

EXTERN double textord_underline_offset = 0.1
EXTERN bool textord_restore_underlines = 1

Define Documentation

#define EXTERN
#define PROJECTION_MARGIN   10

Function Documentation

void find_underlined_blobs ( BLOBNBOX u_line,
QSPLINE baseline,
float  xheight,
float  baseline_offset,
ICOORDELT_LIST *  chop_cells 
)
TO_ROW* most_overlapping_row ( TO_ROW_LIST *  rows,
BLOBNBOX blob 
)
void restore_underlined_blobs ( TO_BLOCK block)
void vertical_cunderline_projection ( C_OUTLINE outline,
QSPLINE baseline,
float  xheight,
float  baseline_offset,
STATS lower_proj,
STATS middle_proj,
STATS upper_proj 
)

Variable Documentation

EXTERN bool textord_restore_underlines = 1

"Chop underlines & put back"

EXTERN double textord_underline_offset = 0.1

"Fraction of x to ignore"

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines