大佬教程收集整理的这篇文章主要介绍了c – 如何将pcl :: Histogram保存为PNG或JPG文件?,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
这是我需要在点[0]保存的直方图的变量.
pcl::PointCloud<Histogram<100> > hist;
我认为可以通过使用来完成
pcl::io::savePNGFile(path,*hist);
但这是我得到的错误
warning: ‘void pcl::io::savePNGFile(const String&,const pcl::PointCloud<PointT>&) [with T = pcl::Histogram<50>,std::string = std::basic_String<char>]’ is deprecated (declared at /usr/local/include/pcl-1.7/pcl/io/png_io.h:123): pcl::io::savePNGFile<typename T> (file_name,cloud) is deprecated,please use a new generic function pcl::io::savePNGFile (file_name,cloud,field_Name) with "rgb" as the field name. [-Wdeprecated-declarations] /usr/local/include/pcl-1.7/pcl/io/png_io.h:129:9: error: ‘const struct pcl::Histogram<50>’ has no member named ‘r’ /usr/local/include/pcl-1.7/pcl/io/png_io.h:130:9: error: ‘const struct pcl::Histogram<50>’ has no member named ‘g’ /usr/local/include/pcl-1.7/pcl/io/png_io.h:131:9: error: ‘const struct pcl::Histogram<50>’ has no member named ‘b’
以上是大佬教程为你收集整理的c – 如何将pcl :: Histogram保存为PNG或JPG文件?全部内容,希望文章能够帮你解决c – 如何将pcl :: Histogram保存为PNG或JPG文件?所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。