Giter Site home page Giter Site logo

mshwfs's Introduction

MSHWFS - Modal-Shack-Hartmann-Wavefront-Sensor toolbox

MATLAB toolbox to estimate the wavefront from Shack-Hartmann wavefront sensor (SHWFS) images. This toolbox implements the modal-based wavefront reconstruction method described in Section 1.3.2 of [A2014].

Main Features

  • automatic calibration from a given SHWFS reference image
  • handles an arbitrary arrangement and number of subapertures
  • estimates an arbitrary number of Zernike modes
  • computes the definite integrals of the gradients of the Zernike modes within each subaperture
  • contains an example with real SHWFS images

Requirements

  • MATLAB
  • a SHWFS reference image for calibration

Usage

To perform the calibration, open calibration.m,

>> cd examples/
>> edit calibration.m

You can run the calibration using the example SHWFS reference image found in examples/data/sh_flat.mat. To use your own SHWFS reference image:

  • adjust the parameters for your lenslet array
  • replace load sh_flat_bg.mat with your background reference image (dark frame).
  • replace load sh_flat.mat with your SHWFS reference image, i.e., an image taken with your SHWFS when no aberration is present
  • run the script adjusting the parameters if necessary. For example, you may want to disable some subapertures. You can do this by zeroing the corresponding pixels in the SHWFS reference image.

Once the calibration is complete, you can estimate the wavefront from an arbitrary SHWFS image. An example is provided in reconstruction.m. To use your own images, just replace load img.mat.

References

[A2014]
  1. Antonello, "Optimisation-based wavefront sensorless adaptive optics for microscopy," Ph.D. thesis, Delft University of Technology (2014). L1
[W1]http://www.antonello.org/code.php

mshwfs's People

Contributors

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