UniformSampling has no member named ‘compute’

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

UniformSampling has no member named ‘compute’

DIJA28
I have a problem using Uniform_sampling
I tried first to compile work of  G.Dabisisa about “3D object recognition”,  in order to replicate the same processes but I got the following  error:  

"error: ‘class pcl::UniformSampling<pcl::PointXYZRGB>’ has no member named ‘compute’"

Could anyone help me to to solve this  problem? Or just giving me hints( what is missing)?

I'm sorry if these questions are very basic, I'm very new in PCL.

 

Thank you .
Reply | Threaded
Open this post in threaded view
|

Re: UniformSampling has no member named ‘compute’

LuisRocha26
Hello,

Try to post some more information concerning your problem so we can help you (code snippets, logs, stack traces, etc.).

DIJA28 wrote
"error: ‘class pcl::UniformSampling<pcl::PointXYZRGB>’ has no member named ‘compute’"
Indeed the class UniformSampling has no compute() method. Classes inheriting from Filter base class implement applyFilter() as their "start button". As far as I know, the compute() method is the "start button" in classes deriving from Feature.

You may want to check the documentation for UniformSampling and this tutorial where it is used for downsampling a point cloud.

Best regards,

Luís Rocha
Reply | Threaded
Open this post in threaded view
|

Re: UniformSampling has no member named ‘compute’

vs-tec
Hi,

I guess the method you are looking for is called "filter" instead of "compute".

Best,
V
Reply | Threaded
Open this post in threaded view
|

Re: UniformSampling has no member named ‘compute’

DIJA28
Thank you for your answer.

Cheers
Reply | Threaded
Open this post in threaded view
|

Re: UniformSampling has no member named ‘compute’

termin
This post has NOT been accepted by the mailing list yet.
Hi,

so in pcl 1.8, uniform sampling generates a new filtered cloud?
In that case,how can i extract keypoints as in pcl 1.6:

        pcl::PointCloud<int> indices;
        pcl::UniformSampling<pcl::PointXYZ> uniform_sampling;
        uniform_sampling.setInputCloud(cloud);
        uniform_sampling.setRadiusSearch(radius);
        uniform_sampling.compute(indices);

Thanks