File:Adaptive optics.gif

Adaptive_optics.gif(576 × 198 pixels, file size: 2.6 MB, MIME type: image/gif, looped, 101 frames)

Commons-logo.svg This is a file from the Wikimedia Commons. The description on its description page there is shown below.
Commons is a freely licensed media file repository. You can help.

Summary

Description
English: If your image suffers from time-varying distortions (e.g. due to the atmosphere fluctuations when you do ground-based astronomy) you can use a wavefront sensor to measure them on a spot you know the shape of ("guide star"), and then correct for them using a deformable mirror.
Date
Source https://twitter.com/j_bertolotti/status/1144525775242182658
Author Jacopo Bertolotti
Permission
(Reusing this file)
https://twitter.com/j_bertolotti/status/1030470604418428929

Mathematica 11.0 code

ghost3=(*Import or create a square image to use*)
dim = Dimensions[ghost3][[1]]
zpoly[x_, y_, n_, m_] := -Which[m >= 0, ZernikeR[n, m, Sqrt[x^2 + y^2]]*Cos[m ArcTan[x, y]], m < 0, ZernikeR[n, -m, Sqrt[x^2 + y^2]]*Sin[-m ArcTan[x, y]] ];
Z = Table[
   N@Table[
     If[x == y == 0, 0, zpoly[x, y, n, m]], {x, -1, 1, 2/(dim - 1)}, {y, -1, 1, 2/(dim - 1)}], {n, 0, 3}, {m, -n, n, 2}];
Z = Flatten[Z, 1];
ClearAll[fpsf]
fpsf[t_] := 
  Table[RandomReal[{-1, 1}] Sin[RandomReal[{0, 1}] t + RandomReal[{0, 2 \[Pi]}] ], {10}];
p1 = Table[
   psfcoeff = fpsf[t];
   psf = psfcoeff.Z;
   psfcoefferr = RandomReal[{-0.1, 0.1}, 10];
   GraphicsRow[{ArrayPlot[Abs[Fourier[RotateRight[InverseFourier[ghost3], {128/2, 128/2}] *(Exp /@ (I 20*psf))] ], PlotRange -> All, PlotLabel -> "Distorted image"]
     ,
     MatrixPlot[psf, PlotRange -> All, Frame -> False, PlotLabel -> "Measured distortion"]
     ,
     ArrayPlot[Abs[Fourier[RotateRight[InverseFourier[ghost3], {128/2, 128/2}] *(Exp /@ (I 20*(psfcoefferr.Z) ))] ], PlotRange -> All, PlotLabel -> "Recovered image"]
     }, ImageSize -> Large]
   , {t, 0, 1, 0.01}];
ListAnimate[p1]

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

Captions

Adaptive optics to correct for distortions.

Items portrayed in this file

depicts

28 June 2019

image/gif

863d3964c3c4b088e42cb6cd7d8fb597efd08858

2,726,190 byte

198 pixel

576 pixel

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeDimensionsUserComment
current05:37, 28 June 2019576 × 198 (2.6 MB)BertoUser created page with UploadWizard

The following page uses this file:

Metadata