**Learn more.**

# What is a Point Spread Function

Summary:

This article explains:

- What is a Point Spread Function?
- The Spot Diagram
- The FFT PSF
- The Huygens PSF
- How to observe the Huygens integration using a Non-Sequential lens and detector
- How to choose between using the Huygens and FFT based PSF for a Sequential lens

Authored By:

Ken Moore

Published On:

07/22/2005

Sample File:

Applies to:

Ray Tracing Theory

Article:

**Introduction**

**What is a Point Spread Function?**

The Point Spread Function (PSF) of an optical system is the irradiance distribution that results from a single point source in object space. A telescope forming an image of a distant star is a good example: the star is so far away that for all practical purposes it can be considered a point. Although the source may be a point, the image is not. There are two main reasons. First, aberrations in the optical system will spread the image over a finite area. Second, diffraction effects will also spread the image, even in a system that has no aberrations.OpticStudio has three basic types of PSF calculations: a eometric (no diffraction) Spot Diagram, and the diffraction-based FFT and Huygens PSF. This article will discuss the basic theory and provide some guidance as to the proper use of each type of PSF.

**The Spot Diagram: a geometric PSF**

One of the most basic analysis features in OpticStudio is the Spot Diagram. This feature launches many rays from a single source point in object space, traces all the rays through the optical system, and plots the (x, y) coordinates of all the rays relative to some common reference.The sample optical system used here is a single parabolic F/5 mirror with a focal length of 50 mm. The object is at infinity. This system is a simplified Newtonian telescope, and the included sample file is PSF_Newtonian.ZMX. Here is what the optical system looks like:

The Spot Diagram for two field points, one on axis and the other at an angle of 2 degrees, is shown below.

Note the Spot Diagram is a collection of points, with each point representing a single ray. There is no interaction or interference between the rays. The Spot Diagram is very effective at showing the effects of the geometric, or ray aberrations of the telescope. The off axis geometric PSF clearly shows the coma and astigmatism of the system. On axis, however, the Spot Diagram predicts perfect imagery. Is this an accurate representation of the optical system performance? To answer this question for the Spot Diagram results, we need to compare the spot distribution to the diffraction limited response.

A quick way to compare the geometric aberrations to the diffraction limit is to add an Airy Disk reference ellipse to the Spot Diagram.

**Open**the Settings and

**check Show Airy Disk**:

Now the Spot Diagram will indicate the size of the Airy Disk relative to the geometric spot distribution:

On axis, the spot is much smaller than the Airy Disk, while off axis the spot is much larger than the Airy Disk. This indicates the Spot Diagram is a useful and reasonable indicator of performance off axis only. To compute a more accurate PSF both on and off axis, a consideration of diffraction is required.

Generally speaking, the Spot Diagram is useful if the aberrations are large compared to the diffraction limited performance of the system.

**The FFT PSF**

The Fast Fourier Transform (FFT) algorithm has been widely applied to frequency analysis of many electrical and optical systems. Conceptually, the FFT decomposes a spatial distribution into a frequency domain distribution. An excellent discussion of Fourier optics can be found in reference [1] at the end of this article. There is also a summary of diffraction theory in the chapter "Physical Optics Propagation" in the OpticStudio Help System, reference [2]. Both of these references describe Fresnel and Fraunhofer diffraction theory.Most optical imaging systems meet the simplifying assumptions necessary for the Fraunhofer diffraction theory used by the FFT PSF algorithm. The main assumptions are:

- The F/# is large enough so that scalar diffraction theory applies
- The region over which the diffraction PSF has significant energy is small compared to the distance from the exit pupil of the optical system to the image surface.
- The exit pupil is not significantly distorted with respect to the entrance pupil. This means a uniform distribution of rays on the entrance pupil remains reasonably uniform on the exit pupil.
- The sampling is set high enough to accurately model the PSF
- The chief ray incident upon the image surface is close to normal incidence

The FFT PSF of an optical system is computed as follows. A grid of rays is traced from the source point to the exit pupil. For each ray, the amplitude and optical path difference is used to compute the complex amplitude of a point on the wavefront grid at the exit pupil. The FFT of this grid, appropriately scaled, is then squared to yield the real valued PSF. If the computation is polychromatic, the PSF's are summed incoherently.

To compute an FFT PSF for a Sequential system, choose

**Analyze...PSF...FFT PSF**from the OpticStudio main ribbon bar. A sample FFT PSF for the on-axis field point of the Newtonian telescope sample file is shown below. Note, the settings have been modified from the default settings, which is discussed shortly.

Note the familiar Airy Disk shape. This is the expected result for the Newtonian, which is aberration free for the on-axis field point.

To generate the picture above, the FFT PSF settings dialog should look like this:

The sampling refers to the grid of rays traced to the entrance pupil. Internally, OpticStudio doubles the size of the grid, filling the region outside of the entrance pupil with zero valued data. Because of this doubling, the output PSF is always on a grid with twice as many points as the sampling grid. If the aberrations are reasonably small, the region of interest is concentrated near the center of the plot. Rather than plot all of these near-zero amplitude points, the display grid may be selected to be smaller than the total grid computed.

There are many ways to display the same underlying PSF data. Try the settings shown below:

Note Display is 128 x 128, Field is 2, Type is Logarithmic, and the Show As is set to False Color. Here is the resulting PSF:

**The Huygens PSF**

