Git Product home page Git Product logo

structured_light's Introduction

Structured Light

An implementation of a 3D scanner using the three-step phase shifting method.

How it works

In a calibrated setup, a beamer is used to project special stripe patterns onto the target object. A camera then captures the scene for each the different patterns. As the camera sees the stripes from a different angle than the beamer, they appear distorted proportionally to depth of the object's surface. From the difference of the distorted to the original pattern, the depth for each pixel can be reconstructed.

The patterns are grayscale images, that consist from an equal number of horizontal stripes with a sine intensity distribution. In each pattern, the sine wave is shifted by 120° or 2/3 PI. From the different intensity values, a relative phase in the range of [-PI,PI] can be computed. The discontinueties of the wrapped phase map are unwrapped using a flood fill algorithm, by following neigbouring pixels with the best phase quality, starting in the center of the image. The resulting absolute phase, is proportional to he surface depth of the pixel.

Setup (Source: https://en.wikipedia.org/wiki/Structured-light_3D_scanner)

Files

In the root dirctory, you will find various code, like implementation of the algorithm, a simple commandline test application, a script for generating the fringe pattern images and code for viewing the result as a 3D point cloud.

The slapp directory contains graphical application with basic user interface, that supports:

  • capturing the images
  • performing reconstruction
  • viewing point cloud
  • simple adjusting of parameters for calibration

Requirements

  • C++ compiler
  • OpenCV
  • OpenGL / glut
  • QT 4 (for the SLapp)
  • OS: Linux

Usefull Papers

Wikipedia:

Calibration:

Three Phase Shift

Phase Unwrapping

structured_light's People

Contributors

faruk avatar phreax 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.