Make sure you have cmake and libpcl installed.
sudo apt install cmake libpcl-dev
Navigate into the root directory and run
cmake -S ./ -B build/
then to build, run
bash build.bash
Note that there is a collection of .pcd files under the directory 'sample_data/'.
After building, run
build/vis <.pcd file here> basic
To run a basic visualization.
build/vis <.pcd file here> bins 1 <number of bins here>
build/vis <.pcd file here> segments <number of segments here> 1
build/vis <.pcd file here> lines <number of segments here> <number of bins here>
build/vis <.pcd file here> beforeafter <number of segments here> <number of bins here>