35 bool parent_null =
xht_sp < 0;
75 const int kMinIntersectedXHeightRange = 0;
76 for (
int i = 0; i <
kNumPos; i++) {
77 if (
xht_lo[i] >
xht_hi[i] - kMinIntersectedXHeightRange) {
93 double mainline_xht =
static_cast<double>(
xht_lo[
kNORM]);
94 double kMinSizeRatio = 0.4;
95 if (mainline_xht > 0.0 &&
96 (static_cast<double>(
xht_hi[
kSUB]) / mainline_xht < kMinSizeRatio ||
97 static_cast<double>(
xht_hi[
kSUP]) / mainline_xht < kMinSizeRatio)) {
static const int kMaxEntropy
int16_t xht_count[kNumPos]
int16_t xht_count_punc[kNumPos]
static const int kShiftThresh
float min_xheight() const
float max_xheight() const
void IntersectRange(const T &lower1, const T &upper1, T *lower2, T *upper2)
XHeightConsistencyEnum xht_decision
void ComputeXheightConsistency(const BLOB_CHOICE *b, bool is_punc)