Used to Segment Objects and obtain multiple clusters of objects kept on a table captured by a Microsoft kinect.
Below is the PCD file obtained through Kinect OpenNI Grabber. We can see multiple objects kept on a table top.
We can see above that since the Objects are within 2cms of each other, they are clustered out together. To get them into two different clusters, we run the Clustering algorithm second time with 1cm as the distance threshold.
git clone https://github.com/SiddhantNadkarni/PointCloudPlaneSegmentationAndObjectClustering.git
cd PointCloudPlaneSegmentationAndObjectClustering && mkdir build && cd build
cmake ..
./planar_segmentation inputDataMarch2019/inputCloud20.pcd 0.02 0.02 0.01
[Executable] [inputData] [planeSegmentationThreshold] [FirstRoundClusterThreshold1] [SecondRoundClusterThreshold]