Skip to content
KinPilot™Learn & Explore
Menu

Grades 6–8 · Computing

How does a digital camera turn light into a picture?

Behind a digital camera’s lens is an image sensor covered with tiny light-sensitive sites. The lens forms an image across this array. During an exposure, photodiodes convert absorbed light into electrical charge. More light generally produces more collected charge, until the site reaches its capacity.

D46 visual explanationAn illustrative camera photosite receives 400 photons with fixed 50% conversion, producing 200 electrons before the imposed capacity. It collects 200 electrons up to capacity 300, then an invented linear 8-bit conversion rounds to 170. The separate Bayer tile has red, green, green and blue filters, one per photosite; neighboring samples help reconstruct full color. This ideal calculation excludes noise and is not a real sensor specification.A camera sensor turns light into numbersInvented pixel: 50% conversion; 300-electron capacity400 photonsduring exposure200 electronscollected charge8-bit converterNumber: 170More collected charge gives a larger number.RGGBOne filter per photositeNeighbor samples help estimatered, green and blue together.A common Bayer tile samples R, G, G and B.Illustrative charge model • noise and color processing simplified

In the diagramA camera sensor turns light into numbersInvented pixel: 50% conversion; 300-electron capacity400 photonsduring exposure200 electronscollected charge8-bit converterNumber: 170More collected charge gives a larger number.RGBOne filter per photositeNeighbor samples help estimatered, green and blue together.A common Bayer tile samples R, G, G and B.Illustrative charge model • noise and color processing simplified

Light becomes charge and then a number; the separate Bayer tile shows how nearby filtered samples contribute to reconstructed color.

Circuits read the charge as an electrical signal. An analog-to-digital converter assigns it a number that can be stored and processed. Photons are tiny packets of light. In the invented example, half of 400 incoming photons produce collected electrons, giving 200 electrons. The assigned capacity is 300 electrons, mapped to the top of a 0–255 number scale. The linear rule therefore gives 200 ÷ 300 × 255 = 170. Above capacity, extra light cannot increase the stored amount, so bright regions can lose detail through clipping.

Color needs another step. Many cameras place red, green or blue filters over individual photosites. A common Bayer pattern has one red, two green and one blue filter in a repeating tile. Each site measures light through its own filter, rather than separately measuring all three color components at exactly the same point.

Processing combines neighboring samples to estimate a full-color image, then adjusts the result for display or storage. This reconstruction is powerful, but it has limits: very fine repeating patterns can create false colors. A photograph is therefore both a measurement of light and a carefully processed interpretation of those measurements.

About this explanation

Starting knowledge: Understand that a lens forms an image and that digital information is stored as numbers.

Sources

  • Sony Semiconductor Solutions — Common Technology of Image Sensors
  • Sony Semiconductor Solutions — Security Camera Image Sensor Technology
  • Nikon — Moiré & False Color
← Grades 6–8 topics