RSMesh 1.0.0
一个曲面重构的系统,输入为点云,输出为obj,stl等主流格式的网格文件,使用的方法为径向基函数插值,采取了并行优化、Intel-MKL等优化措施,支持百万级别的点云
载入中...
搜索中...
未找到
| Public 类型 | Public 成员函数 | 所有成员列表
rsmesh::point_cloud::kdtree类 参考

用于在点云中搜索最近邻点的kdtree,利用flann库来进行实现 更多...

#include <kdtree.h>

class  impl
 

Public 类型

using indices_and_distaces = std::pair<std::vector<index_t>, std::vector<double>>
 

Public 成员函数

 kdtree (const geometry::points3d &points, bool use_exact_search)
 构造函数
 
 ~kdtree ()
 析构函数
 
 kdtree (const kdtree &)=delete
 
 kdtree (kdtree &&)=delete
 
kdtreeoperator= (const kdtree &)=delete
 
kdtreeoperator= (kdtree &&)=delete
 
indices_and_distaces knn_search (const geometry::point3d &point, index_t k) const
 搜索距离某个点最近的k个点
 
indices_and_distaces radius_search (const geometry::point3d &point, double radius) const
 搜索出距离某个点距离小于等于radius的全部点
 

详细描述

用于在点云中搜索最近邻点的kdtree,利用flann库来进行实现

该类主要支持两种操作,第一种是k近邻搜索,第二种是半径搜索。

在文件 kdtree.h22 行定义.

成员类型定义说明

◆ indices_and_distaces

using rsmesh::point_cloud::kdtree::indices_and_distaces = std::pair<std::vector<index_t>, std::vector<double>>

在文件 kdtree.h24 行定义.

构造及析构函数说明

◆ kdtree()

rsmesh::point_cloud::kdtree::kdtree ( const geometry::points3d & points,
bool use_exact_search )

构造函数

参数
points点云
use_exact_search是否使用精确搜索

在文件 kdtree.cpp82 行定义.

成员函数说明

◆ knn_search()

kdtree::indices_and_distaces rsmesh::point_cloud::kdtree::knn_search ( const geometry::point3d & point,
rsmesh::index_t k ) const

搜索距离某个点最近的k个点

参数
point输入的点
kk值
返回

在文件 kdtree.cpp87 行定义.

◆ radius_search()

kdtree::indices_and_distaces rsmesh::point_cloud::kdtree::radius_search ( const geometry::point3d & point,
double radius ) const

搜索出距离某个点距离小于等于radius的全部点

参数
point输入的点
radius半径
返回

在文件 kdtree.cpp98 行定义.


该类的文档由以下文件生成: