Code Explained
Basics
std::vector<PointT, Eigen::aligned_allocator<PointT> > points;pcl::PointCloud<pcl::PointXYZ>::Ptr cloud (new pcl::PointCloud<pcl::PointXYZ>);pcl::XX::Ptr cloud (new pcl::PointCloud<pcl::PointXYZ>);
pcl::XX::Ptr cloud (new pcl::PointCloud<pcl::PointXYZ>() );// correct
pcl::PointCloud<pcl::PointXYZRGB> source_cloud_transformed;
sac_ia.align (source_cloud_transformed);
// incorrect
pcl::PointCloud<pcl::PointXYZRGB>::Ptr source_cloud_transformed (new pcl::PointCloud<pcl::PointXYZRGB>);
sac_ia.align (source_cloud_transformed);
// because align function takes in only raw pointers rather than smart pointersCorrespondence Estimation & KdTreeFLANN
KdTree Point Representation
KdTree with Customized Distance Measure
Point Cloud Transformation
Last updated