File:ZernikeLogAiryImage.jpg

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia

Original file(1,151 × 1,107 pixels, file size: 114 KB, MIME type: image/jpeg)

Summary

Description
English: A flat-top beam being imaged by a lens. The beam is under the effect of the first 21 Zernike polynomials. The Log scale helps visualize the minima in intensity. For example, the top plot represent is a perfect beam (no aberration), whose image is a Bessel function
Date
Source Own work
Author Rolancito
(*https://mathematica.stackexchange.com/questions/33574/whats-the-\
correct-way-to-shift-zero-frequency-to-the-center-of-a-fourier-transf*)
fftshift[dat_?ArrayQ, k : (_Integer?Positive | All) : All] := 
 Module[{dims = Dimensions[dat]}, 
  RotateRight[dat, 
   If[k === All, Quotient[dims, 2], 
    Quotient[dims[[:w:k]], 2] UnitVector[Length[dims], k]]]]

ZernikePoly = 
 Table[Table[
     If[m < 0, 
      Sqrt[(2 (n + 1))/(\[Pi] (1 + KroneckerDelta[0, m]))]
        ZernikeR[n, -m, \[Rho]] Sin[m \[Theta]], 
      Sqrt[(2 (n + 1))/(\[Pi] (1 + KroneckerDelta[0, m]))]
        ZernikeR[n, m, \[Rho]] Cos[m \[Theta]]], {m, -n, n, 2}], {n, 
     0, 5}] /. {\[Rho] -> Sqrt[x^2 + y^2], \[Theta] -> ArcTan[x, y]} //
   FullSimplify

(*The flat-top beam size (HeavisideTheta) has radius 1*)
(*The Fourier plane is taken to be much larger than the aperture size*)
(*The Fourier transform is the result of the imaging setup*)
(*Each Zernike polynomial is simulated with a coefficient of 0.5*)

Column[Map[
  ArrayPlot[
    Log[Abs[fftshift[
       Fourier[Table[
         HeavisideTheta[1 - Sqrt[x^2 + y^2]]/Sqrt[\[Pi]]
           E^(-I 0.5 #), {y, -20, 20, 0.051}, {x, -20, 20, 
          0.051}]]]]^2], 
    PlotRange -> {{393 - 60, 393 + 60}, {393 - 60, 393 + 60}}, 
    PlotTheme -> "Scientific"] & , ZernikePoly, {2}], Center]
Export["ZernikeLogAiryImage.jpg", %]

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

Captions

Effect of Zernike-polynomial aberrations

Items portrayed in this file

depicts

16 June 2023

image/jpeg

File history

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

Date/TimeThumbnailDimensionsUserComment
current20:45, 16 June 2023Thumbnail for version as of 20:45, 16 June 20231,151 × 1,107 (114 KB)RolancitoUploaded own work with UploadWizard
The following pages on the English Wikipedia use this file (pages on other projects are not listed):

Metadata