Boundary Estimation Error.
I am trying to extract boundary points from point cloud,and want to print the boundary points.Unfortunately, I got error like error C2248: 'pcl::BoundaryEstimation<pointint,pointnt,pointoutt>::computeFeature' : cannot access protected member declared in class 'pcl::BoundaryEstimation<pointint,pointnt,pointoutt>'. Did anybody experience this? Thanx in advance.
Here is my sample code.
int main (..)
{
//Load point cloud
pcl::PointCloud<pcl::Normal>::Ptr normals (new pcl::PointCloud<pcl::Normal>);
pcl::NormalEstimation<pcl::PointXYZ, pcl::Normal> ne;
ne.setInputCloud (cloud.makeShared());
pcl::search::KdTree<pcl::PointXYZ>::Ptr tree (new pcl::search::KdTree<pcl::PointXYZ> ());
ne.setSearchMethod (tree);
ne.setRadiusSearch (0.03);
ne.compute (*normals);
pcl::PointCloud<pcl::Boundary> boundaries;
pcl::BoundaryEstimation<pcl::PointXYZ, pcl::Normal, pcl::Boundary> est;
est.setInputCloud (cloud.makeShared());
est.setInputNormals (normals);
est.setRadiusSearch (0.03);
est.setSearchMethod (pcl::search::KdTree<pcl::PointXYZ>::Ptr (new pcl::search::KdTree<pcl::PointXYZ>));
est.compute (boundaries);
pcl::PointCloud<pcl::Boundary>::Ptr boundary_cloud (new pcl::PointCloud<pcl::Boundary> ());
est.computeFeature(*boundary_cloud); /// Error Here
cout<<"Boundary Size:"<<boundaries.points.size()<<endl;
}