tesseract
4.0.0-1-g2a2b
|
#include "underlin.h"
Go to the source code of this file.
Macros | |
#define | PROJECTION_MARGIN 10 |
#define | EXTERN |
Functions | |
void | restore_underlined_blobs (TO_BLOCK *block) |
TO_ROW * | most_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 = TRUE |
#define EXTERN |
Definition at line 22 of file underlin.cpp.
#define PROJECTION_MARGIN 10 |
Definition at line 21 of file underlin.cpp.
void find_underlined_blobs | ( | BLOBNBOX * | u_line, |
QSPLINE * | baseline, | ||
float | xheight, | ||
float | baseline_offset, | ||
ICOORDELT_LIST * | chop_cells | ||
) |
Definition at line 168 of file underlin.cpp.
Definition at line 111 of file underlin.cpp.
void restore_underlined_blobs | ( | TO_BLOCK * | block | ) |
Definition at line 34 of file underlin.cpp.
void vertical_cunderline_projection | ( | C_OUTLINE * | outline, |
QSPLINE * | baseline, | ||
float | xheight, | ||
float | baseline_offset, | ||
STATS * | lower_proj, | ||
STATS * | middle_proj, | ||
STATS * | upper_proj | ||
) |
Definition at line 213 of file underlin.cpp.
"Chop underlines & put back"
Definition at line 26 of file underlin.cpp.
EXTERN double textord_underline_offset = 0.1 |
"Fraction of x to ignore"
Definition at line 24 of file underlin.cpp.