I am trying to segment the input point cloud using surface normal based region growing, following the tutorial here:http://pointclouds.org/documentation/tutorials/region_growing_segmentation.php. I have been able to achieve satisfactory results for my use case and I could also visualize the segments using pcl::PointCloud ::Ptr colored_cloud = reg.getColoredCloud ();
However, I am not able to find a way to extract a particular cluster that contains all points with normals oriented in a particular direction, for example, the cluster which has all the points with point normals along the z-axis. I assume that such an access to the cluster should be possible, please correct me if I am wrong. Also, any alternative methods to get the feature/s of the individual cluster would be very helpful. Thanks in advance.