GithubHelp home page GithubHelp logo

lg95 / space-carving Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 3.0 5 KB

An implementation of animation of a 3D scence reconstructed using space carving for Computer Graphics class.

License: MIT License

Python 100.00%

space-carving's Introduction

Each source file is a complete program. To run any of them, use 'python '. The PIL, visual and pyopengl libraries are required to run different sources.

This code was developed on Ubuntu 14.04.4 LTS and its default python verion (2.7.x) is the most compatible. Only render.py is not compatible with Pypy 4.0.1, which was used during development.

The programs were designed to cooperate with each on a Linux shell, by piping information from one to another. carve.py implements the space carving and returns the points corresponding to the object(s) found on the standard output, with a blank line separating different frams. It assumes the scene was recorded with 8 cameras, requiring the P matrix for each in a subfolder called calibration and names CameraI for I in [1, 8]. It then requires the silhouettes in a subfolder silhouettes each named SilhouetteI_J for I in [1, 8] and J a four digit number padded with zeros, with as each J corresponding to a single frame in the animation. A single commandline argument is required and indicates the distance between two points while carving, with lower numbers resulting in reconstructions of higer resolution. render.py reads points in the format generated by carve.py from the standard input and uses opengl to present the 3D scene animated. A single commandline argument is required and indicates the distance between two points, which is the diameters of the spheres. Lower numbers result in reconstructions of higer resolution. split.py takes the output from carve.py and places each frame into a sinle text file in a subfolder named frames.

space-carving's People

Contributors

lg95 avatar

Stargazers

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