Giter VIP home page Giter VIP logo

chrise96 / 3d_ground_segmentation Goto Github PK

View Code? Open in Web Editor NEW
101.0 5.0 13.0 2.98 MB

A ground segmentation algorithm for 3D point clouds based on the work described in “Fast segmentation of 3D point clouds: a paradigm on LIDAR data for Autonomous Vehicle Applications”, D. Zermas, I. Izzat and N. Papanikolopoulos, 2017. Distinguish between road and non-road points. Road surface extraction. Plane fit ground filter

License: GNU General Public License v3.0

CMake 4.41% C++ 95.59%
point-cloud ground-segmentation cpp preprocessing lidar lastools ground non-ground road-surface extraction

3d_ground_segmentation's Introduction

Fast Ground Segmentation of 3D Point Clouds

Ground plane fitting algorithm for fast ground removal in LAS/LAZ Point Clouds. A preprocessing step, where ground points removal significantly reduces the number of points involved in proceeding computations.

Pseudocode

This project is based on the pseudocode of the ground plane fitting algorithm proposed in the work of Zermas et al. The pseudocode is described below.

P: point cloud
num_iter_: number of iterations
num_lpr_: number of points used to estimate the LPR
th_seeds_: threshold points to be considered initial seeds
th_dist_: threshold distance of the plane

mainLoop(P):
    P_ground = extractInitialSeeds(P)
    for i in 1 : num_iter_:
        model = estimatePlane(P_ground);
        clear(P_ground, P_notground)
        for point p in PointCloud P:
            if model(p) < th_dist_:
                add p to P_groundelse
                add p to P_notground;
    return P_ground, P_notground

extractInitialSeeds(P):
    P_sorted = sortOnHeight(P)
    LPR_height = Average(P_sorted(1 : num_lpr_));
    clear(P_seeds)
    for i in 1 : P_sorted.size:
        if P_sorted[i].z < LPR_height + th_seeds_:
            add p_sorted[i] to P_seeds
    return P_seeds

Prerequisites

  • Install LAStools:

    wget  http://lastools.github.io/download/LAStools.zip
    unzip LAStools.zip
    cd LAStools; mv LASlib/src/LASlib-config.cmake LASlib/src/laslib-config.cmake
    mkdir build; cd build
    cmake ..
    sudo make install
    
  • Install PCL:

    sudo apt install libpcl-dev
    

Installation instructions

  • Download the project.

    git clone https://github.com/Amsterdam-AI-Team/3D_Ground_Segmentation.git
    
  • Build the project as follows.

    mkdir build  
    cd build
    cmake ..
    make
    
  • Run the project.

    cd build
    ./ground_plane_fit
    

Example

Original Point Cloud with RGB notground points ground points

3d_ground_segmentation's People

Contributors

chrise96 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

3d_ground_segmentation's Issues

LAStools install error

when I install LAStools and perform "sudo make install" , there is
"
-- Up-to-date: /usr/local/include/LASlib/laswriter_wrl.hpp
-- Up-to-date: /usr/local/include/LASlib/laswritercompatible.hpp
-- Installing: /usr/local/lib/LASlib/libLASlib.a
-- Installing: /usr/local/lib/cmake/LASlib/laslib-targets.cmake
-- Installing: /usr/local/lib/cmake/LASlib/laslib-targets-noconfig.cmake
CMake Error at LASlib/src/cmake_install.cmake:141 (file):
file INSTALL cannot find
"/home/jhx/Downloads/LAStools/LASlib/src/laslib-config.cmake".
Call Stack (most recent call first):
cmake_install.cmake:42 (include)

Makefile:73: recipe for target 'install' failed
make: *** [install] Error 1
"

Cmake problem

CMake Error at CMakeLists.txt:7 (find_package):
By not providing "FindLASlib.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "LASlib", but
CMake did not find one.

Could not find a package configuration file provided by "LASlib" with any
of the following names:

LASlibConfig.cmake
laslib-config.cmake

Add the installation prefix of "LASlib" to CMAKE_PREFIX_PATH or set
"LASlib_DIR" to a directory containing one of the above files. If "LASlib"
provides a separate development package or SDK, be sure it has been
installed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.