9. Photographic bokeh

Problem Description & Analysis
Official Problem Statement
Bokeh is an effect observed in photographs that show objects at different distances from the camera and have both sharp and out-of-focus areas. If a slit is placed in front of the lens of the camera, the image may have unusual anisotropic distortions in out-of-focus areas, while in-focus areas remain undistorted and sharp. Investigate how the properties and sharpness of resulting images depend on relevant parameters.
Geometric Optics — Circle of Confusion
When a point source lies outside the camera’s focal plane, the cone of light from the lens forms a Circle of Confusion (CoC) on the sensor instead of a point:
$$c = frac{f^2}{N,d_o}left|frac{d_o – d_text{focus}}{d_text{focus}}right|$$
• N — f-number (= f/D_aperture)
• D = f/N — aperture diameter (m)
• d_o — object distance from lens (m)
• d_focus — distance the camera is focused at (m)
• c — CoC diameter on sensor (m)
Thin-lens law to convert object distance to image distance:
$$frac{1}{d_o} + frac{1}{d_i} = frac{1}{f}$$
Depth of Field
Depth of Field (DoF) is the range of object distances for which CoC stays below an acceptable threshold c_max (typically c_max ≈ d_sensor/1500 for digital cameras):
$$text{DoF} approx frac{2,N,c_text{max},d_o^2}{f^2}$$
Key relationship: smaller N (wider aperture) → shallower DoF → stronger bokeh.
| f-number | Aperture dia. (f=50mm) | Depth of field | Bokeh |
|---|---|---|---|
| f/1.4 | 35.7 mm | Very shallow | Very large |
| f/2.8 | 17.9 mm | Shallow | Large |
| f/5.6 | 8.9 mm | Moderate | Moderate |
| f/11 | 4.5 mm | Deep | Small |
| f/22 | 2.3 mm | Very deep | Gone + diffraction |
Fourier Optics — Bokeh Shape
In Fraunhofer (far-field) diffraction, the intensity distribution at the focal plane is the squared magnitude of the 2D Fourier transform of the aperture function A(u,v). This is the Point Spread Function (PSF):
$$text{PSF}(x,y) = left|mathcal{F}{A(u,v)}right|^2$$
For a circular aperture of diameter D:
$$text{PSF}(r) = left[frac{2J_1(pi D r/lambda f)}{pi D r/lambda f}right]^2$$
where J₁ is the first-order Bessel function. First zero at r = 1.22λf/D (Rayleigh criterion).
• Circular aperture → Airy disc (disc + concentric rings) — smoothest bokeh
• Hexagonal aperture → hexagonal disc — common in mid-range lenses
• n-sided polygon → n “sword” streaks radiating from bright points
• Star/heart → Fourier transform of that shape (decorative)
Diffraction and Optimal Aperture
At very small apertures, diffraction dominates over geometric blur. The optimal f-number balancing geometric aberrations and diffraction is:
$$N_text{opt} approx sqrt{frac{f cdot c_text{max}}{1.22,lambda}}$$
For f = 50mm, c_max = 0.03mm, λ = 0.55μm: N_opt ≈ f/8.
Cat’s-Eye Bokeh
Off-axis point sources produce elliptical “cat’s-eye” bokeh due to mechanical vignetting: the lens barrel clips the effective aperture as seen from the edge of the sensor, making it elliptical rather than circular. This effect is desirable in cinematic lenses.
Experimental Setup
Constructing aperture filters
- Cut aperture shapes (circle, hexagon, heart, star) from black card stock.
- Attach to the lens front or hold in a filter holder.
- Photograph a background of point light sources (LED arrays, city lights at night).
- Keep focused object distance fixed; vary the background defocus distance.
Quantitative measurements
- Measure CoC diameter at various defocus distances; compare with formula.
- Measure DoF vs. f-number and verify the N·d_o²/f² scaling.
- Extract PSF by photographing a single LED from far away; compare FFT of bokeh image with aperture shape.
Core of the Problem — The Slit and Anisotropic Distortion
The problem statement specifically asks about a slit placed in front of the lens that causes “unusual anisotropic distortions.” This anisotropy follows directly from the 2D Fourier transform of the aperture function:
• Aperture: $A(u,v) = text{circ}(r/R)$
• Fourier transform: Airy disc pattern (disc + concentric rings)
• Isotropic: rotationally symmetric — round bokeh in all directions
• Aperture: $A(u,v) = text{rect}(u/w)cdottext{rect}(v/H)$ with $H gg w$
• Fourier transform: $text{sinc}(wx/lambda f)cdottext{sinc}(Hy/lambda f)$
• Anisotropic: PSF is stretched in the $x$-direction (perpendicular to slit)
PSF width in each direction is inversely proportional to the aperture dimension in that direction:
$$Delta x_text{PSF} = frac{lambda f}{w}, qquad Delta y_text{PSF} = frac{lambda f}{H}$$
Since $H gg w$, we have $Delta x gg Delta y$ — the PSF is stretched horizontally (perpendicular to the slit). Out-of-focus points appear as elongated horizontal streaks on the sensor instead of circles.
Slit Aspect Ratio and Anisotropy
$$text{Bokeh stretch ratio} = frac{Delta x_text{PSF}}{Delta y_text{PSF}} = frac{H}{w}$$
A slit with $H/w = 10$ produces bokeh stretched 10× in the transverse direction. This linear relationship between slit geometry and bokeh distortion is directly testable.
| Aperture type | PSF / Bokeh shape | Isotropy |
|---|---|---|
| Circle | Airy disc + rings | Fully isotropic |
| Vertical slit | Horizontal line (sinc²) | Anisotropic — transverse stretch |
| Hexagon | Hexagonal disc | Nearly isotropic (6 axes) |
| Triangle | Disc + 3 lobes | Anisotropic (120°) |
| $n$-point star | $n$ radial spikes | Anisotropic ($360°/n$) |
Interactive Python Simulation — Aperture Shapes and PSF Patterns
This simulation computes the 2D Fourier transform of four aperture shapes and shows the corresponding bokeh (PSF) patterns:
- Slit: PSF is a narrow horizontal line — out-of-focus highlights become horizontal streaks (this IS the anisotropic distortion the problem asks about).
- Circle: PSF is fully rotationally symmetric — round isotropic bokeh.
- Hexagon: hexagonal PSF — common in commercial lenses with 6-blade apertures.
- Core law: PSF width ∝ λf / aperture dimension — smaller aperture dimension → larger PSF in that direction.
References
- Goodman, J.W. (2005). Introduction to Fourier Optics, 3rd ed. Roberts & Company.
- Hecht, E. (2016). Optics, 5th ed. Pearson.
- Born, M. & Wolf, E. (2013). Principles of Optics, 7th ed. Cambridge University Press.
- Nasse, H.H. (2010). Depth of Field and Bokeh. Carl Zeiss Camera Lens Division Technical Note.
- IYPT 2027 Problem 9. iypt.org
Technical Glossary
| Term | Persian equivalent | Definition |
|---|---|---|
| Bokeh | بوکه | The aesthetic quality of out-of-focus blur in photography; from Japanese 暈け (haze/blur) |
| Circle of Confusion (CoC) | دایرهی گیجی | The disk formed on the sensor by an out-of-focus point; its shape mirrors the aperture shape |
| Point Spread Function (PSF) | تابع گسترش نقطه | The image of an ideal point source; describes how any out-of-focus point is smeared by the lens system |
| Aperture | دیافراگم | The opening through which light enters the lens; its shape (circle, slit, polygon) determines bokeh shape |
| Depth of Field (DoF) | عمق میدان | The range of distances over which the CoC stays below the human perception threshold |
| Fraunhofer diffraction | پراش فراونهوفر | Far-field diffraction; diffraction pattern = Fourier transform of the aperture — circle → Airy disc; slit → elongated streak |
| F-number (f-stop) | عدد f | Ratio of focal length to aperture diameter: $N = f/D$; smaller N = wider aperture = more blur |
| Anisotropic bokeh | بوکهی ناهمسانگرد | Bokeh that differs in shape along different directions; a narrow vertical slit → horizontally elongated ellipses |
Related Images
Suggested Resources
Questions & Discussion
You must be an IYPT member and logged in to view or ask questions.
Log In
