Angles and the Camera Equation

Imagine a bucolic scene on a clear sunny day at the equator, sand warmed by the tropical sun with a typical irradiance (E) of about 1000 watts per square meter.  As discussed earlier we could express this quantity as illuminance in lumens per square meter (lx) – or equivalently as a certain number of photons per second (\Phi) over an area of interest (\mathcal{A})

(1)   \begin{equation*} E = \frac{\Phi}{\mathcal{A}}  \; (W, lm, photons/s) / m^2 \end{equation*}

How many photons/s per unit area can we expect on the camera’s image plane (irradiance E_i )?

Figure 1.  Irradiation transfer from scene to sensor.

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 slightly more correct version of Equation (1).

Spherical Cones and Lambertian Reflectance

Irradiance is not directional, meaning that the photon flux on the surface of interest 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 E_o, the subscript o indicating a quantity referred to the object.

Think of E_o as the input to a photodiode flush with the surface, counting every photon impinging on it, regardless of where it came from.  The assumption is that in the limit every small differential area \mathcal{A} is flat so flux is collected from a hemisphere on top of it.

The object transmits/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 (\mathcal{A}) 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 \mathcal{A}, 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.

Figure 2.  When photons  arriving from an arbitrary direction strike an incremental surface area A on an object they are partly reflected in a general proportion and direction based  on the properties of the surface.  From there they spread out in the shape of conical volumes made up of a right circular cone with a spherical cap (not drawn to scale).  The angle between the  cone’s axis and the surface normal n is the same beta as in Figure 1.

We will assume that the object presents an ideal Lambertian surface with effective reflectance R – so a total number of photons per unit area equivalent to RE_o will be reflected diffusely in a predictable fashion, in the set of all directions contained within the hemisphere above the small uniform reference area \mathcal{A}.

For a given conical half opening angle (\theta) 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 \vec{n}).  In fact with Lambertian reflectors the number of encompassed photons decreases with the cosine of the angle (\beta) 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. Proportion of photons reflected by a Lambertian surface in each direction according to Lambert’s Cosine Law (central slice through the reflected hemisphere shown, perpendicular to the surface). The longer the red arrow, the more the reflected photons in that direction.  Image under license, courtesy of GianniG46, modified by me for this article.

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 \alpha 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 \mathcal{A} 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 r subtended by angle 2\theta.   With \theta in radians the length of such an arc is r2\theta by definition.

Figure 4.  The solid angle associated with spherical cones is the area of the cap after normalizing r to 1.  It is computed by rotating the semi-arc r.theta through 360 degrees around the axis.

In three dimensions the area of the spherical cap on the cone would simply be the semi-arc r\theta rotated through 360 degrees – the arriving photons will be spread out evenly over it.  Its area is

(2)   \begin{align*} \mathcal{A}_{cap} &= 2 \pi r^2 (1-cos\theta) = 4 \pi r^2 sin^2 (\frac{\theta}{2}) \\ &\approx  \pi r^2 \theta^2 \approx  \pi r^2 sin^2\theta \end{align*}

The bottom two approximations are valid for paraxial photography (see Appendix III for exactly how valid).  We will see further down that the last one is most relevant to radiation transfer.

Solid Angles are Normalized Spherical Caps

Just like radians are normalized for r in one dimension it is useful to normalize the area of the cap for r^2, a quantity that is then referred to as solid angle \Omega

(3)   \begin{equation*} \Omega = \frac{A_{cap}}{r^2}, \; sr \end{equation*}

Its units are radians rotated through 360°, formally steradians (sr).  Per Equation (2)

(4)   \begin{equation*} \Omega \approx  \pi \theta^2 \approx  \pi sin^2\theta, \; sr. \end{equation*}

We can see intuitively why this would be useful in our case, because for a given irradiance E_o interacting with a Lambertian surface the number of photons \Phi_o instantaneously reflected out through the cone from a small uniform area on the object \mathcal{A} towards the lens depends only on the opening angle \theta – hence solid angle \Omega – 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 (\Phi) reflected per small area (\mathcal{A}) on the object per normalized spherical cap (the solid angle \Omega) in the direction of interest is denoted radiance (L, in photometry Luminance).  We can write this definition generically as follows

(5)   \begin{equation*} L = \frac{\Phi}{\mathcal{A}\Omega}, \; photons/s/sr/m^2 \; \text{or} \; cd/m^2 \end{equation*}

the latter units apply to the Luminance familiar to photographers.  Since a Lambertian surface reflects all incident photons per unit area E_o into the hemisphere above itself subject to reflectance R, we can calculate constant L_o by integrating over all possible solid angles (I’ll spare you the gory details[1]) obtaining

