3D【20】PCL MLS点云平滑

//#include 
    pcl::search::KdTree::Ptr search(new pcl::search::KdTree);
    pcl::MovingLeastSquares mls;
    pcl::PointCloud::Ptr result (new pcl::PointCloud);
    search->setInputCloud(cloud);

    mls.setInputCloud(cloud);
    mls.setPolynomialFit(true);
    mls.setPolynomialOrder(5);//一般2-5
    mls.setSearchMethod(search);
    mls.setSearchRadius(0.015);//越大的话平滑力度越大
    mls.process(*result);

你可能感兴趣的:(3d)