Click here to Skip to main content
15,887,364 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I use VFH descriptor from pcl and I have a problem, it returns just one histogram but I have a point cloud which contains 397 points, so for me, I must a 397 histograms...

If you have a solution or idea please, tell me

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);


What I have tried:

I use fpfh in the same way and it works, I don't know why vfh gives me just one result
Posted
Updated 10-May-23 3:52am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900