Coder Social home page Coder Social logo

lensless's Introduction

lensless

Reconstruct images from lensless coding cameras

2D deconvolution using proximal gradient descent

The script realtime_deconv.m takes care of loading in measured data, preparing file names etc., then calls diffuser_2d_deconv_v2.m to do the deconvolution. diffuser_2d_deconv_v2 relies on the code in antipa/proxMin to function, so you'll need that. At the top of realtime_deconv are:

  1. input_folder where you'll need to specify the path to the image to process
  2. camera_type string containing camera type. Currently needs to be either 'pco' or 'flea3'. This must be set because each camera's raw data contains a different bias, which, if not properly subtracted, leads to poor reconstruction.
  3. process_color String specifying which color channel to use. For flea3, mono is the only option, but for pco, choices are:
  • 'mono': average RGB data in PSF and raw measurement
  • 'red': use only red channel (after demosaicing)
  • 'green': green only
  • 'blue': blue
  • 'all': solve all 3 colors independently, then create RGB output

At the top of diffuser_2d_deconv_v2, you can specify ds to be an integer. The images will all be downsampled (using a 'box' antialias filter) by this amount.

You can also set the regularizer parameters in the code, but this needs to be made more user friendly before it is recommended.

lensless's People

Contributors

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