Getting Error in OrganizedMultiPlaneSegmentation.
I tried to use use OrganizedMultiPlaneSegmentation, but I got an error. Error msg is like "error C2664: 'void pcl::OrganizedMultiPlaneSegmentation<pointt,pointnt,pointlt>::segmentAndRefine(std::vector<_Ty,_Ax> &)' : cannot convert parameter 1 from 'std::vector<_Ty>' to 'std::vector<_Ty,_Ax> &'" Here is my sample code. Your advice is most appreciable. Thanx in advance.
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);
int k=3;
ne.setKSearch(k);
ne.compute (*normals);
pcl::OrganizedMultiPlaneSegmentation<pcl::PointXYZ,pcl::Normal,pcl::Label>mps; //Error
mps.setMinInliers(1000);
mps.setAngularThreshold(0.017453*2.0);
mps.setDistanceThreshold(0.02);
mps.setInputNormals(normals);
mps.setInputCloud(cloud.makeShared());
std::vector<pcl::PlanarRegion<pcl::PointXYZ>>regions;//Error
mps.segmentAndRefine(regions); //Error
}