- the interface
#include <vector>
#include "point.h"
namespace region {
/** segment
* Segments a 3D point cloud and extracts an
* orthogonal planar surface.
*
* @param points
* The given set of 3D points
*
* @retval
* Set of 3D points corresponding to the
* orthogonal planar surface
*/
std::vector<Point> segment(std::vector<Point>& points);
}
- usage example
#include <vector>
#include "point.h"
#include "region.h" // <-- include the library
int main(int argc, char* argv[]){
logger(argc, argv);
std::vector<Point> points = readPoints();
std::vector<Point> pCloudSeg = region::segment(points);
write(pCloudSeg);
return 0;
}