(6)   \begin{align*} L_o = \frac{RE_o}{\pi}, \; photons/s/sr/m^2 \; \text{or} \; cd/m^2 \end{align*}

the subscript _o indicating quantities at the object as seen from the lens.  Radiance/Luminance L from a Lambertian surface is indeed only a function of reflected incident total power density E_o 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 observe 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/emitted towards the lens is by the  definition in  Equation (5)

(7)   \begin{equation*} \Phi_o = L_o \mathcal{A}_o \Omega}_o, \; photons/s \end{equation*}

with subscript _o indicating quantities on the object side and

  1. L_o Radiance/Luminance from the object, sometimes referred to as ‘brightness’ (= \frac{RE_o}{\pi} for a Lambertian reflector);
  2. \mathcal{A}_o = \mathcal{A} cos\beta because the small uniform reflecting area \mathcal{A} is ‘foreshortened‘ by the cosine of \beta 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;
  3. \Omega_o the solid angle function of opening angle \theta_o 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  \mathcal{A} in the neighborhood of the vertex of the lens-subtending cone are assumed to end up in the same spherical cap, in the limit this assumption is exact.

Figure 5.  Directionless irradiating energy E is funneled by a Lambertian reflector to the sensing plane through the lens via the two shown spherical cones and relative solid angles.

Assuming no losses through the optics, the same number of photons that arrive at the lens (\Phi_o) will leave it on the way to the image plane (\Phi_i), with subscript _i indicating quantities on the image side.

In air, the setup there is the reciprocal (the conjugate) of that on the object side, with L_i=L_o being constant and the solid angle \Omega_i a function of opening angle \theta_i.  Per geometrical  optics, area \mathcal{A}_i on the image plane near the vertex of the cone of arriving photons will be a (de)magnified version of area \mathcal{A}_o on the object from which they left, with lens magnification |m| typically less than one.

Refer to Appendix II for the consequences of these facts that lead to the concept of Throughput or Etendue.

Bringing it All Together: the Camera Equation

So assuming an ideal lens with no losses and geometrical solid angle \Omega_i, the total number of photons per second arriving on the sensing plane in air \Phi_i is

(8)   \begin{equation*} \Phi_o = \Phi_i = L_i \mathcal{A}_i  \Omega_i, \; photons/s \end{equation*}

because of conservation of energy and reciprocity.  Since radiance/Luminance is conserved, L_i = L_o = L and with paraxial approximation the number of photons per unit area near the vertex of the cone on the image plane (sensor irradiance E_i) is from the definitions in Equations 1 and 8

    \begin{equation*} E_i = \frac{\Phi_i}{\mathcal{A}_i } = L \Omega_i, \; photons/s/m^2 \end{equation*}

However, when dealing with radiation transfer the geometric solid angle is only valid with the paraxial approximation because, even on the optical axis, energy striking the sensor arrives from a set of directions bounded by the geometric solid angle cone with varying obliquity, hence foreshortening, resulting in an effective solid angle \omega_i.  Therefore

(9)   \begin{equation*} E_i  = \frac{\Phi_i}{\mathcal{A}_i } = L \cdot \omega_i, \; photons/s/m^2 \end{equation*}

As Brad Paul points out in an insightful comment at bottom, in the center of the sensor \omega_i = \pi sin^2(\theta_i) and, since lens working f-number in well corrected lenses that meet the Abbe Sine Condition is N_w \approx \frac{1}{2sin(\theta_i)} in air, the effective solid angle for irradiance is

(10)   \begin{equation*} \omega_i \approx \frac{\pi}{4N_w^2}. \end{equation*}

Irradiance in the center of the image plane then becomes a photographically meaningful

(11)   \begin{equation*} E_i \approx L \frac{\pi}{4N_w^2}, \; photons/s/m^2. \end{equation*}

This is known as the Camera Equation valid with a perfect lens with a circular aperture on the optical axis, see Appendix I for a slightly less perfect lens.

Since Exposure is H_i = E_i\cdot t, with t exposure time in seconds

(12)   \begin{equation*} H_i \approx \frac{\pi}{4}L\cdot\frac{t}{N_w^2}, \; photons/m^2 \end{equation*}

a formula photographers know well and apply daily since it is the basis of the Exposure Value system.

With Lambertian reflectors the last two equations can be expressed as a function of incoming interacting irradiance E_o instead of L thanks to Equation (6), answering the question posed at the beginning of this article.  Therefore, with a reflector parallel to a perfect lens, the photon flux per unit area in the center of the sensor is

(13)   \begin{equation*} E_i \approx \frac{RE_o}{4N_w^2}, \; photons/s/m^2 \end{equation*}

with R surface reflectance, E_o photon flux per unit area interacting with the object (irradiance/illuminance) and N_w 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  (\Phi) depends on the spectral power distribution of the illuminant, hence on wavelength (\lambda).  So Irradiance in Equation (1) becomes

