BookNotesSlidesP-sets Syllabusdraft · v0.2.49.1
◀▲⌂▶
💬Comments welcome. To leave a note, select any text and click the note / highlight button that pops up — or open the panel with the tab at the top-right (‹). Notes are visible only inside our private review group.
💡 In a hurry? Jump to this chapter’s 1 big lesson ↓

1.1 From digital to computational photography⧉

A phone can combine several noisy exposures into one clear photograph, or use depth to blur the background behind a face. These pictures depend on both a physical measurement and a computation. Digital photography made that combination possible by recording the image as numbers; computational photography designs what we measure and how we turn those measurements into a picture.

Consider a dark room with a sunlit window. Exposures chosen for the room and for the view outside can be combined into a high-dynamic-range (HDR) image that retains both. Other methods estimate camera shake to reduce blur, stitch overlapping frames into a panorama, or record light from multiple viewpoints so we can refocus after capture. Each method uses additional measurements or assumptions. None can recover arbitrary information that the capture failed to record.

fig-results-montage
Figure 1.1.1. A montage of computational-photography results, each impossible with a single ordinary exposure: high dynamic range (HDR) imaging that fuses several exposures of a high-contrast interior so both the blown-out glass entrance and the dark showroom show at once, where no single exposure can; motion deblur recovering a sharp image from a camera-shake-blurred one (Fergus et al. 2006, reproduced with permission); and a panorama stitched from a sweep of handheld frames (your first problem set). Each pair shows the raw capture beside the computed result, so you can see what the computation bought. A fourth feat, refocusing after the shutter from a light-field capture, is shown in the video just below.
Video 1.1.1. Video: The light-field (plenoptic) camera uses a microlens array to record the direction of incoming rays as well as their color, so a single capture can be refocused and its viewpoint nudged after the shot. Ng, Levoy, Brédif, Duval, Horowitz & Hanrahan 2005 (Ng et al. 2005), reproduced with permission.

Even the most ordinary snapshot already depends on computation. As we'll see shortly, a typical sensor measures only one color channel at each pixel (red, or green, or blue), and the other two are reconstructed by an algorithm before you ever see a full-color image. Computation isn't an afterthought for fun special effects. It has become a fundamental aspect of image formation.

fig-demosaick-snapshot
Figure 1.1.2. A close-up of a sensor's raw output: a mosaic in which each pixel holds only one of red, green, or blue, next to the full-color image reconstructed from it. Even a plain snapshot is the output of an algorithm, here demosaicking, that fills in the two missing channels at every pixel.

A phone has little room for a large aperture or sensor. Aligning and merging frames collects evidence over time, and denoising and tone reproduction help use that evidence. The small optics still matter: blur, flare, clipping, and motion can destroy information before processing begins. Computation and good hardware complement each other.

Generative models add another source of information: patterns learned from training images. They can synthesize or modify a picture, including details that the camera did not resolve. This makes restoration more flexible but raises a question that will recur throughout the book: which details are supported by the measurement, and which are plausible inventions? Borges's imagined library of every possible book offers an analogy for this breadth, but a learned model does not contain every possible photograph Borges 1941 Bottou & Schölkopf 2023.

1.1.1 Computation is the new optics⧉

In a conventional camera, the lens forms an optical image and film or a sensor records it. Better lenses, emulsions, sensors, and exposure control improve that measurement. Processing has always influenced the final photograph, including through chemical development and printing; computation greatly expands the operations we can apply.

Computational photography allows the final picture to differ substantially from the optical image. We can combine exposures, estimate missing values, and use measurements of depth or ray direction. The attainable result depends on the complete system: capture, reconstruction, and display.

The optical image need not look like the desired result. It can instead be designed to preserve information that an algorithm can recover. This is optics and computation co-design: choose the measurement and reconstruction together. A coded measurement is useful only if the desired information survives with enough signal relative to noise.