Conceptually, the Huygens PSF is computed by converting each ray on the Spot Diagram into a small plane wave. Recall that a ray models a small piece of a plane wave, and that the ray locally is normal to the wavefront in isotropic media. The plane wave has an amplitude, phase, and direction determined from data associated with the ray from which it is generated. The total irradiance at any point on the image surface may be determined by coherently summing all of the plane waves represented by all of the rays traced. The diffraction based PSF is given directly by this integration over all the rays.While most diffraction analyses in OpticStudio assume scalar diffraction theory applies (F/# not too small), the Huygens method can account for the vectoral nature of the electric field if the Use Polarization switch is enabled. All Huygens based analyses consider the full polarization vector and polarization phase aberrations. These computations work by computing data for the Ex, Ey, and Ez components of the polarized electric field separately, then incoherently summing the results. The polarization phase aberrations induced in each orthogonal component of the electric field are considered as any other phase aberration.

Virtually all imaging systems meet the simplifying assumptions necessary for computing the Huygens PSF. The assumptions are:

- The sampling is set high enough to accurately model the PSF

- The image surface is significantly tilted with respect to the chief ray
- The exit pupil is significantly distorted with respect to the entrance pupil

To compute a Huygens PSF for a Sequential system, choose

**Analyze...PSF...Huygens PSF**from the drop-down menu. The Huygens PSF may also be computed for Non-Sequential Component (NSC) systems and this will be discussed shortly. Note the FFT PSF cannot be computed for NSC systems.

The key user definable parameters for the Huygens PSF are the Pupil Sampling, Image Sampling, and Image Delta. These parameters can be set on the Huygens PSF settings dialog.

**Open the settings box and change the default settings as shown:**

The Image Delta is the image point spacing in micrometers. The total size of the region where the PSF is computed is the product of the Image Delta and the Image Sampling.

Here is the Huygens PSF for the same Newtonian telescope on axis:

And off axis (change the Field selection to 2):

The larger the number of rays and image points, the greater the resolution and accuracy of the resulting PSF, at the expense of a longer computation time.

**Visualizing the Huygens integration**

One way to visualize this integration process is to observe the effects of coherent summing of one ray at a time. This can be accomplished with a coherent detector in the Non-Sequential Components feature of OpticStudio. From the supplied article sample files, **open HPSF_Integration.ZMX.**

This file consists of an elliptical source, a singlet lens, and a Detector Rectangle object. The source generates random rays over a circular region. All the rays exit parallel to the local Z axis. This source models a collimated source or distant point source. Note the number of Layout Rays is set to 20, while the number of Analysis Rays is set to 1. This latter setting will allow one ray at a time to be traced as will be discussed shortly. The lens is a simple singlet, placed to bring the collimated rays to a good focus on the detector. The detector is defined to be an absorber, with 120 x 120 pixels.

Note that the detector object Parameter 11, the PSF Wave # is set to 1:

This special mode allows the detector to perform the coherent Huygens PSF integration. Every ray that strikes the detector is converted into a local plane wave that illuminates every pixel on the detector, and the coherent amplitude of the plane wave at every pixel is added to the coherent amplitude already detected. This allows one ray at a time to be traced, if desired, so the effects of summing individual rays can be seen.

**Integrating one ray at a time**

To see this integration, **open the sample file HPSF_Integration.ZMX**, and then choose

**Analyze...Detectors Viewer**. In the settings of the Detector Viewer, enable Auto Update. To trace rays for analysis run the Ray Trace by going to

**Analyze > Ray Trace**. Click on Clear & Trace to trace rays. Because the Source object defines only 1 Analysis Ray, a single random ray is traced and the detector is updated. Click on Trace only (so the detector is not cleared) to trace a second ray. The two rays now traced will coherently interfere like two plane waves making an angle with respect to each other, resulting in a fringe pattern on the detector. Because the rays are random, the fringe pattern will be different every time, and so will not look exactly like the picture below.

Each time Trace is pressed in the Ray Trace dialog box, another ray is added to the sum shown in the Detector Viewer. After 10 rays have been traced the diffraction PSF begins to emerge.

After about 40 rays, features such as the Airy ring can be seen forming.

It takes a few hundred rays before the PSF reasonably converges to the final PSF result.

**Tracing many rays at once**

The only reason to trace one ray at a time is to visualize what the integration is doing. To trace many rays at once, navigate to the Non-Sequential Component Editor (NSCE), and change the number of Analysis Rays on the Source Ellipse object from 1 to 500:Now reopen the Ray Trace control and press Clear & Trace. All 500 rays will be traced at once, and the resulting PSF will be displayed in the Detector Viewer window.

Even though the rays are randomly selected the PSF converges to the correct Airy pattern. (Note, this particular lens is diffraction limited).

**When to use the Spot Diagram, FFT PSF, and Huygens PSF**

Use the Spot Diagram when:
- The geometric aberrations are large compared to the diffraction effects. This can be checked using the Airy Disk scale option on the Spot Diagram.

- The chief ray makes a small angle with respect to the image surface normal.
- The exit pupil is not significantly distorted with respect to the entrance pupil.
- Speed is more important than absolute accuracy.

- Maximum accuracy is desired

**Summary**

# This article has described the Spot Diagram, FFT PSF, and Huygens PSF. In summary:

- Spot Diagrams show ray aberrations, but do not consider diffraction.
- The FFT PSF considers diffraction, is applicable to most optical systems, but makes a few assumptions.
- The Huygens PSF considers diffraction, is applicable to virtually all imaging systems, and makes fewer assumptions than the FFT PSF.
- The Huygens PSF may be used with Non-Sequential systems, even those that do not form images.

**References**

1. Goodman, Joseph W., Introduction to Fourier Optics, McGraw Hill2. OpticStudio Help System Zemax LLC, Kirkland, Washington, United States