(14)   \begin{equation*} E(\lambda) = \frac{1}{\mathcal{A}} \int_{\lambda_1}^{\lambda_2}\Phi(\lambda) d\lambda \; (W, lm, photons/s) / m^2 \end{equation*}

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 R(\lambda).  In daylight, Luminance in Equation (7) is reflected flux weighted by the photopic Luminosity Function V(\lambda) per unit area per the solid angle subtended by lens aperture at the object

(15)   \begin{equation*} L(\lambda) = \frac{1}{\mathcal{A}\Omega_o }\int_{380}^{780} \Phi(\lambda)R(\lambda)V(\lambda) d\lambda, \; cd / m^2 \end{equation*}

A great lens in real life may be close to unaberrated but it will have some transmission losses T, that in stops are often almost negligible today.  It will also most likely have some mechanical vignetting v(\alpha) as a function of position on the imaging plane, defined by the angle of view \alpha, with theta equal to zero on the optical axis – and something approaching cos^4(\alpha) fall-off as light reaches the corners of the sensing area.

So with Luminance conserved on the image side we then have the updated Camera Equation

(16)   \begin{equation*} E_i (\lambda,\alpha,N_w) \approx T v(\alpha) cos^4(\alpha) L(\lambda) \frac{\pi }{4N_w^2}, \; ph/s/m^2 \end{equation*}

Similarly for Exposure in Equation (12).

Appendix II – Throughput and Magnification

As we are assuming an ideal imaging system with no losses, the number of photons reflected by the object towards the lens is the same that hits the sensing plane, that is \Phi_i=\Phi_o or

(17)   \begin{equation*} L_i \mathcal{A}_i  \omega_i = L_o\mathcal{A}_o  \omega_o , \; photons/s \end{equation*}

with \omega the effective solid angles.  Since radiance/Luminance is conserved, L_i = L_o = L cancel out and we are left with

(18)   \begin{equation*} \mathcal{A}_i  \omega_i = \mathcal{A}_o  \omega_o, \; m^2 \cdot sr \end{equation*}

The quantities on either side of the Equation above are known as Throughput (or Etendue, or a multitude of other names depending on the discipline).  Throughput is obviously also conserved in radiation transfer.  It is independent of shutter speed because exposure time would be the same on both sides of Equation (17) so it would also cancel out.

We know from Equation (10) that effective solid angle \omega_i is equal to \frac{\pi}{4N_w^2}, with N_w the lens working f-number, so in photography it can be expressed as follows:

(19)   \begin{equation*} Throughput \approx \frac{\pi}{4} \frac{\mathcal{A}_i}{N_w^2}, \; m^2 \cdot sr \end{equation*}

\mathcal{A}_i} can be the size of a pixel for instance.

In a photographic context Etendue reflects the fact that, for a given radiance/ luminance, the photons from a small area on the object \mathcal{A}_o are ideally the same that make up its image \mathcal{A}_i on the sensing plane.  Rearranging terms in Equation (18) we get

(20)   \begin{equation*} \frac{\mathcal{A}_i}{\mathcal{A}_o}  = \frac{\omega_o}{\omega_i} \end{equation*}

and if we assume that the small projected area on the object is circular or square with height h_o

(21)   \begin{equation*} \frac{\mathcal{A}_i}{\mathcal{A}_o}  =  \frac{h^2_i}{h^2_o}  = m^2 = \frac{\pi sin\theta^2_o}{\pi sin\theta^2_i} \approx \frac{\pi\theta^2_o}{\pi\theta^2_i} \end{equation*}

In other words lens magnification m is equal to

(22)   \begin{equation*} |m| = \frac{h_i}{h_o} = \frac{sin\theta_o}{sin\theta_i} \approx \frac{\theta_o}{\theta_i} \end{equation*}

with half opening angles \theta in radians.  The preferred expression for working f-number for well corrected lenses in air that take into consideration the  Abbe Sine Condition is

(23)   \begin{equation*} N_w = \frac{1}{2NA_i} \approx  \frac{1}{2sin\theta_i} \end{equation*}

with NA_i the image-referred numerical aperture.  Then

(24)   \begin{equation*} |m| = \frac{h_i}{h_o} \approx \frac{NA_o}{NA_i} \approx \frac{N_w}{N_o}. \end{equation*}

with NA_o and N_o the object referred numerical aperture and working f-number respectively.

If the photographer increases lens magnification all else equal including the number of photons, image area will increase therefore resulting in decreased photon density there (and vice versa).

Photon density in photons/unit area is Exposure per Equation (12), in this case controlled solely by N since L and t are assumed to stay constant.  In other words, a change in magnification will result in a change in Exposure all else equal since photon throughput must stay the same:

