Rocket lays out three tiny photo grids. Each one has only 9 pixels.
"How can the sorting model tell them apart?" he asks. "It only sees numbers!"
Raven studies the grids. "What do you notice? One is almost all gray. One is mostly green."
Nova bobs up and down. "Here is a hint," she says. "Count each color. Then compare."
A computer sees a photo as numbers. It can count them.
If most pixels are green, the photo might show a plant.
If most pixels are gray, it might show a rock. Or a metal tool!
Counting colors turns a photo into data the sorting model can use.
Here are three tiny photos. A means gray, W means white and G means green.
| Photo | Row 1 | Row 2 | Row 3 |
|---|---|---|---|
| Photo A | A A A | A W A | A A A |
| Photo B | G G W | G G G | W G G |
| Photo C | A A W | A A A | W A A |
A tally chart shows data so it is easy to compare.
Make one tally mark for each pixel of a color.
The longest row of tallies is the color the photo has most.
| Photo B colors | Tally | Count |
|---|---|---|
| Green (G) | |||| || | 7 |
| White (W) | || | 2 |
| Gray (A) | 0 |
| Statement about the tally | True or false? |
|---|---|
| Photo B has more green than white. | ? |
| Photo B has 0 gray pixels. | ? |
| The tally shows Photo B is mostly white. | ? |
| A tally chart helps us compare colors. | ? |
You turned photos into data! Tomorrow we review pixels and look at screens around us.