69 #define RANGE_IN_BAND( band_max, band_min, range_max, range_min ) \
70 ( ((range_min) >= (band_min)) && ((range_max) < (band_max)) ) ? TRUE : FALSE
88 #define RANGE_OVERLAPS_BAND( band_max, band_min, range_max, range_min ) \
89 ( ((range_max) >= (band_min)) && ((range_min) < (band_max)) ) ? TRUE : FALSE
147 max_max = new_max_max;
149 min_max = new_min_max;
150 max_min = new_max_min;
152 min_min = new_min_min;
157 if ((y >= max_min) && (y < min_max))
165 if ((y >= min) && (y < max))
173 if ((y >= min_min) && (y < max_max))
236 #define MAX_NUM_BANDS 5
237 #define UNDEFINED_BAND 99
238 #define NO_LOWER_LIMIT -9999
239 #define NO_UPPER_LIMIT 9999
245 #define END_OF_WERD_CODE 255
249 "Descender height after normalisation");
251 "Ascender height after normalisation");
254 "Fraction of width occupied");
REGION_OCC(float min, float max, inT16 region)
BOOL8 in_maximal(float y)
#define INT_VAR_H(name, val, comment)
BOOL8 in_nominal(float y)
double textord_underline_threshold
void set(inT16 new_max_max, inT16 new_max, inT16 new_min_max, inT16 new_max_min, inT16 new_min, inT16 new_min_min)
bool blockocc_show_result
#define RANGE_IN_BAND(band_max, band_min, range_max, range_min)
BOOL8 range_in_minimal(float y1, float y2)
BOOL8 test_underline(BOOL8 testing_on, C_BLOB *blob, inT16 baseline, inT16 xheight)
BOOL8 range_in_nominal(float y1, float y2)
BOOL8 range_overlaps_minimal(float y1, float y2)
BOOL8 range_in_maximal(float y1, float y2)
BOOL8 in_minimal(float y)
BOOL8 range_overlaps_maximal(float y1, float y2)
#define double_VAR_H(name, val, comment)
#define ELISTIZEH(CLASSNAME)
#define RANGE_OVERLAPS_BAND(band_max, band_min, range_max, range_min)
#define BOOL_VAR_H(name, val, comment)
BOOL8 range_overlaps_nominal(float y1, float y2)