This is just another image taken from the RCSDK Unit Testing system. The chart displays different polygonal diaphragms at different f-stop values. Doubling the f-stop number, halves the surface light can pass through.
Glare in photography is due to Fraunhofer diffraction as light from distant objects passes through the camera diaphragm.
There is a magical connection between Fraunhofer diffraction (physics) and the Fourier Transform (math). As a matter of fact, the intensity of the Fraunhofer diffraction pattern of a certain aperture is given by the squared modulus of the Fourier Transform of said aperture.
Assuming a clean and unobstacled camera, the aperture is the diaphragm shape. Here you have the diffraction patterns that correspond to some basic straight-blade (polygonal) diaphragms.
Interestingly, the Fourier Transform produces one infinite decaying streak perpendicular to each polygon edge. When the number of edges is even, the streaks overlap in pairs. That is why an hexagonal diaphragm produces 6 streaks, and an heptagonal diaphragm produces 14.
The leftmost pattern happens to be the Airy disk. The Airy disk is a limit case where the number of polygon edges/streaks is infinite.
The examples above were generated at 256×256. The visual definition of the pattern naturally depends on the resolution of the buffers involved in the computation of the Fourier Transform. However, note that the FT has an infinite range. This means that for ideal polygonal shapes, the streaks are infinitely long.
In the practical case, buffers are far from infinite, and you hit one property of the Fourier Transform that is often nothing but an annoyance: the FT is cyclic. The image below depicts what happens when one pumps up the intensity of one of the glare patterns obtained above: the (infinite) streaks, warp-around the (finite) FT buffer.
Cyclic glare pattern
Bonus: Here’s some real-life glare I captured this evening at the European Athletics Championships.
This is a visualization of the behavior of a ray of light as it hits a dielectric interface.
Some key phenomena which show up in the video are:
The Fresnel term (reflection vs. refraction).
The Index of Refraction.
The critical angle.
Total Internal Reflection (TIR).
As nd increases the Index of Refraction becomes higher, and so does the Fresnel term, which defines the proportion between reflected and refracted light. The critical angle becomes higher too, so there is more Total Internal Reflection.
When a ray of light hits an interface (assuming an ideal surface), all incident light must be either reflected or refracted. The Fresnel term (controlled by nd) tells how much light is reflected at a given incident angle. All the light that is not reflected is refracted, so both amounts (reflection and refraction) always add up to the total amount of incident light.
The Fresnel term approaches 1 at grazing angles (all light is reflected and nothing is refracted, regardless of nd) and is low (the lower the smaller the nd) at perpendicular angles (more light is refracted).
As a rule of thumb:
The lower the nd, the lower the Index of Refraction, and the more transparent the surface (more glass/liquid-like).
The higher the nd, the higher the Index of Refraction, and the more reflective the surface (more metallic/mirror-like).
Metals: nd=20+. (approx. complex IoR)
Ideal mirror: nd=infinity.
When a ray of light enters a medium with an nd lower than the nd of the previous medium, there is an angle at which the Fresnel term becomes 1 and beyond which light won’t refract anymore. This angle is called critical angle, and beyond it, the surface behaves like a perfect mirror, reflecting back all incident light. This effect is called Total Internal Reflection (TIR).
NOTE: The video was generated with an odd aspect ratio as it is a concatenation of 3 interfaces with different nd values. There’s also some text overlaid, so the video is best viewed full-screen / 720p HD.