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