From silver to silicon.
In December 1975 an engineer at Kodak named Steven Sasson switched on a machine he had spent months building. It weighed eight pounds and was about the size of a toaster. It had a lens borrowed from a movie camera, a new kind of chip that few people had seen, and a cassette recorder bolted to its side. It took twenty-three seconds to record one black and white picture onto the tape, a hundred dots wide and a hundred dots tall, and the only way to see the picture was to play the tape back through a television.
It was the first digital camera. Kodak was the largest film company in the world, and the people Sasson showed it to asked a fair question: who would want to look at photographs on a television? Thirty years later the chip had replaced film in nearly every camera made, and today one sits behind the lens of every phone.
This chapter looks at what that chip does, how it differs from a crystal of silver salt and how it is the same, and why every digital camera has to work out two thirds of the colors in every picture it takes.
A chip that counts light
The chip is made of silicon, and it starts exactly where the silver crystal of chapter 20 starts. A photon, which is a single packet of light, strikes the chip, and an electron is knocked loose. Albert Einstein explained this effect in 1905, and it is the work his Nobel Prize was given for.
What happens next is different. In the crystal, the electron made one atom of silver and the crystal waited for a developer. On the chip, the surface is divided into millions of tiny square cells, the pixels of chapter 5, and each cell is built as a well that holds on to the electrons knocked loose inside it. While the shutter is open the electrons pile up, more of them wherever the light is brighter. Chapter 5 pictured this as buckets set out in the rain, and that is very nearly what it is. When the shutter closes, the camera measures how much charge each well holds, writes the answer down as a number, and empties the well for the next picture.
The first chip of this kind was invented at Bell Labs in 1969 by Willard Boyle and George Smith, who sketched the idea in about an hour and later shared a Nobel Prize for it. It is called a CCD, a charge-coupled device, and it reads its wells like a bucket brigade. Every well passes its charge to its neighbor, row after row, until each bucketful in turn has reached a single measuring station at the corner of the chip. Sasson's camera was built around one.
The chip in a phone is a later design. In 1993 Eric Fossum, an engineer at NASA's Jet Propulsion Laboratory who wanted cameras small and frugal enough for spacecraft, put a tiny amplifier inside every pixel. Any pixel could then be read directly by calling out its row and its column, the way a computer reads its memory. This design is made by the ordinary process used for computer chips, known as CMOS, so it is cheap, and it runs on very little power. Those two facts put a camera in every pocket.
Set a pixel beside a crystal and the difference is a matter of counting. A crystal answers yes or no, and it takes about four photons to get a yes. A pixel counts. It registers better than half of the photons that reach it and reports how many it caught, anywhere from none to tens of thousands. Astronomers, who can least afford to waste light, worked out that their glass photographic plates had been recording about two photons in every hundred.
The noise that comes with the light
Counting photons has a limit that no engineering can remove, because the photons themselves arrive at random, like raindrops. Set two identical buckets side by side in a steady rain and they will end up holding slightly different amounts. A pixel that ought to catch a hundred photons might catch 92 in one exposure and 109 in the next. The typical size of that scatter is the square root of the count, which is the number that gives the count when multiplied by itself. That makes it about 10 for a count of 100, and about 100 for a count of 10,000.
Look at what that does. With 100 photons the scatter is a tenth of the signal, and the picture is speckled. With 10,000 it is a hundredth, and the picture is clean. This is the tally from the opening story one more time. The signal grows as fast as the count, the noise grows only as its square root, and patience wins. It is why photographs taken in dim light are grainy, why the shadows of any picture are noisier than its highlights, and why a large sensor with large pixels beats a small one. A bigger bucket catches more rain.
The ISO setting on a digital camera is a volume knob. Raising it collects no extra light. It multiplies the numbers after they have been counted, noise and all, which is what the slider above does to keep the picture bright as the light falls. Film could trade sensitivity for grain only by changing the size of its crystals, one roll at a time. A sensor makes the same trade at the turn of a dial.
One color for each pixel
Silicon has no way of telling what color a photon is. Red, green or blue, each one knocks loose one electron, and one electron looks like another. A bare sensor takes black and white pictures. To see color, nearly every camera lays a pattern of tiny colored filters over its pixels, one filter to a pixel: a red one here, a green one beside it, a blue one below. Each pixel then counts light of a single color. The pattern was worked out at Kodak by Bryce Bayer and patented in 1976, and it carries his name.
Bayer gave half of the pixels to green and a quarter each to red and blue. The reason is the human eye, which takes most of its sense of brightness and fine detail from green light, as the next section shows. A camera built for people spends its pixels where people look hardest.
It follows that a twelve-megapixel camera measures twelve million numbers, where a full color picture needs thirty-six million. The other twenty-four million are worked out. For each pixel the camera estimates the two colors it left unmeasured from the neighbors that did measure them, and the simplest way to do that is an average over the surrounding pixels: a small grid of weights slid across the picture, exactly as in chapter 5. Two thirds of every digital photograph is arithmetic.
Drag the ring around the picture. The grid on the right shows the pixels in the small box at its center, first as the sensor measured them and then as the camera fills them in.
the picture
the pixels in the box, enlarged
Move the ring onto a sharp edge, such as the side of the mast or a letter of the eye chart, and switch between the two views. Along the edge the filled-in colors are a little wrong, with faint fringes of red and blue where the neighbors on either side disagreed. Real cameras use cleverer rules than a plain average to keep those fringes down, and all of them are still estimates.
Sensitive to which light
Every detector of light has its own tastes, and comparing them explains several things at once: the green pixels, the red lamp of chapter 20, and the look of very old photographs. The chart below runs through the colors of light in order of wavelength, which is the length of one wave of the light, from violet at the left, through blue, green, yellow and red, and on past the edge of what the eye can see into the infrared. Each curve shows how strongly one kind of detector responds to each color. The picture beside it shows the same scene as that detector records it.
how strongly it responds to each color
the scene, as it records it
Begin with the eye. In daylight it responds best to a yellowish green and falls away steeply on both sides, so a deep red or a deep blue light has to be many times stronger to look as bright. That is why tennis balls and safety vests are yellow-green: for the same amount of light, no other color looks brighter.
Silver bromide by itself has much narrower tastes. It responds to blue, violet and ultraviolet, and to nothing else. Photographs from before the 1880s show it. Blue skies come out blank white, because the plate found them dazzling, and red lips and freckles come out nearly black, because to the plate they were dark. In 1873 a Berlin chemist named Hermann Vogel discovered that soaking a plate in the right dye made it respond to the colors that the dye absorbed. One dye carried it into the green, and film of that kind is called orthochromatic. Later dyes carried it into the red as well, which gave the panchromatic film that black and white photographers still use. Printing paper stops at green on purpose, so that it can be handled under a red lamp.
A photographer can narrow a film's tastes again with a colored filter over the lens. A red filter on panchromatic film holds back the blue of the sky, so the sky prints dark and white clouds stand out against it. It is one of the oldest tricks in landscape photography, and the button for the red filter shows it.
Silicon is the least particular of all. It responds across the whole visible range and well beyond red into the infrared, where the eye sees nothing. A camera has to block that infrared with a filter of its own, or foliage and warm things would glow oddly in every picture. The red, green and blue filters over the pixels then carve what is left into three bands, a rough copy of the three kinds of color-sensing cell in the eye. Of the three, the green band collects the most light from an ordinary scene, which is one more reason the green pixels give the cleanest numbers.
Try it: see what your phone sees
- Point a television remote control at your phone's camera and press any button. On the screen, the tip of the remote flashes a pale violet. Your eye sees nothing, because the remote signals with infrared light. The sensor sees it easily, and what reaches the screen is the part that leaks past the camera's blocking filter. Try the camera on the front of the phone as well, where the filter is often weaker.
- In a dim room, photograph a plain wall, and then zoom all the way in on the picture. The speckle you find is the random arrival of photons, counted.
- Photograph the same wall in bright light, zoom in again, and compare.
From a hole in a window covering to a chip that counts photons, the job in this part of the book has stayed the same: sort the light with a lens, and catch it on something that remembers. Silver remembers with atoms and silicon remembers with electrons. Either way, what comes out at the end is a signal, and everything in the first ten chapters applies to it.