|
| | Lines ()=default |
| | 线列表类的默认构造函数
|
| |
| | Lines (const Lines &lines)=default |
| | 线列表类的拷贝构造函数
|
| |
| | Lines (const std::vector< cv::Vec4i > &lines) |
| | 线列表类的带参构造函数
|
| |
| | Lines (const std::vector< std::vector< int > > &lines) |
| | 线列表类的带参构造函数
|
| |
| | ~Lines ()=default |
| | 线列表类的析构函数
|
| |
| Lines & | operator= (const std::vector< cv::Vec4i > &lines) |
| | 线列表类的赋值拷贝构造函数
|
| |
| Lines & | operator= (const std::vector< std::vector< int > > &lines) |
| | 线列表类的赋值拷贝构造函数
|
| |
| Lines & | RemoveLines (const std::unordered_set< size_t > &deleted_indexes) |
| | 移除指定索引的线段
|
| |
| Lines & | RemoveLines (const std::unordered_set< Line, Line::Hash > &deleted_lines) |
| | 移除指定线段集合
|
| |
| Lines & | RemoveLines (const Lines &deleted_lines) |
| | 移除指定线段集合
|
| |
| const Lines & | ClassifyLines (Lines &hlines, Lines &vlines) const |
| | 对线段进行分类
|
| |
| double | LineLength (Statistic type, const Interval &x_range=Interval::All(), const Interval &y_range=Interval::All(), bool is_rough=false) |
| | 计算线数组中有效线的长度
|
| |
| Line | MergeLines (LineType line_type) const |
| | 合并线列表
|
| |
| Rect | Boundary (int margin=0) const |
| | 获取线列表的边界
|
| |
| cm::size_t | NumberInInterval (const Interval &x_range, const Interval &y_range) |
| | 计算区间内的线段数量
|
| |
| std::unordered_set< int > | GetLinesIndexInLine (const Line &line, int threshold=2, bool strict_inspect=true) |
| | 获取线在线列表中的索引
|
| |
| Lines & | ConnectLines (LineType line_type=ULINE, int threshold=4, int max_distance=100, bool strict_inspect=true, const Interval &old_line_len_range=Interval::All(), bool oline_len_condition=true, const Interval &new_line_len_range=Interval::All()) |
| | 连接线列表的线段
|
| |
| Lines & | ConnectAdjacentLines (int threshold=4, int max_distance=100, bool strict_inspect=true, const Interval &old_line_len_range=Interval::All(), bool oline_len_condition=true, const Interval &new_line_len_range=Interval::All()) |
| | 连接线列表的相邻线段
|
| |
| template<typename FUNC = Line::CompareByLength> |
| std::unordered_set< size_t > | GetDuplicateLines (LineType line_type=ULINE, double threshold=5, double min_overlap_ratio=0.5, Statistic near_method=cm::MAXIMUM, const FUNC &func=Line::CompareByLength(true)) const |
| | 获取重复线段对应的索引
|
| |
| template<typename FUNC = Line::CompareByLength> |
| std::unordered_set< size_t > | GetAdjacentDuplicateLines (double threshold, double min_overlap_ratio=0.5, Statistic near_method=cm::MAXIMUM, const FUNC &func=Line::CompareByLength(true)) const |
| | 获取相邻重复线段对应的索引
|
| |
| template<typename FUNC = Line::CompareByLength> |
| Lines & | RmDuplicateLines (LineType line_type=ULINE, double threshold=5, double min_overlap_ratio=0.5, Statistic near_method=cm::MAXIMUM, const FUNC &func=Line::CompareByLength(true)) |
| | 删除重复线
|
| |
| template<typename FUNC = Line::CompareByLength> |
| Lines & | RmAdjacentDuplicateLines (double threshold, double min_overlap_ratio=0.5, Statistic near_method=cm::MAXIMUM, const FUNC &func=Line::CompareByLength(true)) |
| | 删除相邻的重复线
|
| |
| | List ()=default |
| | 列表类的默认构造函数
|
| |
| | List (const List< Line > &list)=default |
| | 列表类的拷贝构造函数
|
| |
| | List (const std::vector< Line > &list) |
| | 列表类的带参构造函数
|
| |
| | ~List ()=default |
| | 列表类的析构函数
|
| |
| List< Line > & | operator+= (const List< Line > &list) |
| | 列表类重载加等于运算符
|
| |
| List< Line > | Filter (const FUNC &func) const |
| | 过滤列表项
|
| |
| U | Reduce (const FUNC &func, U initial_value=U{}) const |
| | 累计列表项
|
| |
| List< U > | Map (const FUNC &func) const |
| | 列表项映射
|
| |
| List< Line > | MutFilter (const FUNC &func) |
| | 过滤列表项
|
| |
| U | MutReduce (const FUNC &func, U initial_value=U{}) |
| | 累计列表项
|
| |
| List< U > | MutMap (const FUNC &func) |
| | 列表项映射
|
| |
| const_iterator | Max () const |
| | 求列表中的最大值
|
| |
| const_iterator | Max (const FUNC &func) const |
| | 求列表中的最大值
|
| |
| const_iterator | Min () const |
| | 求列表中的最小值
|
| |
| const_iterator | Min (const FUNC &func) const |
| | 求列表中的最小值
|
| |
| List< Line > & | Sort () |
| | 对列表进行排序
|
| |
| List< Line > & | Sort (const FUNC &func) |
| | 对列表进行排序
|
| |
| iterator | Order (size_t index) |
| | 按序获取列表中指定索引的元素
|
| |
| iterator | Order (size_t index, const FUNC &func) |
| | 按序获取列表中指定索引的元素
|
| |
| bool | Include (const Line &value) const |
| | 判断列表中是否包含指定值
|
| |
| bool | Include (const FUNC &func) const |
| | 判断列表中是否包含满足指定条件的值
|
| |
| size_t | Index (const Line &value, size_t from_index=0) const |
| | 查找指定值在列表中的索引
|
| |
| size_t | Index (const FUNC &func, size_t from_index=0) const |
| | 查找指定值在列表中的索引
|
| |
| size_t | LastIndex (const Line &value, size_t from_index=INT_MAX) const |
| | 查找指定值在列表中的索引
|
| |
| size_t | LastIndex (const FUNC &func, size_t from_index=INT_MAX) const |
| | 查找指定值在列表中的索引
|
| |
| size_t | Count (const Line &value) const |
| | 统计列表中指定值的出现次数
|
| |
| size_t | Count (const FUNC &func) const |
| | 统计满足指定条件的元素个数
|
| |
| List< Line > & | Reverse () |
| | 对列表中的元素进行反转
|
| |
| List< Line > & | Shuffle () |
| | 对列表中的元素进行随机打乱
|
| |
| List< Line > & | Fill (const Line &value) |
| | 将列表中所有元素填充为指定值
|
| |
| List< Line > | Slice (size_t start, size_t end=UINT_MAX) const |
| | 切片提取列表中指定范围的元素
|
| |
线列表类
该类公有继承自 List<Line> 类,用于管理 线 列表并提供相应的操作。
- 作者
- dreamy-xay
- 日期
- 2024-03-02
在文件 lines.hpp 第 34 行定义.