I need help in applying a Gaussian Kernel on my points cloud to smooth the cloud.
I could not figure out how I should write the code and I could not find any plain examples.
Update:
I am using Point Cloud Library (pcl):
pcl::io::loadPCDFile ("/home/..../2240.pcd", *raw_cloud);
Eigen::VectorXf horizontal;
//Set up the Gaussian Kernel
pcl::GaussianKernel<pcl::PointXYZRGB> gaussianKernel;
gaussianKernel.compute(5,horizontal,40);
pcl::filters::Convolution<pcl::PointXYZRGB> conv;
conv.setInputCloud(raw_cloud);
conv.setKernel(horizontal);
This is the code, it is not complete and I am not sure what if the approach is right?
anyone have an idea about this?
I found the right way to make a Gaussian Smoothing via PCL:
Hope it would help anyone in his work :)