降采样滤波算法——个人编译记录

位置:pcl_ws 第六章  2  voxel_grid  source

编译及执行

cmake .
make
./可执行文件

cmakelists.txt 改写3处

project
add_executable
target_link_libraries

1 算法时间:

//Jopery  计时器头文件
#include 
using namespace std;

clock_t begin, end;
{
//开始
  begin = clock();
//结束
  end = clock();
  cout<<"算法时间:"<

2 降采样前后的点云数量显示 

#include   //可视化头文件
//采样前点云cloud的点数,在接受输入到PCD后
  std::cerr << "PointCloud before filtering: " &l

你可能感兴趣的:(个人研途记录,算法)