(25)   \begin{equation*} H_i \propto \frac{1}{m^2} \end{equation*}

with H_i Exposure and m lens magnification.  Magnification for a far away object is proportional to focal length.  In that case if focal length is doubled Exposure reduces to a fourth as much.

Appendix III – Accuracy of Geometric Solid Angle Approximations

As we have seen in this article a geometric solid angle is the area of the relative conical spherical cap per Equation (2), divided by the radius squared:

    \begin{align*} \Omega &= 2 \pi (1-cos\theta) = 4 \pi sin^2 (\frac{\theta}{2}) \\ &\approx  \pi \theta^2 \approx  \pi sin^2\theta \end{align*}

The last two are approximations valid only for small \theta in radians.

With a circular Exit Pupil of diameter D, the lens focused at infinity and a small half opening angle \theta – 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 \pi (\frac{D}{2})^2 and the radius of the cone can be considered equal to published focal length at infinity f, so another approximation for geometrical solid angles as used in photography  is

    \begin{align*} \Omega = \frac{A_{cap}}{r^2} \approx \frac{\pi D^2}{4 f^2} \approx \frac{\pi}{4N^2}. \end{align*}

with published f-number at infinity N=\frac{f}{D}.   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 (23).

Solid Angle Approximations in Photography
Figure 6.  Error in various approximations of the solid angle associated with a spherical dome.

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.

5 thoughts on “Angles and the Camera Equation”

  1. This question is about the solid angle. I think the correct solid angle is the projected or foreshorten solid angle. Therefore \omega = \pi \sin^{2}\theta is the correct solid angle. As you point out, they both have the same first term in their expansion.
    Why do you think the full solid angle is the one to use to do radiometry? I have always had issues clearly thinking about radiometry behind a lens but from the point of view of the pixel rays are coming in at a range of angles which should be foreshortened.

    1. Hello Brad,

      I am not sure I understand your question. If the pixel in question is in the very center of the sensor, it is parallel to the exit pupil and so the solid angle is full by definition, per Figure 5. The rest of the projected infinitesimal area is painted by wabbling the angle around infinitesimally. On the other hand if the pixel is closer to the edge of the sensor there will be vignetting effects.

      Jack

      1. Let’s only think about the pixel on the optical axis, and let’s imagine the converging wavefront that illuminates the pixel. From the point of view of the pixel, there is a solid angle from which the radiation is coming. Geometrically this is the full solid angle. But if I were to imagine breaking this solid angle up into small little sub-solid angles, then the radiation coming from the solid angles near the edge of the lens would need to be multiplied by an appropriate cosine factor. Putting this cosine factor in the integral to foreshorten the solid angle gives the result in my previous post.

      2. Let’s focus on the pixel located at the very center, directly behind the optical axis of a circular (rotationally symmetric) optic. We’ll allow this optic to grow arbitrarily large. For simplicity, assume we’re observing a point source at infinity which is equivalent to a uniform flat field facing the entrance aperture directly.

        In this setup, we can easily switch between ray optics and wavefront-based interpretations. From the pixel’s point of view, there’s a set of converging rays directed toward it. Alternatively, we can imagine this as a spherical cap of a wavefront converging onto the pixel.

        If we ask, “What is the solid angle of this cap?”, the answer is given by:

        \Omega(\theta) = 2 \pi (1-\cos \theta).

        Now suppose the optic becomes very large. While the total solid angle remains the same, rays originating near the edge of the aperture now intersect the pixel at increasingly oblique angles. Let’s consider a narrow sub-section of the solid angle far from the center. To compute the radiometric contribution from this sub-section, we must account for the foreshortening introduced by the incident angle — specifically via a cosine factor due to the obliquity of the incoming rays.

        Therefore, when computing radiometric quantities, we must include this foreshortened cosine factor in the integral to correctly evaluate the projected solid angle. This gives:

        \omega(\theta)= 2\pi \int_{0}^{\theta}\sin \phi \cos \phi d \phi = \pi \sin^{2}\theta

        I would not consider Ω(θ) and ω(θ) approximations of one another — they represent fundamentally different physical quantities. However, they do share the same first term in their Taylor series expansion around θ=0, which may be the source of confusion in some discussions.

        1. Hi Brad, I see, you are saying it is not approximately \pi sin^2(\theta), it is \pi sin^2(\theta), and the difference can become relevant at small f-numbers.

          You are absolutely correct, I was unwittingly applying the paraxial approximation, your projected solid angle \omega(\theta) is the correct ‘effective’ solid angle to use because it takes into consideration that even with dA on axis some rays will hit the sensing area obliquely, foreshortening the receiving area. I will correct the article when I have a moment, thanks!

          Jack

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.