Consider extending depth of field. Wavefront coding Dowski & Cathey 1995 and the lattice-focal lens Levin et al. 2009 (4D frequency / lattice-focal) deliberately blur the optical image over a range of depths. They aim to make the blur more consistent and easier to invert than ordinary defocus, so one reconstruction can sharpen objects at different distances (Figure 1.1.3). In the usual incoherent imaging model, the sensor receives nonnegative sums of intensities; computation can also subtract and apply nonlinear operations. Deconvolution uses that freedom, at the cost of noise amplification and possible artifacts. The useful depth range and recoverable detail remain finite. See Part 33, Computational optics and coded imaging.

fig-lattice-focal-result
Figure 1.1.3. A camera co-designed with its algorithm: the lattice-focal lens Levin et al. 2009 (4D frequency / lattice-focal). Top: a standard lens holds only one subject in focus, while the lattice-focal lens captures an image that is uniformly, invertibly blurred at every depth, so a single deconvolution brings the whole group sharp at once. The raw capture looks wrongly blurred, which is exactly the point: the optical image need not resemble the final one. Bottom: the optical element itself, a lattice of small subsquares of different focal lengths mounted on the main lens like a screw-in filter, with its point-spread functions calibrated at three depths (90, 150, 180 cm). From Levin, Hasinoff, Green, Durand & Freeman 2009.

“Computation is the new optics” describes this expansion of image formation: we can improve the picture by changing the computation as well as the lens.

1.1.2 The goals of computational photography⧉

The methods in this book serve several photographic goals:

Prettier pictures. A raw file needs a rendering before it becomes a viewable photograph: white balance, color conversion, and a mapping to the display. A neutral rendering and a photographer's preferred rendering can look quite different (Figure 1.1.4). There is no single appearance intrinsic to the raw numbers.

fig-raw-vs-edited
Figure 1.1.4. What editing does, on one frame. Left: the raw through a flat pipeline and nothing else, demosaic, the camera's own white balance, the camera-to-sRGB matrix, the sRGB encode. No exposure compensation, no crop, no tone curve, no saturation. Right: the same frame developed. The gap is the whole of "prettier pictures", and the larger share of it is not taste but the baseline rendering described in Chapter 8.4, Beauty curves: the camera "look", which every camera applies silently to every photograph. The two framings differ because the flat render is the entire sensor and the developed version is cropped, which is itself one of the edits. Photo © Frédo Durand.

Alleviate physical limitations. A phone can merge a burst of short exposures, preserving highlights in each frame while reducing noise in the combined shadows. The additional frames collect more photons; alignment and merging make their measurements useful (Figure 17.6.6). Motion limits how much can be combined.

fig-hdrplus-3
Figure 17.6.6 (reproduced). The HDR+ pipeline as the authors drew it. From a live viewfinder fed by the hardware ISP, the shutter press grabs a burst of raw frames at one chosen exposure-and-gain; these are aligned and merged at full resolution, then run through white balance, demosaic and chroma denoise, a local tone map (exposure fusion), dehaze and global tone map, and a final sharpen and saturation pass. The decisive step, align-and-merge, sits before demosaicking, so denoising and HDR happen together on the raw signal (Hasinoff et al. 2016).

Record more information. Overlapping photographs can support a three-dimensional reconstruction and views from new camera positions (Figure 36.7.7). Coverage, texture, and scene motion determine which parts can be reconstructed reliably.

fig-gaussian-splat-viewer
Figure 36.7.7 (reproduced). An interactive 3-D Gaussian-splatting scene: drag to orbit, scroll to zoom. Each splat is an anisotropic 3-D Gaussian with view-dependent color; hundreds of thousands of them composited give real-time novel views. Scene: "plush" from the cakewalk/splat-data sample set (companion to the viewer). Viewer: antimatter15/splat (MIT).

More control after capture. Recording ray direction as well as position allows refocusing within the range supported by the capture (Figure 31.4.2).

fig-refocus-shift-geometry
Figure 31.4.2 (reproduced). Interactive: refocusing is choosing the depth of the virtual focal plane. Slide the virtual focal-plane depth and, on the left, watch the geometry: a scene point's rays fan across the main-lens aperture and converge to its image; the movable virtual sensor plane intercepts that cone, and the depth whose image lands on the plane is in focus while others spread into a blur disc. On the right, the same slider refocuses a real captured light field (Stanford's wide-baseline "chess" gantry capture), sweeping a real photograph's focus from near to far. Refocusing is choosing $k$, the virtual plane.

