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 |