pclpy
pclpy copied to clipboard
No supported output type for SpinImage description
the c++ code using pcl to get Spin Image from point cloud is:
pcl::SpinImageEstimation<pcl::PointXYZ, pcl::Normal, pcl::Histogram<153> > spin_image_descriptor(8, 0.5, 10);
spin_image_descriptor.setInputCloud(cloud);
# omit similar code of setting arguments like last line
pcl::PointCloud<pcl::Histogram<153> >::Ptr spin_images(new pcl::PointCloud<pcl::Histogram<153> >);
spin_image_descriptor.compute(*spin_images);
According to this, I can define the SpinImageEstimation descriptor as
from pypcl import pcl si = pcl.features.SpinImageEstimation.PointXYZ_Normal_Histogram_153(8,0.5,10)
and set the arguments.
But there is no variable can support the output type since there is nothing like Histogram<153> in pcl.PointCloud.
How can I write the python code to declare the output variable just like this line of c++ code
pcl::PointCloud<pcl::Histogram<153> >::Ptr spin_images(new pcl::PointCloud<pcl::Histogram<153> >);