New visual experiences. Some images have no single-shot equivalent at all: you navigate them rather than look at them (Figure 20.4.5).

fig-pano-viewer
Figure 20.4.5 (reproduced). Look around a 360° panorama (interactive). The equirectangular mosaic is texture-mapped onto the inside of a sphere and viewed from its center: drag to pan and tilt, scroll / pinch to change the field of view. Widen the field of view and the straight quay and building edges bow outward, the very flatten-a-sphere distortion that projections trade against, now something you can dial. Default panorama courtesy of Poly Haven (CC0).

Reveal the invisible. The camera had already recorded a face flushing with its pulse and a building swaying. What was missing was the processing that makes such changes visible.

Video 1.1.2. Video: Revealing Invisible Changes in the World. A reel of Eulerian video-magnification results: a face flushing with the pulse, a wrist's beat, a breathing baby, and structures swaying, all pulled from ordinary video by amplifying per-pixel temporal variation (Wu et al. 2012). Shown here for the goal it illustrates; the method is Chapter 38.3, Motion and video magnification.

A limitation can also be an expressive choice (Figure 1.1.5). Leaving deep shadows black may make the lit shapes easier to read than opening every shadow. Freezing a fraction of a second lets us study a gesture that passed too quickly to see. More recovered detail is not always a better photograph.

fig-medium-expressive
Figure 1.1.5. Alleviating the limitations of imaging is one goal of computational photography, but sometimes the limitations offer expressivity. Left: a backlit estuary in which accepting a limited display contrast, by letting the deep shadows fall to pure black instead of tone-mapping them open, turns the lit water channels into a stark graphic. Right: three children caught mid-jump, where the camera's defining limitation, that it freezes a single slice of time, lets us contemplate an instant that lasted a fraction of a second. Photos © Frédo Durand.

The intended use determines how we evaluate an image. A calibrated measurement can be assessed against a physical quantity, with uncertainty attached. A perceptual model predicts visibility or appearance under specified viewing conditions. A photographer may instead choose a rendering for its expressive effect.

These criteria can disagree. Smoothing a face may reduce pixel error while removing texture the photographer wants. Preserving every shadow detail can flatten the composition. Human vision has measurable regularities, including contrast sensitivity and color matching, but perceptual metrics remain models with limited ranges of validity. Choose the criterion before comparing methods.

Between physical measurement and personal preference lies perceptual vision, which concerns how an image actually looks to a human eye. You might expect this to be hopelessly subjective, but it is not. Several aspects of human vision can be modeled quantitatively: the contrast sensitivity function, color appearance, lightness and brightness, visual masking, perceived sharpness, and full image-quality metrics such as SSIM and visible-difference predictors. "How it looks" can be measured and even predicted, though it is not pure physics. Within a model’s range of validity, this lets us engineer for the eye: tone-mapping to fit the eye's response, throwing away color detail the eye won't miss, choosing where to spend bits or where a little smoothing will go unnoticed.

1.1.3 What makes a technique useful⧉

Beyond the problem a technique solves, there are the engineering qualities that decide whether a method graduates from a paper to a product. A useful technique is fast, cheap enough to run at the scale and latency its use demands, ideally interactively or on the device. It is predictable, with graceful degradation: when its assumptions are violated it should fail gently and visibly, a little softer, a little noisier, rather than catastrophically, throwing bizarre artifacts that are worse than having done nothing. And it is controllable and tunable: it exposes a few meaningful knobs a photographer or engineer can actually turn, rather than being a black box with one fixed behavior. Methods that score well on all three tend to win, even against more accurate but brittle or opaque rivals.

Establish a correct reference implementation before optimizing. Fast approximations made bilateral and local Laplacian filtering practical (Chapter 10.1, Bilateral filtering, Chapter 10.4, Local Laplacian filters, Chapter 29.1, Algorithmic speedups). But speedups are not guaranteed: memory, energy, and latency can require a different algorithm or a reduced output resolution. Measure these constraints early, then check each optimization against the reference.

