qilan 发表于 2017-4-13 09:59:54

双边滤波bug

无法解析的外部符号 "public: virtual void __cdecl pcl::BilateralFilter<struct pcl::PointXYZ>::applyFilter(class pcl::PointCloud<struct pcl::PointXYZ> &)" (?applyFilter@?$BilateralFilter@UPointXYZ@pcl@@@pcl@@UEAAXAEAV?$PointCloud@UPointXYZ@pcl@@@2@@Z)
void bino:: BilteralFilter()
{

    pcl::BilateralFilter<pcl::PointXYZ> fbf;   
    fbf.setInputCloud(cloud);
    fbf.setHalfSize(5.0);//定义算法支持的滤波范围的大小
    fbf.setStdDev(0.003);
    pcl::PointCloud<pcl::PointXYZ> cloud_filtered;
   
    fbf.filter(cloud_filtered);
   //fbf.applyFilter(cloud_filtered);


    //// Convert data back
        //pcl::PCLPointCloud2cloud_output;
    pcl::PointCloud<pcl::PointXYZ>::Ptr cloud_output;
    //toPCLPointCloud2(cloud_filtered, cloud_output);
    pcl::concatenateFields(*cloud,cloud_filtered,*cloud_output);
    pcl::copyPointCloud(*cloud_output, *cloud);

    viewer->updateCamera();
    viewer->updatePointCloud(cloud, "cloud");
    viewer->initCameraParameters();
}上面是该段代码和错误,前辈帮忙看看,已经卡了两天了。谢谢!!!!
页: [1]
查看完整版本: 双边滤波bug