edisonslightbulbs / segment

A tiny helper library for extracting an orthogonal planar surface 3D point clouds

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸŽ“ πŸŽ“ πŸŽ“ πŸŽ“

a tiny library for segmenting a 3D point cloud and extracting an orthogonal planar surface

  • 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;
}
Checkout:
  • a flexible point.h header here.
  • the outliers submodule dependency
  • the svd submodule dependency

About

A tiny helper library for extracting an orthogonal planar surface 3D point clouds


Languages

Language:C++ 100.0%