=Paper= {{Paper |id=Vol-2744/short47 |storemode=property |title=Wavefront Parameters Recovering by Using Point Spread Function (short paper) |pdfUrl=https://ceur-ws.org/Vol-2744/short47.pdf |volume=Vol-2744 |authors=Olga Kalinkina,Tatyana Ivanova,Julia Kushtyseva }} ==Wavefront Parameters Recovering by Using Point Spread Function (short paper)== https://ceur-ws.org/Vol-2744/short47.pdf
     Wavefront Parameters Recovering by Using Point
                   Spread Function

           Olga Kalinkina[0000-0002-2522-8496], Tatyana Ivanova[0000-0001-8564-243X]
                        and Julia Kushtyseva[0000-0003-1101-6641]

      ITMO University, 197101 Kronverksky pr. 49, bldg. A, Saint-Petersburg, Russia
              oskalinkina@itmo.ru, tvivanova@itmo.ru,
                         julia.kushtyseva@gmail.com



       Abstract. At various stages of the life cycle of optical systems, one of the most
       important tasks is quality of optical system elements assembly and alignment
       control. The different wavefront reconstruction algorithms have already proven
       themselves to be excellent assistants in this. Every year increasing technical ca-
       pacities opens access to the new algorithms and the possibilities of their appli-
       cation. The paper considers an iterative algorithm for recovering the wavefront
       parameters. The parameters of the wavefront are the Zernike polynomials coef-
       ficients. The method involves using a previously known point spread function
       to recover Zernike polynomials coefficients. This work is devoted to the re-
       search of the defocusing influence on the convergence of the algorithm. The
       method is designed to control the manufacturing quality of optical systems by
       point image. A substantial part of the optical systems can use this method with-
       out additional equipment. It can help automate the controlled optical system ad-
       justment process.

       Keywords: Point Spread Function, Wavefront, Zernike Polynomials, Optimiza-
       tion, Aberrations.


1      Introduction

At the stage of manufacturing optical systems, one of the most important tasks is
quality of optical system elements assembly and alignment control. There are various
methods for solving this problem, for example, interference methods. However, in
some cases, one of which is the alignment of the telescope during its operation, other
control methods are required [1, 2], for example control by point image (point spread
function) or the image of another known object. Among the advantages of using this
method for telescopic systems control is economic expediency. Firstly, there is no
need for external intervention in a working telescope. Secondly, equipment that al-
lows recording the point spread function has the lowest cost in comparison with inter-
ferometric control methods equipment.
__________
Copyright Β© 2020 for this paper by its authors. Use permitted under Creative Commons Li-
cense Attribution 4.0 International (CC BY 4.0).
2 O. Kalinkina, T. Ivanova and J. Kushtyseva


   Wavefront reconstruction algorithms have been widely developed in holography,
adaptive optics, microscopy, and other fields [3]. Some algorithms restore the distri-
bution of the wavefront in the form of a sample of values, others allow you to restore
the describing parameters. A necessary condition for the operation of such algorithms
is the assumption that in the process of wavefront propagation through the optical
system, only the phase component changes, while the amplitude component remains
constant.
   The Gerchberg – Saxton algorithm, and its modifications are the most frequently
used and found in the literature. It is an iterative reconstruction of the phase infor-
mation from the known amplitudes of the sampled image and diffraction plane inten-
sity pictures measured. By given the amplitude of a signal and its Fourier transform,
the algorithm attempts to recover the phase information for the Fourier transform, and
thereby reconstruct the signal.
   The algorithm alternates between Fourier and inverse Fourier transforms, using the
input amplitudes at each iteration to improve the phase estimates. Using this idea,
many algorithms were developed with the next inputs data - the two or more related
images that differ in a certain phase diversity. It is noted that using more images in-
creases the speed and convergence of the algorithms.
   In this paper, we solve the problem of reconstructing the wavefront from only one
known point image. The purpose of this work is to develop an algorithm for determin-
ing the wavefront parameters, which are the Zernike polynomials coefficients of the
wave function expansion, by known point spread function.


2      Method

2.1    Zernike polynomials
One of the most common ways to describe the wavefront profile is a Zernike polyno-
mials fitting coefficients (1):
                        π‘Š (𝜌, πœ‘) = βˆ‘π‘› βˆ‘π‘š πΆπ‘›π‘š π‘π‘›π‘š (𝜌, πœ‘)                             (1)

where n, m are the indices of polynomials with -n ≀ m ≀ n, n + m is even; Cnm is the
fitting coefficient; Znm (ρ, Ο†) is the Zernike polynomial with the corresponding indices
n, m; Ο† is the azimuthal angle; ρ is the radial distance (1 β‰₯ ρ β‰₯ 0).
    Each Zernike fitting coefficient is representing different types of optical system
aberrations. Table 1 shows the correspondence of Zernike polynomials to different
types of 3rd order aberrations. These Zernike coefficients are linearly independent,
thus individual aberration contributions to an overall wavefront may be isolated and
quantified separately.
    It should also be noted that another advantage of the Zernike polynomials is the
stability to computational errors in the process of modeling optical systems on a com-
puter or in the mathematical processing of measurement results.
                           Wavefront Parameters Recovering by Using Point Spread Function 3


                                 Table 1. Zernike polynomials
        Zernike polynomials                     Aberrations
        𝑍20 (𝜌, πœ‘) = 2𝜌2 βˆ’ 1                    Defocus
        𝑍40 (𝜌, πœ‘) = 6𝜌4 βˆ’ 6𝜌2 + 1              Spherical
        𝑍1βˆ’1(𝜌, πœ‘) = 𝜌 sin πœ‘                    Y Tilt
        𝑍11 (𝜌, πœ‘) = 𝜌 cos πœ‘                    X Tilt
        𝑍2βˆ’2(𝜌, πœ‘) = 𝜌2 sin 2πœ‘                  45Β° Astigmatism
        𝑍22 (𝜌, πœ‘) = 𝜌2 cos 2πœ‘                  0Β° Astigmatism
        𝑍3βˆ’1(𝜌, πœ‘) = (3𝜌2 βˆ’ 2) sin 3πœ‘           Y Coma
        𝑍31 (𝜌, πœ‘) = (3𝜌2 βˆ’ 2) cos 3πœ‘           X Coma

2.2    Point spread function calculation
The point spread function (PSF) is a two-dimensional function describe an image of
point source. PSF can be calculating by inverse Fourier transform of the pupil func-
tion (2):
                                                                  2
                          β„Ž(πœ‚β€²π‘₯ , πœ‚β€²π‘¦ ) = [πΉβˆ’1 (𝑓0 (𝜌π‘₯ , πœŒπ‘¦ ))]                        (2)

where 𝑓0 (ρπ‘₯ , ρ𝑦 ) is the pupil function, ρπ‘₯ , ρ𝑦 are the canonical pupil coordinates,
Ξ·β€²π‘₯ , η′𝑦 are the image canonical coordinates.
   The pupil function can be described as (3):

                           𝜏 1/2 (ρπ‘₯ , ρ𝑦 ) βˆ™ 𝑒 2πœ‹π‘–π‘Š(ρπ‘₯ ,ρ𝑦 ) , (ρπ‘₯ 2 + ρ𝑦 2 ) ≀ 1
      𝑓0 (ρπ‘₯ , ρ𝑦 ) = {                                                                (3)
                                                       0,       (ρπ‘₯ 2 + ρ𝑦 2 ) β‰₯ 1

where 𝜏(ρπ‘₯ , ρ𝑦 ) βˆ’ is the pupil transmission function, π‘Š(ρπ‘₯ , ρ𝑦 ) is the wave aberra-
tion function, the expression (ρπ‘₯ 2 + ρ𝑦 2 ) ≀ 1 defines the region inside the circle
pupil.
   The aberration-free PSF of optical systems of diffraction-limited quality is repre-
sented by a diffraction scattering circle, which is called an Airy disk (Figure 1a), with
a central maximum at a point corresponding to an ideal image. Aberrations of the
optical system and alignment errors have a noticeable effect on the image of a point
object. Thus, in real optical systems, the form of PSF differs from the aberration-free
one and have more complex structure. In Figure 1b, one can see the PSF recorded
during the control of a real telescopic system.
4 O. Kalinkina, T. Ivanova and J. Kushtyseva




                                  Fig. 1a. Aberration-free PSF




                             Fig. 1b. PSF in real telescopic system

2.3    Algorithm
The direct problem in modeling optical systems is to calculate the PSF from a known
set of aberrations represented by the corresponding Zernike polynomials.
    The inverse problem is to restore the wavefront in the form of Zernike polynomials
fitting coefficients from the known PSF intensity distribution. The inverse problem
can be solved using parametric optimization. The parameters are the coefficients for
Zernike polynomials. The minimized function is the standard deviation of the refer-
ence PSF from the PSF calculated at each optimization step (4) (Figure 2).
                       1                               2
                           βˆ‘π‘₯β€² βˆ‘π‘¦β€² β€–β„Ž0 π‘₯′𝑦′ βˆ’ β„Žπ‘₯′𝑦′ β€– β†’ min                        (4)
                       2
                           Wavefront Parameters Recovering by Using Point Spread Function 5




                                   Fig. 2. Minimized function

In this work, we use only four polynomials to describe wave front: astigmatism (c22
and s22 coefficients), and coma (c31 and s31 coefficients).
   Modeling and solving the optimization problem is carried out using the Ceres
Solver [5] library for C++ with open source code developed by Google.
   Solving the optimization problem using Ceres Solver is (5):
               1                            2
                   βˆ‘π‘– ‖𝑓𝑖 (π‘₯𝑖 1 , π‘₯𝑖 2 … π‘₯𝑖 π‘˜ )β€– β†’ min, βˆ’ ∞ < π‘₯𝑗 < +∞                        (5)
               2                                   π‘₯

where 𝑓𝑖 (π‘₯𝑖 1 , π‘₯𝑖 2 … π‘₯𝑖 π‘˜ ) is the objective function, π‘₯𝑖 1 , π‘₯𝑖 2 … π‘₯𝑖 π‘˜ are optimization pa-
rameters.
   As method efficiency test, we set aberration coefficients (c22, s22, c31, s31), then
calculate PSF. This PSF became input for optimization and obtained during optimiza-
tion coefficients can be compare with initial ones. If result coefficients differ from
initial ones less, then 10-5 – we can say method work correctly.


3      Defocusing influence on the method convergence

The algorithm application to focused PSF, produce in some cases incorrect determina-
tion of the astigmatism coefficients (c22, s22) signs, so quite small number of PSFs
with various combinations of the initial coefficients were successfully restored.
   Avoiding this problem is using PSF with defocus, describe by Zernike polynomial
coefficient c20. In the result sign of astigmatism is defining correctly and number of
successfully restored combination of various aberration coefficients is increased.
   Numerical experiments to define best defocusing value (c20 coefficient value) for
stable algorithm work and successful restore aberration coefficients were performed.
Thus, when checking algorithm application to a large number of modeled PSFs, the
optimal value of the defocus was determined as range from 0.1 to 0.2 wavelength
(absolute value). In this case aberration coefficients were successfully restored for
aberration coefficients less than 0.5 wavelength (absolute value).
6 O. Kalinkina, T. Ivanova and J. Kushtyseva


                                   Table 2. Optimization result

                               initial     optimization      initial    optimization
            с20 = 0,1λ
                               values          result        values         result

             c31[Ξ»]           0,05689         0,05689       0,31352         0,31352

              s31[Ξ»]          0,07813         0,07813       0,35279         0,35279
             c22[Ξ»]           0,09347         0,09347       0,32016         0,32016

              s22[Ξ»]          0,06019         0,06019       0,39148         0,39148
           Number of
                                          5                            14
           iterations

PSF with aberration more than 0.5 wavelength have a more complex mathematical
form, which in some cases impossible to restore by optimization. But it was finding
out that for every combination of coefficients c22, s22, c31, s31 is possible to find
appropriate defocusing value for successful definition, and this value could be differ-
ent for different coefficients combination. Figure 3 shows the PSF examples corre-
sponding to one set of coefficients (c22 = 0.2 Ξ», s22 = 0.6 Ξ», c31 = 0.6 Ξ», s31 = 0.4 Ξ»)
with different defocus values c20. The successful restoration were only in the one
value c20 = 0.6 Ξ» (highlighted in the figure).




                       Fig. 3. Example of PSF with manually selected defocus
                          Wavefront Parameters Recovering by Using Point Spread Function 7


4      Conclusion

The algorithm presented in the work is intended to determine the wavefront parame-
ters from the point spread function. Focused PSF does not provide enough infor-
mation to estimate aberrations, and the presence of defocusing simplifies the determi-
nation of aberration coefficients. To determine small aberrations (less than 0.5 wave-
length absolute value), the optimal defocus is in the range of 0.1-0.2 wavelength abso-
lute value.
   PSF with aberration more than 0.5 wavelength is more difficult to restore, but for
every combination of coefficients c22, s22, c31, s31 is possible to find appropriate
defocusing value for successful definition. However, this defocus value must be
searching for each case separately.


References
 1. Klebanov Y.M., Karsakov A.V., Khonina S.N., Davydov A.N., Polyakov K.A.: Compen-
    sation of wavefront aberrations in telescopes of spacecraft with adjustment of the tempera-
    ture field of the telescope. Computer Optics, Volume 41, No. 1 (2017).
 2. Krist J. E., Burrows C. J. Phase-retrieval analysis of pre- and post-repair Hubble Space
    Telescope images Applied optics – 1995, Vol. 34, No. 22 (1995).
 3. Brady G.R. Application of phase retrieval to the measurement of optical surfaces and
    wavefronts: Submitted in partial fulfillment of the requirements for the degree Doctor of
    Philosophy. – University of Rochester, Rochester New York., (2008).
 4. Gerchberg R.W., Saxton W.O. A practical algorithm for the determination of phase from
    image and diffraction plane pictures OPTIC, Vol. 35, No. 2 (1972).
 5. Ceres Solver – A Large Scale Non-linear Optimization Library, http://ceres-solver.org, last
    accessed 2019/02/13.