typedef pcl::VFHEstimation<pcl::PointXYZ, pcl::Normal, pcl::VFHSignature308> VFHEstimationType; VFHEstimationType vfhEstimation; // Provide the original point cloud (without normals) vfhEstimation.setInputCloud(cloud1); // Provide the point cloud with normals vfhEstimation.setInputNormals(cloudWithNormals1); // Use the same KdTree from the normal estimation vfhEstimation.setSearchMethod(tree1); vfhEstimation.setRadiusSearch (0.1); // With this, error: "Both radius (.2) and K (1) defined! Set one of them to zero first and then re-run compute()" // Actually compute the VFH features pcl::PointCloud<pcl::VFHSignature308>::Ptr vfhFeatures(new pcl::PointCloud<pcl::VFHSignature308>); vfhEstimation.compute(*vfhFeatures);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)