Giter Site home page Giter Site logo

modelwfs's Introduction

"Model-based wavefront shaping microscopy"

Matlab scripts to generate all the data underlying the article "Model-based wavefront shaping microscopy" [ Correspondence to: [email protected]]


Comparison of Model-based wavefront shaping and feedback-based wavefront shaping

Running sequence:

  1. Generate refractive index map from TPM intensity images.

    (a) Run /refractive_index_mapping/ShearTPMimage.m for coverting the acquired TPM frames to actual size in micrometer.

    Input file: Image from ScanImage (Here, eg. PDMS_diffuser_surface_1X512.tif) 
    Output file: TPM_3D.m
    

    (b) Run Refractive_Indexmap_3D.m to generate refractive index distribution.

    Required input: TPM_3D from the previous step.
    Output file: Sample properties (eg. n_sample, PDMS_thickness)
    
  2. Run Model_WFS_PhaseConjugation.m for simulating light propagation through the PDMS diffuser to find correction wavefront.

    Input: SampleProperties.m 
    Output: SLMCorrection.m
    
  3. Run feedback_optimization.m for finding the optimal wavefront.

    Output: ideal_wavefront.m
    
  4. Run WFScomparison.m for generating the Phase pattern on the SLM and compare the model-based wavefront shaping with feedback-based wavefront shaping.

    Inputs: SLMCorrection and ideal_wavefront


Data Analysis codes:

  1. ModelWFS_DataStitching.m is used to stitch 3D substacks to form a combined 3D stack.

  2. ModelWFS_DataAnalysis.m - Generate maximum intensity projection. Compute mean intensity of the beads as a function of depth.

  3. plotSLMpatterns: Generate SLM patterns at different depths. Four patterns corresponding to four depths are used in the paper.

modelwfs's People

Contributors

agruphysicsla avatar gosnabrugge avatar ivovellekoop avatar dedean16 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

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