265 throw Exception(
"The horizontal line \"extend direction\" only supports \"cm::LEFT\" or \"cm::RIGHT\" types!");
HLines & ExtendLines(const VLines &vlines, Position extend_direction, size_t start_hline_index=5, double threshold=0.7, size_t max_num_misaligned_lines=3, bool strict_inspect=true)
延长特殊横线
HLines()=default
横线列表类的默认构造函数
double AvgHeight(Interval index_range=Interval::All(), bool is_order=true)
计算给定索引范围内横线的平均行高
HLines & RmFreeHLines(const VLines &vlines, int threshold=2)
删除游离横线
int FindNearLine(int postion, RelativePosition rp=NEAR)
定位满足条件的线
HLines & OptimizeIntersections(const VLines &vlines, size_t threshold=0)
交点优化
U Reduce(const FUNC &func, U initial_value=U{}) const
累计列表项
#define Cm_Assert(expr, message)
断言宏
@ AFTER
大于参考值中的最小值(在参考位置的后面)
@ BEFORE
小于参考值中的最大值(在参考位置的前面)
@ NEAR
最接近参考值的值(最靠近参考位置,不区分前后)
@ HLINE
横线 (horizontal line)