The basics of digital images
Pixels, channels and image dimensions.
What you will learn
- Counting the values in an image
- Understanding colour channels
An image is a matrix of pixels. Grayscale: one value per pixel (0 black to 255 white). Colour (RGB): three channels. A 224×224 colour image = 150,528 numbers.
In our digit classification project each image is 8×8 = 64 numbers between 0 and 16, which is enough for a simple model to learn to recognise the digits.
Implementation steps with the tool
- Open digits-8x8.csv and see how the images became 64 columns.
Quick review question
How many values are there in a 28×28 grayscale image?
