Chapter 1
To a computer, a picture is just numbers
A camera turns a mango into a grid of red, green and blue values. That grid is all the computer gets.
You look at this mango and just see a mango. A computer never does. A camera's sensor (CameraClear shows how) measures light in a grid of tiny squares called pixels, and each pixel becomes three numbers: how much red, green and blue light arrived, each from 0 to 255.
So this 32 × 24 picture is 2,304 numbers in a row. A phone photo of 12 megapixels is about 36 million. Somewhere in those numbers is a mango, but no single number says "mango".
The picture on the right is made live by a tiny renderer in this page: for every pixel it shoots rays from the camera into the 3D scene on the left, finds what they hit, and works out the light. Click any pixel to read its numbers.
Now the hard part. Turn the mango, move the camera or dim the lamp, and most of the numbers change. A different angle, size or light gives a completely different grid, for the same mango. Recognising things means finding what stays the same while all the numbers move. Your eyes and brain do this without effort (EyeClear and BrainClear show how). Computers had to learn it.