💡 Big lesson (L1.1) — a useful technique is fast, predictable, and controllable

A useful method meets its latency and energy budget, degrades acceptably when its assumptions fail, and exposes controls that correspond to photographic decisions. Establish correctness before optimizing; measure both image quality and runtime on representative inputs.

There is a reason to tolerate a slow first implementation. It tells us whether the idea produces the picture we want before approximations make its errors harder to diagnose. Bilateral and local Laplacian filtering illustrate the sequence: establish the useful operation, then find a faster way to compute or approximate it. A fast implementation of the wrong operation is not progress. Keep the reference available while optimizing, so speed and accuracy remain separate questions.

1.1.4 Hand-designed algorithms, learning, and generative AI⧉

Hand-designed methods specify how to reconstruct an image. Learned restoration estimates that mapping from examples. Generative methods learn a distribution of images and can sample possible outputs, often conditioned on a capture. These approaches coexist: a camera may use a conventional geometric alignment stage, a learned denoiser, and a hand-designed tone curve.

The distinction does not by itself tell us how faithfully a result follows the data. A hand-designed prior can erase real texture; a learned model can be constrained by the measurement. Generative restoration is especially useful when many plausible images explain the input, but the selected detail need not be the detail that was actually there. Evaluation must reflect whether the task is measurement, photographic rendering, or synthesis.

Rich Sutton's The Bitter Lesson argues that general methods able to exploit growing computation tend to outperform elaborate hand-coded knowledge over time. Natural-language processing gives the standard example. For decades, parsing a sentence meant hand-building grammars that encoded linguists' knowledge of syntax; statistical parsers trained on corpora of annotated sentences overtook them, and neural models later did so with still less hand-designed structure. The linguistic knowledge did not stop being true. It stopped being the thing programmers wrote down directly, and moved into the data, the annotations and the choice of what to measure. Imaging offers an important place for physical knowledge within learned methods: we can model projection, blur, sensor noise, and the color-filter mosaic to generate training pairs or constrain reconstruction. Those pairs are exact for the simulator, not necessarily for a real camera. Calibration errors, clipping, motion, and unmodeled processing can make synthetic training data misleading. Chapter 7.2, Machine learning and Chapter 7.3, Deep learning develop these approaches.

fig-first-photograph
Figure 1.1.6. The oldest surviving photograph made in a camera: Nicéphore Niépce, “View from the Window at Le Gras,” Saint-Loup-de-Varennes, France, 1826/27. It is a heliograph, a pewter plate coated with light-sensitive bitumen, exposed in a camera obscura for days, so long that the sun lights the courtyard buildings from both sides. The image is barely legible, a world away from a modern snapshot, yet it is the start of the whole story this book tells. Reproduced from the 1952 Gernsheim facsimile; the original is held by the Harry Ransom Center, University of Texas at Austin. Public domain (Wikimedia Commons).
fig-kodak-press-button-ad
Figure 1.1.7. The Eastman Company's advertisement for the first Kodak camera (Rochester, NY, c. 1888/89), carrying the slogan that defined mass photography: "You press the button, we do the rest." As Peyman Milanfar points out, this slogan is still the innovation we seek to deliver. Public domain (Wikimedia Commons). A few machines mark the turns in the story: - Polaroid Land Camera (1948) / SX-70 (1972): instant photography: the print develops in your hand, with no lab and no wait. Edwin Land made the photograph immediate decades before digital did, and the folding SX-70, a true single-lens reflex that ejected a self-developing print, is a landmark of both optics and industrial design. - Kodak DCS (1991): the first commercial digital SLR: a Nikon film body mated to a 1.3-megapixel Kodak digital back. Digital photography begins as an expensive professional tool. - Apple QuickTake 100 (1994): one of the first consumer digital cameras, at 0.3 megapixels. Crude, but pointed at everyone. - Nikon D1 (1999): the first DSLR built from the ground up as an integrated digital camera rather than a retrofitted film body, and priced to start displacing film in photojournalism. - First camera phone. A small historical distinction matters here: the Kyocera VP-210 (Japan, 1999) is often credited as the first phone with a built-in camera, while the Sharp J-SH04 (Japan, 2000) was the first to popularize capturing and sharing photos. Either way, around the turn of the millennium the camera became something you always carry, the road to phones as the dominant cameras on Earth. - Casio EX-F1 (2008): an early consumer high-speed camera (60 frames per second stills, up to 1200 fps video). A hint of the "shoot many frames" computational era to come. - Lytro (2012): the first consumer light-field camera, able to refocus after capture. Computational photography as a product category you could buy.
Video 1.1.3. The Lumière brothers, L'Arrivée d'un train en gare de La Ciotat (1896). An early example of projected cinema: capturing and replaying motion, the same urge to record the world that drives still photography, now one frame at a time. The brothers also gave photography a practical commercial color process, Autochrome (1907). (web edition)

