47Technology

How a camera makes a picture

A camera is a dark box with an opening. Make a picture with a pinhole, open and close the aperture, balance the light with the shutter and the ISO, and see that a picture is a grid of numbers.

Close the shutter

A dark box with a hole

A camera is a box that keeps out all light except what comes through one opening. The light from a scene falls on the back of the box and makes a picture there. A film or a sensor records it. Everything else in a camera is about controlling how much light comes in, for how long, and how sharp the picture is.

Four things to try. Make a picture with a plain pinhole and no lens. Open and close the aperture and see the light and the blur change. Balance the aperture, the shutter time and the ISO to get the right amount of light. And see how a picture is a grid of numbers. The scene and the box are toys, and the page works out the sums itself. Without a script each part shows one picture.

Shot one

A hole and no lens

A box with a tiny hole makes a picture on its back wall. The picture is upside down, because rays from the top of the scene cross at the hole and land at the bottom. A smaller hole gives a sharper but dimmer picture. A bigger hole gives a brighter but blurrier one.

Slide the size of the hole. The brightness goes with the area of the hole. The blur is the width of the hole plus the spreading of light at a very small hole. So there is a best size in between. The page works this out for a box 10 centimetres deep. It is a toy sum.

A hole of 1.0 mm lets in 1.0 times the light of a 1 mm hole, and blurs the picture over about 1.1 mm. In this toy box the sharpest picture comes from a hole of about 0.37 mm.

Shot two

The f-number

A lens camera has an opening that can change size, called the aperture. The f-number is the focal length of the lens divided by the width of the opening. A small f-number means a wide opening and more light. Each full step in the series 1.4, 2, 2.8, 4, 5.6, 8, 11, 16 halves the light, because the area of the opening shrinks to half.

Pick an f-number. A wide opening also makes the blur behind the subject bigger, which is a shallower depth of field. The size of the blurred lights in the picture here is a toy.

At f/4 the opening lets in 0.13 times the light of f/1.4. A wide opening blurs the background more.

f-numberLight against f/1.4
f/1.41.000
f/20.500
f/2.80.250
f/40.125
f/5.60.062
f/80.031
f/110.016
f/160.008

Shot three

Balance the light

Three things set how bright a picture is. The aperture sets how much light comes in. The shutter time sets for how long. The ISO sets how much the signal from the sensor is boosted. Doubling any one of them makes the picture twice as bright, which is a stop. You can trade one for another, but each has a price. A slow shutter smears things that move. A high ISO adds noise.

Set the three. The picture is dark or bright against what this toy scene needs, which is f/4 at 1/250 of a second and ISO 100. A ball is moving, so watch the smear.

f/4, 1/250 s and ISO 100: the picture is about right. This toy scene needs f/4, 1/250 s and ISO 100.

Shot four

A picture is numbers

A digital sensor measures the light at a grid of points. Each point is a pixel, and a colour is stored as three numbers, for red, green and blue, each from 0 to 255. A picture is a long list of such numbers.

Slide the number of pixels along each side. With a few pixels the picture is blocks. With more, it fills in. The page also works out the size of the list if every pixel is kept as three bytes.

16 by 16 is 256 pixels. Each is three numbers, so the list has 768 numbers. A phone photo of 4,000 by 3,000 pixels has 12,000,000 pixels and, kept this way, takes 36.0 megabytes.

Key takeaways

  1. A camera is a dark box with an opening. Light from the scene makes a picture on the back wall, upside down.
  2. A smaller pinhole is sharper but dimmer. There is a best size, because a very small hole also spreads the light.
  3. The f-number is the focal length divided by the opening. Each full step in the series 1.4, 2, 2.8, 4, 5.6, 8, 11, 16 halves the light.
  4. Aperture, shutter time and ISO each double the brightness for one stop. A slow shutter smears movement and a high ISO adds noise.
  5. A digital picture is a grid of pixels, and each pixel is three numbers for red, green and blue.

Sources

Most of these sites could not be opened while this page was written, so the facts were checked through search results that quote them. The pinhole camera as a light tight box with a small hole and no lens, an upside down image, a smaller hole giving a sharper but dimmer image, the f-number as focal length divided by the width of the opening, each full stop halving the light with the series 1.4, 2, 2.8, 4, 5.6, 8, 11, 16, a wider aperture giving a shallower depth of field, a faster shutter freezing motion, and a higher ISO adding noise each appeared in at least two places. Sources did not explain the sensor in detail, so the pixel panel keeps to the plain idea of a grid of colour numbers. The sum for the best pinhole size (a hole width plus the spreading of light, for a box 10 centimetres deep and green light) is the page’s own simple optics. The toy scene that needs f/4 at 1/250 of a second and ISO 100, the size of the blurred lights and the smear of the ball are made up. Real cameras and real scenes differ.