A camera you can stand inside.
On a bright day, cover the window of a room until the room is completely dark, and then let the daylight back in through a single hole no bigger than a coin. Give your eyes a few minutes. The wall opposite the window slowly fills with the street outside: houses, trees, a car going by, clouds drifting across the sky, all in full color, all moving, and all upside down.
The hole makes that picture all by itself. People have known about it for well over two thousand years. A Chinese philosopher named Mozi described it around 400 BC, and the Arab scientist Ibn al-Haytham worked out why it happens around the year 1020. Painters later sat inside rooms like this one and traced the scene onto paper. The Latin words for a dark room are camera obscura, and that is where the word camera comes from. A camera is a small dark room with a hole in one wall, and every camera ever made, the one in your phone included, still works this way.
This chapter is about that hole. It explains why a hole makes a picture at all, why the picture is upside down, and what a lens adds. The chapters after it build on the same hole. They go on to a camera whose front and back move separately, to the darkroom, where the picture is caught on paper and shaped by hand, and to the chip that took over from film. Along the way nearly every idea from the earlier chapters turns up again, made of light this time.
Why a hole makes a picture
Start with the room before the window is covered. Daylight pours in, and the far wall is evenly lit and blank. The scene outside is certainly sending its light into the room, so where is the picture?
The trouble is that there are too many pictures. Every point outside, each leaf and brick and patch of sky, scatters light in all directions. Light from the top of a tree reaches every part of the wall. So does light from the road, and light from the sky. Each spot on the wall receives a little light from everything at once, and the sum is an even glow. Chapter 3 had a version of this problem: an antenna hears every transmitter at the same moment, and what it collects is a jumble.
Now cover the window and leave one small hole. Light travels in straight lines, so the light from the top of the tree has exactly one way in, along the line that runs from the treetop through the hole, and it lands on one spot of the wall. Light from the road comes in along a different line and lands on a different spot. The hole has sorted the light by the direction it came from. That is all a picture is: light arranged so that each place on the wall is lit by one place in the world.
The same straight lines explain why the picture is upside down. The treetop is higher than the hole, so its light is traveling downward as it passes through, and it keeps going downward until it meets the wall near the floor. Light from the road is traveling upward and lands near the ceiling. The hole works like the pivot of a seesaw: whatever is high on one side comes out low on the other. Left and right cross over in the same way, so the picture on the wall is upside down and backwards, which is the same as a picture given half a turn.
Try it below. The drawing on the left looks at the room from the side. The picture on the right is what you would see on the far wall, three meters from the hole. The slider changes the width of the hole.
the room, seen from the side
what appears on the far wall
In the drawing, the amber bundle is the light from the top of the tree, and the green bundle is the light from the ground at its foot.
Two things change as the hole grows. First, the picture gets brighter, because a wider hole lets in more light: twice the width is four times the area, and four times the light. Second, the picture gets blurrier. A hole with some width to it lets each point of the scene send in a narrow bundle of light where before there was a single line, and the bundle lands on the wall as a small patch the size and shape of the hole. The picture on the wall is built from those patches, one for every point outside, all overlapping.
That is a blur filter, and you have met it before. Chapter 5 blurred a picture by sliding a small grid of weights across it, so that every pixel became an average of its neighborhood. The hole does the same job with no arithmetic at all. Every point of the true picture is spread into a disc, and the wall adds up the overlapping discs. A hole twice as wide is the same filter with a grid twice as wide.
Going the other way, a smaller hole gives a sharper and dimmer picture, but only down to a certain size. In this room the sharpest hole is about 2 mm across. Below that the picture turns soft again, for a different reason. Light is a wave, and a wave squeezed through a narrow gap fans out on the far side, the way ripples spread in a half circle after passing through a gap in a harbor wall. A hole a quarter of a millimeter wide spreads each point of the scene into a patch 16 mm across by the time the light reaches the wall. Press the button that evens out the brightness and run the slider to its smallest setting to see it. Chapter 11 met the same rule from the other direction: a dish antenna has to be many times wider than one wave of its signal before it can hold a narrow beam.
So an open hole forces a choice. A wide hole gives a bright, soft picture. A narrow one gives a sharp picture so dim that film needs a minute or more to record it. For two thousand years that was the whole bargain.
A lens: bright and sharp at once
A lens is a piece of glass shaped to bend light. Its trick is that all the light from one point of the scene, wherever on the glass it happens to land, is bent by just the right amount to meet again at one point on the wall. A lens as wide as your hand collects well over a thousand times as much light as a 2 mm hole, and it still delivers each point of the scene to a single point of the picture. The choice between bright and sharp is over.
A magnifying glass held in sunlight shows this at its plainest. The glass gathers the sunlight falling across its whole face and brings it to one small, fierce dot, hot enough to scorch paper. That dot is a picture of the sun.
Press the second button above the drawing to put a lens in the hole. The lens can be as wide as you like and the picture stays sharp. The price is that the meeting point lies at one particular distance behind the glass, and the wall has to be exactly there. Move the focus slider and watch each point swell into a disc, the same disc the open hole made. Then make the lens narrower and notice how much less the same focusing error matters, because a narrow lens sends in a slimmer bundle of light to begin with. Photographers use this constantly. Closing down the opening of a lens, which they call stopping down, costs light and buys a deeper zone of sharpness.
Your eye is built the same way: a lens at the front, a dark chamber, and at the back a wall that responds to light, called the retina. The picture on your retina is upside down. Your brain turns it over, and has done so for so long that you never notice.
A satellite dish belongs to the same family. A dish is a curved mirror where a camera has a lens, but the job is the same: collect the weak radio waves arriving over a wide area and bring them together at one point, where a small receiver sits. Chapter 11 called this a bigger catcher. A camera has millions of tiny light meters at the back and records a whole scene. A dish has one receiver and looks in one direction. A satellite dish is a camera with a single pixel.
Try it: turn a room into a camera
This takes about half an hour and costs almost nothing, and it is one of the most surprising things you can do with a window.
- Pick a room with a window that looks out on something sunlit: a street, a garden, buildings across the way. The brighter the view, the better the picture.
- Cover the window completely. Cardboard, black plastic sheeting and aluminum foil all work. Tape the edges so that no light leaks around them.
- Cut a round hole near the middle of the covering, about the size of a dime. That is far wider than the sharpest size, on purpose: your eyes need a brighter picture than a 2 mm hole can give.
- Wait for your eyes to adjust. For the first minute you will see almost nothing. After five minutes the wall will be covered with the view outside, with the sky on the floor.
- Hold a sheet of white paper in the path of the light and walk it toward the hole. The picture on the paper shrinks and brightens as you go.
- For a sharper picture, tape a lens over the hole. A lens from a pair of weak reading glasses works well. One marked +1.00 brings the view to a focus one meter behind it, and one marked +2.00 at half a meter. Hold the sheet of paper at that distance and the picture snaps into focus.
Shrink the room to a box, put a lens in the hole and a sheet of frosted glass where the far wall was, and the room is a camera. The next chapter takes one apart.