tesseract-doxygen/textord/blkocc.h File Reference

#include "varable.h"
#include "polyblob.h"
#include "elst.h"
#include "notdll.h"

Go to the source code of this file.

Classes

class  REGION_OCC
class  BAND

Defines

#define RANGE_IN_BAND(band_max, band_min, range_max, range_min)   ( ((range_min) >= (band_min)) && ((range_max) < (band_max)) ) ? TRUE : FALSE
#define RANGE_OVERLAPS_BAND(band_max, band_min, range_max, range_min)   ( ((range_max) >= (band_min)) && ((range_min) < (band_max)) ) ? TRUE : FALSE
#define MAX_NUM_BANDS   5
#define UNDEFINED_BAND   99
#define NO_LOWER_LIMIT   -9999
#define NO_UPPER_LIMIT   9999
#define DOT_BAND   0
#define END_OF_WERD_CODE   255

Functions

BOOL8 test_underline (BOOL8 testing_on, PBLOB *blob, float baseline, float xheight)
BOOL8 test_underline (BOOL8 testing_on, C_BLOB *blob, inT16 baseline, inT16 xheight)
void horizontal_cblob_projection (C_BLOB *blob, STATS *stats)
void horizontal_coutline_projection (C_OUTLINE *outline, STATS *stats)
void set_bands (float baseline, float xheight)
void block_occ (PBLOB *blob, float occs[])
void find_transitions (PBLOB *blob, REGION_OCC_LIST *region_occ_list)
void record_region (inT16 band, float new_min, float new_max, inT16 region_type, REGION_OCC_LIST *region_occ_list)
inT16 find_containing_maximal_band (float y1, float y2, BOOL8 *doubly_contained)
void find_significant_line (POLYPT_IT it, inT16 *band)
inT16 find_overlapping_minimal_band (float y1, float y2)
inT16 find_region_type (inT16 entry_band, inT16 current_band, inT16 exit_band, float entry_x, float exit_x)
void find_trans_point (POLYPT_IT *pt_it, inT16 current_band, inT16 next_band, FCOORD *transition_pt)
void next_region (POLYPT_IT *start_pt_it, inT16 start_band, inT16 *to_band, float *min_x, float *max_x, inT16 *increment, FCOORD *exit_pt)
inT16 find_band (float y)
void compress_region_list (REGION_OCC_LIST *region_occ_list)
void find_fbox (OUTLINE_IT *out_it, float *min_x, float *min_y, float *max_x, float *max_y)
void maintain_limits (float *min_x, float *max_x, float x)

Variables

bool blockocc_show_result = FALSE
int blockocc_desc_height = 0
int blockocc_asc_height = 255
int blockocc_band_count = 4
double textord_underline_threshold = 0.9

Define Documentation

#define DOT_BAND   0
#define END_OF_WERD_CODE   255
#define MAX_NUM_BANDS   5
#define NO_LOWER_LIMIT   -9999
#define NO_UPPER_LIMIT   9999
#define RANGE_IN_BAND ( band_max,
band_min,
range_max,
range_min   )     ( ((range_min) >= (band_min)) && ((range_max) < (band_max)) ) ? TRUE : FALSE
#define RANGE_OVERLAPS_BAND ( band_max,
band_min,
range_max,
range_min   )     ( ((range_max) >= (band_min)) && ((range_min) < (band_max)) ) ? TRUE : FALSE
#define UNDEFINED_BAND   99

Function Documentation

void block_occ ( PBLOB blob,
float  occs[] 
)
void compress_region_list ( REGION_OCC_LIST *  region_occ_list  ) 
inT16 find_band ( float  y  ) 
inT16 find_containing_maximal_band ( float  y1,
float  y2,
BOOL8 doubly_contained 
)
void find_fbox ( OUTLINE_IT *  out_it,
float *  min_x,
float *  min_y,
float *  max_x,
float *  max_y 
)
inT16 find_overlapping_minimal_band ( float  y1,
float  y2 
)
inT16 find_region_type ( inT16  entry_band,
inT16  current_band,
inT16  exit_band,
float  entry_x,
float  exit_x 
)
void find_significant_line ( POLYPT_IT  it,
inT16 band 
)
void find_trans_point ( POLYPT_IT *  pt_it,
inT16  current_band,
inT16  next_band,
FCOORD transition_pt 
)
void find_transitions ( PBLOB blob,
REGION_OCC_LIST *  region_occ_list 
)
void horizontal_cblob_projection ( C_BLOB blob,
STATS stats 
)
void horizontal_coutline_projection ( C_OUTLINE outline,
STATS stats 
)
void maintain_limits ( float *  min_x,
float *  max_x,
float  x 
)
void next_region ( POLYPT_IT *  start_pt_it,
inT16  start_band,
inT16 to_band,
float *  min_x,
float *  max_x,
inT16 increment,
FCOORD exit_pt 
)
void record_region ( inT16  band,
float  new_min,
float  new_max,
inT16  region_type,
REGION_OCC_LIST *  region_occ_list 
)
void set_bands ( float  baseline,
float  xheight 
)
BOOL8 test_underline ( BOOL8  testing_on,
C_BLOB blob,
inT16  baseline,
inT16  xheight 
)
BOOL8 test_underline ( BOOL8  testing_on,
PBLOB blob,
float  baseline,
float  xheight 
)

Variable Documentation

"Ascender height after normalisation"

"Number of bands used"

"Descender height after normalisation"

"Show intermediate results"

"Fraction of width occupied"

Generated on Sun Jul 18 17:10:51 2010 for Tesseract by  doxygen 1.6.3