Code Monkey home page Code Monkey logo

pointcloudgeneration's Introduction

PointCloudGeneration

Make point cloud from a set of RGBD images (courtesy of TUM Sequence 'freiburg1_floor' dataset).

How to build

Dependencies

OpenCV: Build Instructions. PCL library: Build Instructions. TUM dataset: datasets.

After downloading the dataset, a few more steps needs to be done in order for the code to work.

  1. Go to src/generatePointCloud.cpp and change the dataset path to your dataset path.
  2. Using the association tool from TUM website here, associate rgb.txt and depth.txt into rgb_depth.txt. Then associate rgb_depth.txt and groundtruth.txt into rgb_depth_gt.txt and change the following in src/generatePointCloud.cpp.

Build

In the Project folder, create a build directory using mkdir build

compile using cmake ../src

then generate binary using make -j4

run the binary using ./generatPointCloud

You will get a .ply file. To view the file use meshlab.

Output

the output folder has a .zip file containing a .ply file which is already generated and can be viewed using meshlab. The folder also has a vidoe demo of the same.

References

code is inspired from https://www.cnblogs.com/gary-guo/p/6542141.html. Blog about the explanation https://www.programmersought.com/article/8647778259/

pointcloudgeneration's People

Contributors

woollyattorney avatar

Stargazers

Sarthak Mittal avatar  avatar

Watchers

James Cloos avatar  avatar

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.