This also changes an expectation that developed around photographs. Perspective construction, photographic capture, and documentary practice all helped establish the image as evidence about a particular scene. Photojournalism gave special importance to the idea of recording an actual instant. That ideal was never a complete description of image-making: staging, framing, and manipulation remained. Generative synthesis makes the distinction especially visible because a convincing image need not originate in a corresponding event. The question is what relationship to an event a viewer is entitled to expect.

The physical knowledge accumulated in imaging still has work to do. A hand-designed denoiser puts assumptions directly into its algorithm; a learned denoiser can inherit them through simulated noisy/clean pairs, its architecture, or a measurement constraint. Knowledge of the camera has moved into a different part of the design. The practical question is where that knowledge is most useful, and how closely the simulated measurements represent the real capture.

1.1.5 Does photography still matter in the age of generative AI?⧉

A generated picture of a toddler cannot replace a photograph of your child's first steps. The photograph is valuable because the capture is connected to that child and that moment. This connection to a particular event is often called indexicality.

It is a connection, not a guarantee of truth. Framing, staging, editing, and reconstruction all affect what a photograph communicates. Scientific and documentary uses therefore need evidence about how the image was captured and processed (Chapter 41.2, Authentication and Provenance (C2PA)). A plausible-looking result is insufficient.

A phone also makes capture available when the moment occurs (Figure 1.1.8). Generative editing changes what we can do with that capture; it does not remove the value of having been there.

fig-xkcd-2645
Figure 1.1.8. xkcd #2645 "The Best Camera." Randall Munroe, xkcd.com/2645 (CC BY-NC 2.5).

Learned methods already perform restoration in camera pipelines, but learning and generation are not synonyms. A network trained to denoise a raw image need not sample a generative model. When generative tools add unsupported content, the appropriate use and disclosure depend on whether the photograph is a personal creation or a record offered as evidence.

1.1.6 A multidisciplinary field⧉

Computational photography draws on optics and sensor engineering to form measurements, algorithms and machine learning to reconstruct images, and perception and photographic practice to judge the result. Performance engineering determines what can run on a device. Ethics matters when the processing changes how we represent a person or an event.

A few neighboring fields overlap with computational photography so heavily that it helps to say exactly how they relate and differ.

Computer vision is the closest. A useful way to carve up vision is by its three ingredients: 2-D images (the pixels themselves: filtering, features, matching), 3-D (the geometry behind the pixels: depth, shape, pose), and meaning (semantics: what objects and scenes the pixels depict). Computer vision ultimately cares most about the last two: it treats the image as a means to recover 3-D structure or to understand content. Computational photography inverts that emphasis: its product is the 2-D image, a better photograph. But it freely reaches into 3-D and meaning when they help the picture: depth to fake a shallow-focus background, segmentation to brighten a face and not the sky, recognition to pick the frame where everyone is smiling. The same tools, pointed at a different goal.

Computer graphics runs the arrow the other way, synthesizing images from models of geometry, materials, and light. Computational photography borrows its rendering and image-based-rendering machinery (and, increasingly, shares it outright: gradient-domain editing, light fields, differentiable and neural rendering all live in both). Image processing is the classical signal-processing bedrock the whole enterprise is built on: filtering, transforms, sampling, and compression. Models of capture help choose the processing. And optics supplies the physics of image formation, which computational photography increasingly co-designs with the computation rather than treating as fixed (coded apertures, lensless cameras, end-to-end optimized lenses).

