GithubHelp home page GithubHelp logo

elisabethhui / 3d_reconstruction_from_stereo_images Goto Github PK

View Code? Open in Web Editor NEW

This project forked from artyziff35/3d_reconstruction_from_stereo_images

0.0 1.0 0.0 54.48 MB

Python 99.84% MATLAB 0.16%

3d_reconstruction_from_stereo_images's Introduction

3D_Reconstruction_From_Stereo_Images

This project has been written in Python and its aim is to reconstruct 3d maps of an enviroment starting from pairs of 2d stereo images.

Introduction

The code is able to perform camera calibration for radial and tangential distortion (by capturing images of a checkerboard or by using a stored set of chessboard images), stereo rectification and image capture. Once a pair of stero images has been undistorted, rectified and pre-processed using a set of operations (sharpening filters, histogram equalization, Brightness Control, Gaussian Pyramiding), a disparity map is calculated using our variant of the SAD (Sum of Absolute Differences) algorithm. From there, a depth map is retrieved using some triangulations in order to correctly locate in the 3d space each pixel of the map (respecting the correct real-world size and distances of the objects). Eventually, a .ply coloured point cloud is generated, which can be interpolated to obtain a uniform 3d model of the environment.

Here is shown more in detail the entire operative pipeline of the program: Pipeline

Documentation

Detailed documentation about the whole pipeline of the program can be found in this Paper (pdf format): https://github.com/ArtyZiff35/3D_Reconstruction_From_Stereo_Images/blob/master/documentation/3D_Model_Reconstruction_from_Stereo_2D_Images.pdf

Also, a set of brief presentation slides can be found here: https://docs.google.com/presentation/d/1Q8aFab3yFyF7yvGsJnriGsj5vfLVJpKg9J2PLjyWOMM/edit?usp=sharing

Samples

The following is an example result of the calibration and rectification process. Before: Before rectification After: After rectification

Next step is the disparity map generation using our custom algorithm derived from an optimized version of SAD: Disparity heat-map

Eventually, after some other processing, we end up with a depth map, and its corresponding 3d representation: Original Image Ply 1 Ply 2

3d_reconstruction_from_stereo_images's People

Contributors

artyziff35 avatar

Watchers

 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.