Coder Social home page Coder Social logo

depth-focal-stack's Introduction

Application of Preconditioned Alternating Direction Method of Multipliers in Depth from Focal Stack

This repository contains the code for the method presented in the following paper:

Hossein Javidnia, Peter Corcoran, "Application of preconditioned alternating direction method of multipliers in depth from focal stack," Journal of Electronic Imaging 27(2), 023019 (6 April 2018). https://doi.org/10.1117/1.JEI.27.2.023019.


The code is written and compiled in MATLAB R2017a x64. To run the code please follow these instructions:

  1. Download the repository.
  2. Extract the "opencv_imgproc310d.zip" file and copy the "opencv_imgproc310d.dll" file to the main directory, next to the other dlls.
  3. Run the "Run.m" file in MATLAB.


A sample focal stack set is located in the "Data" folder.

To generate focal stack samples from .LFR light-field sets, please follow these instructions:

  1. Download the .LFR files from EPFL Light-Field Image Dataset.
  2. Download and install Lytro Desktop Software.
  3. Open the LFR file in Lytro Software.
  4. Go to the "Animate" section on the left hand side.
  5. Select and remove the first keyframe.
  6. Modify the focus point of last frame (click on the furthest point of the scene).
  7. Add a keyframe at the begining and modify the focus point (click on the closest point of the scene).
  8. From the "Export" option in the "File" menu, save the png series.


Please cite the following papers when you are using this code:

Hossein Javidnia, Peter Corcoran, "Application of preconditioned alternating direction method of multipliers in depth from focal stack," Journal of Electronic Imaging 27(2), 023019 (6 April 2018). https://doi.org/10.1117/1.JEI.27.2.023019.

If you are using the EPFL Light-Field Image Dataset please cite:

Rerabek M, Ebrahimi T. New light field image dataset. Paper presented at: 8th International Conference on Quality of Multimedia Experience (QoMEX)2016.

depth-focal-stack's People

Contributors

hosseinjavidnia avatar

Stargazers

 avatar rany99 avatar Jinguang Tong avatar MelonEater 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.