Imagine a bucolic scene on a clear sunny day at the equator, sand warmed by the tropical sun with a typical irradiance () of about 1000 watts per square meter. As discussed earlier we could express this quantity as illuminance in lumens per square meter () – or as a certain number of photons per second () over an area of interest ().
(1)
How many per unit area can we expect on the camera’s image plane (irradiance )?
In answering this question we will discover the Camera Equation as a function of opening angles – and set the stage for the next article on lens pupils. By the way, all quantities in this article depend on wavelength and position in the Field of View, which will be assumed in the formulas to make them readable, see Appendix I for a more formally correct version of Equation (1).
Spherical Cones and Lambertian Reflectance
Irradiance is not directional, meaning that the photon flux can arrive from any direction or even from multiple/extended sources, for example an overcast sky. What matters in this article is the number of photons incident on the relevant area of the object of interest, so that’s what we will refer to as , the subscript indicating a quantity referred to the object. Think of it as the output of a photodiode flush with the surface, counting every photon impinging on it, regardless of where it came from.
The object absorbs some photons and reflects some depending on its morphology and physical characteristics. Those reflected propagate in straight lines in air in all directions. Neighboring photons reflected from small uniform portions on the surface of the object () form conical volumes. The direction and relative number of photons within each cone depends on the object’s physical characteristics, their distribution the result of so-called specular, diffused or mixed reflection.
Figure 2 shows photons in air reflected from such a small sample area , the specific spherical cone chosen because it is the one that points directly towards the lens of the camera, which is what this article is concerned with.
We will assume that the object presents an ideal Lambertian surface with reflectance – so a total number of photons per unit area equivalent to will be reflected diffusely in a predictable fashion, in the set of all directions contained within the hemisphere above the small uniform reference area .
For a given conical half opening angle () the number of photons reflected into the relative cone will decrease the more the observed cone axis is tilted away from the direction perpendicular to the surface (its normal ). In fact with Lambertian reflectors the number of encompassed photons decreases with the cosine of the angle () between the surface normal and the axis of the cone – because less and less projected area is visible from the direction of interest as tilt increases. This is known as Lambert’s Cosine Law.
Figure 3 shows the relative number of photons that can be expected in the shown directions within the central slice of the set of all hemispherical directions: the longer the red line, the more the photons reflected in that direction. It turns out that many natural surfaces tend to behave this way when incident light is within about 40 degrees of the normal (angle in Figure 1). Beyond that reflections become more and more directional, hence mixed.
Photons Reflect into Spherical Caps
Since the lengths of the red arrows in Figure 3 represent a relative number of photons reflected in the given direction from the same small area on the object, clearly the larger the opening angle of the cone of interest (also known as its angular aperture), the larger the proportion of total reflected photons that will be part of it.
If we assume that all photons spreading out inside the cone towards the lens all depart from the same relatively small area on the object at the same time – like pellets spreading out from a shotgun, all traveling at equal velocity in a straight line – by the time they reach the lens they will have taken the shape of a spherical cap.
Figure 4 below shows an (almost) two-dimensional view of a spherical cap, looking like the arc of a circle with radius subtended by angle 2. With in radians the length of such an arc is by definition.
In three dimensions the area of the spherical cap on the cone would simply be the semi-arc rotated through 360 degrees – the arriving photons will be spread out evenly over it. Its area is
(2)
The bottom two approximations are valid for the small angles normally involved in photography (see Appendix III for exactly how valid). The last one is relevant to well corrected lenses that need to meet the Abbe Sine Condition, which forces working f-number in the center to .
Solid Angles are Normalized Spherical Caps
Just like radians are normalized for in one dimension it is useful to normalize the area of the cap for , a quantity that is then referred to as a solid angle :
(3)
Its units are radians rotated through 360°, formally steradians (). Per Equation (2)
(4)
We can see intuitively why this would be useful in our case, because for a given interacting irradiance the number of photons instantaneously reflected out through the cone from a small area on the object towards the lens depends only on the opening angle – hence solid angle – but stays otherwise the same from when it departs the surface as it spreads out into an enlarging spherical cap on its way to the lens.
Radiance and Luminance
The number of photons reflected per small area from the object per normalized spherical cap (the solid angle) in the direction of interest is denoted radiance (, in photometry Luminance). We can write this definition generically as follows
(5)
Since a Lambertian surface reflects all incident photons per unit area into the hemisphere above itself subject to reflectance , we can calculate constant by integrating over all possible solid angles (I’ll spare you the gory details[1]) obtaining
(6)
the subscript indicating quantities at the object as seen from the lens. Radiance/Luminance from a Lambertian surface is indeed only a function of reflected incident total power density and is therefore the same in all directions and at all distances.
It’s easy to prove to oneself that radiance/Luminance is conserved in radiation transfer, just check whether an image on a monitor appears equally bright from 300mm or from an order of magnitude farther away. Or whether a quasi-Lambertian gray card looks equally bright when tilted at different angles, within its limits of Lambertian diffuse reflection. This property of Luminance comes in handy in the discussion that follows.
The Camera’s Perspective
We now understand that the number of photons reflected towards the lens is by the definition in Equation (5) above
(7)
with subscript indicating quantities on the object side and
- Radiance/Luminance from the object ( for a Lambertian reflector);
- because the small reflecting area is ‘foreshortened’ by the cosine of in the direction of propagation since the recipient of those photons (say the camera) sees less of it the more it is tilted with respect to the surface normal;
- is a function of opening angle from the object plane to the edge of the pupil of the lens.
At typical photographic distances, all photons from uniform small reflecting area of interest in the neighborhood of the vertex of the lens-subtending cone will end up in the same spherical cap, in the limit this assumption is exact.
Assuming no losses through the optics, the same number of photons that arrive at the lens () will leave it on the way to the image plane (), with subscript indicating quantities on the image side.
In air, the setup there is the reciprocal (the conjugate) of that on the object side, with being constant and the solid angle a function of opening angle . Per geometrical optics, area on the image plane near the vertex of the cone of arriving photons will be a (de)magnified version of area on the object from which they left, with lens magnification typically less than one. Appendix II has some further details on magnification.
Bringing it All Together: the Camera Equation
So with an ideal lens with no losses, the total number of photons per second arriving on the sensing plane in air is
(8)
because of conservation of energy and reciprocity. Since radiance/Luminance is conserved, and the number of photons per unit area near the vertex of the cone on the image plane (sensor irradiance ) is from the definitions in Equations 1 and 8
(9)
Equation (4) tells us that is to a good approximation equal to , with the lens working f-number, so irradiance on the image plane is
(10)
This is known as the Camera Equation with a perfect lens, see Appendix I for a slightly less perfect lens.
Since Exposure is , with exposure time in seconds
(11)
a formula photographers know well and apply daily since it is the basis of the Exposure Value system. The approximation is pretty good at typical working f-numbers as shown in Appendix III.
With Lambertian reflectors the last two equations can be expressed as a function of incoming interacting irradiance instead of thanks to Equation (6), answering the question posed at the beginning of this article. Therefore, ignoring transmission losses, the photon flux per unit area at a particular spot on the sensor is
(12)
with surface reflectance, photon flux per unit area interacting with the object (irradiance/illuminance) and the lens working f-number. As mentioned up top these are typically spectral quantities valid both in radiometric and photometric contexts. A discussion of pupils is next.
PS. A similar result was obtained straight from a light source’s Radiant Exitance in the Appendix of the article on Photons Emitted From a Light Source.
Appendix I – Slightly More Formal Equations
As mentioned, incoming energy/photon flux () depends on the spectral power distribution of the illuminant, hence on wavelength (). So Irradiance in Equation (1) becomes
(13)
The limits of integration for wavelength in photography and colorimetry are the visible range, usually taken to be 380-780nm.
The incoming energy is reflected towards the camera by an object at the scene according to spectral reflectance . In daylight, Luminance in Equation (7) is reflected flux weighted by the photopic Luminosity Function per unit area per the solid angle subtended by lens aperture at the object
(14)
A great lens in real life may be close to unaberrated but it will have some transmission losses , that in stops are often almost negligible today. It will also most likely have some mechanical vignetting as a function of position on the imaging plane, defined by the angle of view , with theta equal to zero on the optical axis – and something approaching fall-off as light reaches the corners of the sensing area. So Luminance from an almost perfect lens would in fact be closer to
(15)
in , with the numerator lens-dependent, angle-of-view factor. That’s the Luminance that needs to be plugged into Equation (10). If is measured before the lens we then have the Camera Equation
(16)
Similarly for Exposure in Equation (11).
Appendix II – Throughput and Magnification
As we are assuming no losses, the number of photons reflected by the object towards the lens is the same that hits the sensing plane, that is or by definition
(17)
Since radiance/Luminance is conserved, cancels out and we are left with
(18)
The quantities on either side of the Equation above are known as Throughput (or Etendue). Throughput is obviously also conserved in radiation transfer. Rearranging the terms we get
(19)
and if we assume that the projected area of the object is circular or square with height
(20)
in other words lens magnification is equal to
(21)
with in radians. The last fraction to the right takes into consideration the Abbe Sine Condition, which well corrected lenses need to fulfill in order to mitigate aberrations like coma near the optical axis. This is the reason why the preferred expression for working f-number for such lenses in air is
(22)
with the image-referred numerical aperture. Then
(23)
with and the object referred numerical aperture and working f-number respectively.
Appendix III – Accuracy of Solid Angle Approximations
As we have seen in this article a solid angle is the area of the relative conical spherical cap per Equation (2), divided by the radius squared:
The last two are approximations valid only for small in radians.
With a circular Exit Pupil of diameter , the lens focused at infinity and a small opening angle – the spherical cap can be assumed to be almost flat, therefore a circular disk. In that case its area is the area of the aperture and the radius of the cone can be considered equal to published focal length , so another approximation for the solid angle often used in photography is
with published f-number . When can the small angle approximation be used? Figure 6 shows the error in stops for each solid angle formulation as a function of working f-number for a well corrected lens, per Equation (18).
Pretty good in practice over typical working f-numbers, since most photographers are content with 1/3 of a stop Exposure controls in-camera. You can check my math in the Matlab routine that produced the plot.
Notes and References
1. For a clear derivation of radiance/Luminance from Lambertian sources see Dr. Robert A. Showengerdt’s class notes at the University of Arizona, 2000.