Because the field straddles these neighbors, so does its literature. A great deal of computational photography is published at the major computer-vision conferences (CVPR, ICCV, and ECCV) and at the graphics venue, SIGGRAPH (and SIGGRAPH Asia / ACM Transactions on Graphics). ICCP, the IEEE International Conference on Computational Photography, is a venue dedicated to the field.

These disciplines appear together inside a single feature. Take a phone's night mode. It leans on physics (catching scarce photons), electrical engineering (the sensor that catches them), algorithms (aligning and merging a burst of frames), AI (learned denoising), perception (tone-mapping the result so it reads naturally), performance engineering (finishing within a short capture budget on a phone without excessive energy use), and ethics (how much to "beautify" a face, and whether to tell the user), all at once. Each discipline constrains the others: a more expensive reconstruction can require fewer input frames or a longer wait for the picture.

1.1.7 Beyond photography⧉

The methods used on photographs also apply to other measurements. The shared approach is to specify what an instrument records and reconstruct the quantity we want from it.

Start with the ordinary camera pointed at extraordinary jobs. The instant a camera stops being aimed by a human enjoying the view and starts being aimed by a machine making a decision, the processing serves a different task. Robotics and self-driving cars lean on cameras (and their cousins, depth sensors and lidar) to perceive, localize, and navigate. The alignment, depth, and motion estimation we develop for panoramas and refocusing are exactly what a robot needs to know where it is and what is moving. Surveillance and security, industrial inspection (spotting a hairline crack or a misplaced solder joint on a production line, where consistent lighting and repeatable measurements help detect defects), agriculture, drones, document scanning, and biometrics all use computational imaging for practical tasks. The picture is no longer the product; it is an input to a decision.

