//Create the input and filtered cloud objects pcl::PointCloud<pcl::PointXYZ>::Ptr inputcloud (new pcl::PointCloud<pcl::PointXYZ>); pcl::PointCloud<pcl::PointXYZ>::Ptr outputcloud (new pcl::PointCloud<pcl::PointXYZ>);
//Read in the input file if (pcl::io::loadPCDFile("SR4500LOG_pt0.pcd", *inputcloud) == -1) //* load the file { PCL_ERROR ("Couldn't read file test_pcd.pcd \n"); // if couldnt open the file ? return (-1); }
//Set up the Gaussian Kernel pcl::filters::GaussianKernel<pcl::PointXYZ,pcl::PointXYZ>:: Ptr kernel (new pcl::filters::GaussianKernel<pcl::PointXYZ, pcl::PointXYZ>); (*kernel).setSigma(4); (*kernel).setThresholdRelativeToSigma(4); std::cout << "Kernel made" << std::endl;
//Set up the KDTree pcl::search::KdTree<pcl::PointXYZ>::Ptr kdtree (new pcl::search::KdTree<pcl::PointXYZ>); (*kdtree).setInputCloud(inputcloud); std::cout << "KdTree made" << std::endl;
You need to provide the code you tried and explain why it is that it's not doing what you need it to - including providing sample input and output. Refer to stackoverflow.com/help/mcve –
Nathaniel FordJan 28 at 22:04