一、算法依据
由KDTree 的算法原理可知, 当邻域点集中点数k为1 时, 搜寻点与邻域点间建立一一映射关系。此时, 搜索到的邻域点是搜寻点与邻域点集中距离最小的点。
KD树的一个应用:pcl::KdTreeFLANN
二、代码实现
#include <iostream>
#include <pcl/io/pcd_io.h>
#include <pcl/point_types.h>
#include <boost/thread/thread.
由KDTree 的算法原理可知, 当邻域点集中点数k为1 时, 搜寻点与邻域点间建立一一映射关系。此时, 搜索到的邻域点是搜寻点与邻域点集中距离最小的点。
KD树的一个应用:pcl::KdTreeFLANN
#include <iostream>
#include <pcl/io/pcd_io.h>
#include <pcl/point_types.h>
#include <boost/thread/thread.