Giter Club home page Giter Club logo

ee5731r-cdmr's Introduction

EE5731R-CDMR

Course project for Visual Computing course EE5731R.

Motivation

Write a program in matlab to estimate depth map from video using this method: Depth Map from Video Sequence.

To make it simple, I only reimplemented:

  • Disparity Initialization for video.
  • Bundle Optimization for video.

example

Contain some minor changes.

Brief Guide

[0] Place The unzipped Video Dataset(s) at ./video/{$DATASETNAME}/src/{$IMAGENAME}.jpg

[1] Compile GCMex by ./toolbox/GCMex/GCMex_compile.m if necessary.

[2] RUN './demo_disparsity_initialization.m' FOR VIDEO SEQUENCE DISPARSITY INITIALIZATION.

  • Outpus: ./result/init/{$DATASETNAME}/test{$ID}.mat # Orginal Outputs
  • Outpus: ./result/init/{$DATASETNAME}/test{$ID}.png # Rendered Maps

[3] RUN ./demo_bundle_optimization.m FOR VIDEO SEQUENCE BUNDLE OPTIMIZATION.

  • Outpus: ./result/bundle_p{$pass_id}/{$DATASETNAME}/test{$ID}.mat # Orginal Outputs
  • Outpus: ./result/bundle_p{$pass_id}/{$DATASETNAME}/test{$ID}.png # Rendered Maps

IMPORTANT: Depend on your computer's permorfance, It may cost 30~60 mins for processing 1 frame with 20 neighborhoods. You can (but not recommend) cut the neighborhood frame number for acceleration (~5mins/frame).

Tested On

MATLAB 2014B x64:

  • With Parallel Computing Toolbox.

UBUNTU 14.04 LTS x64

  • Intel i7-5820k, 3.3GHz
  • Memory DDR4 2133MHz 64gb (16GBx4)

Noted

All three datasets have been processed by a distributed computing cluster. (12 computers, 72 cpu cores intotal)

The results are saved under result.

It costed:

  • ~20 hours to do the disparity initialization
  • ~20 hours to do the first pass of the bundle optimization (i just did one pass)

Sorry for didn't optimize the speed. Please make sure your computer is powerful enough and yourself is patient enough to run this code.

Reference

Zhang, Guofeng, et al. "Consistent depth maps recovery from a video sequence." Pattern Analysis and Machine Intelligence, IEEE Transactions on 31.6 (2009): 974-988.


*For those who are taking this course, please be aware that this repo is just for your reference and plagiarism is a serious offense in nus.

ee5731r-cdmr's People

Contributors

cypw avatar

Watchers

James Cloos 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.