01Chapter 1: An image is a grid of sampled numbersThis chapter assumes basic Python programming, familiarity with arrays or lists of numbers, and a basic understanding of binary values and bytes.2 min read
02Chapter 2: Width, height, and resolutionAssume you know basic Python and arrays. You should also be familiar with pixels, bytes, and common image files such as JPEG and PNG.2 min read
04Chapter 4: Channels: several numbers per pixelThis chapter assumes basic Python, arrays, bytes, and common image formats such as JPEG and PNG. A channel is one stream of numbers that describes one property of every pixel. An image may have one channel, three channels, or more.2 min read
05Chapter 5: Grayscale and binary imagesAssume you know basic Python and understand arrays, bytes, pixels, and bit depth. This chapter focuses on how colour images become grayscale or binary images, and when each representation is useful.2 min read
06Chapter 6: Colour from red, green, and blueAssume you know basic Python and can read an image as an array. This chapter focuses on the additive RGB model: representing each pixel with separate red, green, and blue channel values.1 min read
07Chapter 7: The alpha channel and transparencyAssume you know that an image is an array of pixels, that RGB uses three colour channels, and that an 8-bit channel stores values from 0 to 255. You should also be comfortable with basic arithmetic and Python.2 min read
08Chapter 8: Working out raw image sizeAssume you can read simple Python and understand arrays, bits, and bytes. An image is a grid with a width, a height, and one or more channels. A channel stores one value for each pixel, such as red, green, or blue.1 min read
09Chapter 9: How pixels are arranged in memoryAssume you know basic Python, arrays, bytes, and common image files. This chapter uses NumPy terminology, but the ideas apply to most image libraries.2 min read
10Chapter 10: RGB versus BGR and other channel ordersThis chapter assumes you know basic Python and arrays, including shapes, indexing, and bytes. You should also know that an image can have height, width, and several channel values per pixel.2 min read
11Chapter 11: What a colour space definesAssume you know basic arrays, bytes, and common image files such as JPEG and PNG. This chapter focuses on the working model: a colour space gives meaning to channel numbers.2 min read
12Chapter 12: Gamma encoding and linear lightThis chapter assumes you understand pixels, channels, arrays, and 8-bit values. You should also know that an RGB image stores three channel values, usually from 0 to 255.2 min read
13Chapter 13: sRGB, the default colour space of the webThis chapter assumes you understand pixels, channels, bit depth, and basic Python arrays. You should also know that gamma encoding stores light values nonlinearly.2 min read
14Chapter 14: HSV and HSL: hue, saturation, and valueAssume you know that an image can store RGB channel values and that Python arrays contain numbers. This chapter uses those ideas to explain two alternative colour models: HSV and HSL.2 min read
15Chapter 15: Separating brightness from colour with YCbCrAssume you understand RGB arrays, 8-bit channel values, and the difference between an image’s stored values and the colours displayed on screen. YCbCr is a colour representation commonly used for video, JPEG images, and image-processing pipelines.1 min read
16Chapter 16: Chroma subsampling: 4:4:4, 4:2:2, and 4:2:0This chapter assumes you know that an image is an array of pixels and that YCbCr separates brightness from colour information. You should also be comfortable with ratios and basic image file formats such as JPEG.2 min read
17Chapter 17: CIE XYZ and Lab: perceptual colour differencesAssume you understand RGB channels, arrays, bit depth, and the difference between a pixel value and a displayed colour. You should also know that an image can be stored in formats such as JPEG and PNG.2 min read
18Chapter 18: ICC profiles and colour managementAssume you know that an image stores channel values and that a colour space gives those values meaning. This chapter focuses on how software keeps that meaning consistent across cameras, monitors, printers, and image files.2 min read