This is the source code for the algorithm of Voxel- and Graph-based Segmentation (VGS/SVGS).
The code is written in C++ and tested in VS2015.
The code depends on the following third-party libraries: -PCL 1.8.1.
please refer to "Use_Test"
The "input_vector" encodes the input parameters (see "Task_File_VGS.txt" and "Task_File_SVGS.txt"), you can change it according to your demands.
Special thanks to M.Sc. Dong Lin from TU Dresden for correcting bugs in the codes!
Testing dataset (Town_Test.pcd) is cropped from ETH Zurich dataset: http://semantic3d.net/
You can find more details about the VGS/SVGS algorithm in our recent publications:
@article{xu2017geometric,
title={Geometric primitive extraction from point clouds of construction sites using VGS},
author={Xu, Yusheng and Tuttas, Sebastian and Hoegner, Ludwig and Stilla, Uwe},
journal={IEEE Geoscience and Remote Sensing Letters},
volume={14},
number={3},
pages={424--428},
year={2017},
publisher={IEEE}
}
@article{xu2018voxel,
title={A voxel- and graph-based strategy for segmenting man-made infrastructures using perceptual grouping laws: comparison and evaluation},
author={Xu, Yusheng and Hoegner, Ludwig and Tuttas, Sebastian and Stilla, Uwe},
journal={Photogrammetric Engineering \& Remote Sensing},
volume={84},
number={6},
pages={377--391},
year={2018},
publisher={American Society for Photogrammetry and Remote Sensing}
}