# Pupil function

The **pupil function** or **aperture function** describes how a light wave is affected upon transmission through an optical imaging system such as a camera, microscope, or the human eye. More specifically, it is a complex function of the position in the pupil[1] or aperture (often an iris) that indicates the relative change in amplitude and phase of the light wave. Sometimes this function is referred to as the *generalized* pupil function, in which case pupil function only indicates whether light is transmitted or not.[2] Imperfections in the optics typically have a direct effect on the pupil function, it is therefore an important tool to study optical imaging systems and their performance.[3]

## Relationship with other functions in optics

The complex pupil function can be written in polar coordinates using two real functions:

- ,

where is the phase change (in radians) introduced by the optics,[3] or the surrounding medium.[4] It captures all optical aberrations that occur between the image plane and the focal plane in the scene or sample. The light may also be attenuated differently at different positions in the pupil, sometimes deliberately for the purpose of apodization. Such change in amplitude of the light wave is described by the factor .

The pupil function is also directly related to the point spread function by its Fourier transform. As such, the effect of aberrations on the point spread function can be described mathematically using the concept of the pupil function.

Since the (incoherent) point spread function is also related to the optical transfer function via a Fourier transform, a direct relationship exists between the pupil function and the optical transfer function. In the case of an incoherent optical imaging system, the optical transfer function is the auto correlation of the pupil function.[2][5]

## Examples

### In focus

In a homogeneous medium, a point source emits light with spherical wave fronts. A lens that is focused onto the point source will have optics that change the spherical wave front into a planar wave before it passes through the pupil or aperture stop. Often, additional lens element refocus the light onto a sensor or photographic film, by converting the planar wave front to a spherical wave front, centered onto the image plane. The pupil function of such an ideal system is equal to one at every point within the pupil, and zero out with it. In case of a circular pupil, this can be written mathematically as:

where is the pupil radius.

### Out of focus

When the point source is out of focus, the spherical wave will not be completely made planar by the optics, but will have an approximately parabolic wave front: . Such a variation in optical path length corresponds to a radial variation in the complex argument of the pupil function:

- otherwise.

It is thus possible to deduce the point-spread function of the out of focus point source as the Fourier transform of the pupil function.

### Aberrated Optics

The spherical wave could also be deformed by imperfect optics to an approximately cylindrical wave front: .

- otherwise.

Such a variation in optical path length will create an image that is blurred only in one dimension as is typical of systems with astigmatism.

## References

- Kidger, Michael J. (2001).
*Fundamental Optical Design*. SPIE Press, Bellingham, WA. Retrieved 10 November 2013. - Goodman, Joseph (2005).
*Introduction to Fourier Optics*(3rd ed, ed.). Roberts & Co Publishers. ISBN 0-9747077-2-4.CS1 maint: extra punctuation (link) - Fisher, Robert (2008).
*Optical System Design*(2nd ed, ed.). The McGraw-Hill Companies, Inc. ISBN 9780071472487.CS1 maint: extra punctuation (link) - Pawley, James B. (2006).
*Handbook of confocal microscopy*(3rd ed, ed.). Springer. ISBN 0-387-25921-X.CS1 maint: extra punctuation (link) - "Optics Course Notes on the calculation of the OTF from the Pupil function" (PDF). Retrieved 7 November 2013.