Image analysis
A course on the mathematics and methods of digital image analysis, for students who have studied linear algebra and calculus. Most of image analysis turns out to be linear algebra and calculus in disguise: an image is a matrix, a geometric transform is a matrix acting on coordinates, a filter is a linear map, and the Fourier transform is a change of basis.
The course is built around interactive demos: change the input, and see what happens. Every unit has one; the demo gallery lists them all.
How each unit works
Work through the sidebar from top to bottom. Each unit has:
- a lecture (slides, green in the sidebar),
- a quiz (blue): short questions to check your understanding,
- an exercise: questions to do by hand, then an interactive demo (orange) with questions to explore.
Do the pen-and-paper questions first, then use the demo to check and extend them.
The material comes in two layers. The ideas (pictures, demos, plain explanations and small examples with numbers) are complete on their own. The math (formulas, derivations, proofs) is clearly marked: slides titled The math with a “math layer” badge, and questions tagged (math). On a first pass you can skim the math and still follow every idea; come back to it when you want the full story.
Topics
The course is one sequence of 55 one-day topics in nine parts. It is made for self-study: start at the top, or pick a topic and follow its prerequisites. Every quiz and exercise page starts with a short “Before this unit” box that links to what the unit builds on. The course overview shows all days as a map of prerequisites and gives a learning path to any topic. The topic pages follow one question across the course (segmentation, registration, finding points, removing noise, energy minimisation, eigenvectors) and point to the units that answer it.
- Part I: Images as numbers: images, filters, frequencies and principal components; edges, blobs and ridges; bit depth, noise and contrast transforms; image formation; deconvolution; splines and NURBS.
- Part II: Transforms and reconstruction: wavelets, image compression, the Radon transform and tomography, edge-preserving smoothing and PDEs, sparse representations.
- Part III: From pixels to objects: thresholding, morphology, labelling, watershed, measurements, skeletons, moments, spatial statistics of objects.
- Part IV: Detecting points, lines and features: point detection, the Hough transform, integral images.
- Part V: Aligning images and motion: FFT registration, keypoints and descriptors, optical flow, tracking.
- Part VI: Segmentation as optimisation: graph cuts, Ising models and Markov random fields, graph-based segmentation, snakes and active shape models, level sets, dynamic programming.
- Part VII: Learning from examples: random forests, support vector machines, Gaussian mixtures, neural networks, training networks in practice, evaluation and statistics, variational autoencoders, GANs and normalising flows, modern deep learning, learning without labels, networks for cells and objects (StarDist, Cellpose, YOLO and SAM running in your browser), fine-tuning and transfer learning, diffusion models.
- Part VIII: Colour and fluorescence: colour, spectral unmixing, colocalisation, FRET, fluorescence lifetime imaging.
- Part IX: 3D and computing: marching cubes, 3D graphics, geometry from multiple images, ray tracing, how GPUs work.