Then push the optics past what a handheld lens can do. Astronomy is computational photography at the grandest scale: telescopes stack thousands of frames to beat noise (the same averaging that powers a phone's night mode), use adaptive optics to cancel the atmosphere's blur in real time, and combine separate dishes into one synthetic aperture, the trick that let the Event Horizon Telescope assemble an Earth-sized virtual lens to image a black hole. At the opposite scale, microscopy does the same: light-sheet, confocal, and computational microscopes reconstruct 3D cellular structure, and super-resolution techniques reach past the diffraction limit we will meet in the optics part. Both require designing the measurement and reconstruction together.

Change the wavelength and the field opens again. Visible light is a sliver of the electromagnetic spectrum, and imaging lives all along it. Infrared gives thermal cameras and night vision; ultraviolet reveals forgeries and surface detail; X-ray imaging, in the form of computed tomography (CT), reconstructs slices or volumes from X-ray attenuation measurements along many paths, a reconstruction problem; radio gives us radio astronomy and synthetic-aperture radar (SAR) that maps terrain through clouds and darkness. Much of medical imaging is this same discipline under a different name: CT, magnetic resonance imaging (MRI), positron-emission tomography (PET), and ultrasound are all reconstruction problems, recovering an image from indirect measurements using related reconstruction ideas, including the regularized inverse problems this book builds up to. A radiologist's scanner and a phone's night mode use closely related reconstruction ideas.

And the techniques do not even need an image at all. Sampling, filtering, the Fourier transform, denoising, priors, inverse problems. The toolkit is really a toolkit for signals, and a signal can be anything. Audio is the obvious neighbor: a sound is a one-dimensional signal, and the same spectral and statistical ideas drive noise reduction, compression, and synthesis there. One example shows the connection: Paul Lamere's Infinite Jukebox takes a song, finds beats that sound nearly identical, and quietly jumps between them to extend the track, with success depending on the available transitions, which is precisely the idea of Video Textures (Schödl et al. 2000), a computational-video technique that finds similar frames in a short clip and loops between them to synthesize a video of arbitrary duration with varied transitions, transplanted from pictures to sound.

Run the trade the other way, too: point a camera at a quantity that has nothing to do with light and let computation read it out. Two examples make the point. GelSight turns a camera into a sense of touch: press a slab of clear elastomer, with its outer face painted with an opaque membrane, against an object, and the gel molds to the surface's microscopic relief; a small camera behind the gel photographs that deformation under raking colored light and reconstructs a dense 3-D height map by photometric stereo. Its resolution depends on the optics, camera sampling, illumination, and mechanics of the membrane. It can read the ink of a banknote, the wear on a machined part, and the grain of a fingerprint, and it has become a workhorse for robotic manipulation, where a gripper needs to feel contact, slip, and texture, right down to vision-based tactile sensors built into the fingers of a dexterous robot hand Romero et al. 2024 (EyeSight Hand). Touch becomes an image that can be analyzed with image-processing tools Johnson & Adelson 2009. The second example points a camera at vibration: ordinary objects tremble by thousandths of a pixel in response to sound and force, and that motion, amplified and demodulated, turns a silent video into a measurement of the world's movement. A bag of chips behind soundproof glass becomes a microphone. The visual microphone recovers intelligible speech from the sub-pixel wobble of its surface Davis et al. 2014; the same sub-pixel motion, read as a modal signature, recovers an object's material properties Davis et al. 2015 and lets a single camera perform structural health monitoring of a bridge or a building, identifying its resonant frequencies and mode shapes from across the street Chen et al. 2015 Davis 2019. We return to both threads in Part 38, Revealing the invisible; these examples show how images can serve as measurements of other quantities. Touch and vibration are signals, and a camera plus computation is a remarkably general instrument for measuring them.

fig-gelsight-touch
Figure 1.1.9. A camera as a sense of touch. A slab of clear elastomer with an opaque outer membrane is pressed against an object (left); the gel conforms to the surface's microscopic relief, and a camera behind it images the deformation under raking colored lights, recovering a dense 3-D height map by photometric stereo (right). Because resolution is set by the optics rather than a fingertip, GelSight reads detail finer than human skin, resolving the embossing on a coin and the ridges of a fingerprint, and turning touch into an image that every technique in this book can process. After Johnson & Adelson.
fig-visual-vibrometry
Figure 1.1.10. A camera as a remote vibration sensor for civil infrastructure. Left: the Memorial Bridge in Portsmouth, New Hampshire, the structure under test. Right: the whole instrument, a single ordinary camera on a tripod, filming the bridge from about eighty meters across the water. Traffic, wind and its own weight make the bridge tremble by sub-pixel amounts; measuring those tiny motions in the video recovers the bridge's resonant frequencies and operational deflection mode shapes, so one non-contact camera does the job of an array of bolted-on accelerometers. It is the same inverse-problem machinery used on photographs, applied to motion too small to see, the civil-engineering application of the visual-microphone and visual-vibrometry line of work [@davis-etal-2014; @davis-etal-2015], and a clear proof that "the image" was never the point.

Many sensors make a quantity visible indirectly. Fluorescent markers emit light; an elastomer deforms under pressure; scintillators convert absorbed X-rays or gamma rays into visible light. A camera then turns that light into electrical measurements. In a semiconductor photosite, absorbed photons can generate electron–hole pairs whose charge is collected. This conversion, described in Chapter 2.7, Sensors: photosites, CCD vs CMOS, is one useful transduction mechanism among many, including the acoustic measurements used in ultrasound.

Part 39, Adjacent fields and applications develops these connections across imaging instruments and other signals.

The optical readout is often a design choice. We can arrange for pressure to deform a visible surface, for a chemical marker to fluoresce, or for an absorbed X-ray to produce a visible flash. Once the quantity modulates light, photodetection converts it into an electrical signal that familiar acquisition hardware can record. This is why an imaging course can teach useful measurement ideas far beyond cameras. We still have to model the conversion from the original quantity to light; linearity of the final sensor does not make every earlier conversion linear.

Recap: big lessons of this chapter

💡 Big lesson (L1.1) — a useful technique is fast, predictable, and controllable

A useful method meets its latency and energy budget, degrades acceptably when its assumptions fail, and exposes controls that correspond to photographic decisions. Establish correctness before optimizing; measure both image quality and runtime on representative inputs.