Image analysis
  • Home
  • Demos
  1. Overview: prerequisites and learning paths
  • Home
  • All interactive demos
  • Overview: prerequisites and learning paths
  • Coding exercises: getting started
  • Topics
    • All topics
    • Eigenvectors in image analysis
    • Energy minimisation
    • Finding points
    • Registration and alignment
    • Removing noise
    • Segmentation
  • Part I: Images as numbers
    • Day 1: Images, filters and frequencies
      • Images as arrays & geometric transforms
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo
      • Filtering & convolution
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo
      • Images in frequency space
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: build a wave
        • Demo: filter an image
      • Principal component analysis
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo
    • Day 2: Edges, blobs and ridges
      • Edges: Gaussian derivatives and Canny
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: smoothing before differentiating
        • Demo: Canny step by step
      • Scale space, blobs and pyramids
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: a 1D scale space
        • Demo: blobs over scales
      • The Hessian: blobs, ridges and saddles
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: the Hessian per pixel
      • The structure tensor: orientation and corners
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: the structure tensor
    • Day 3: Bit depth and noise
      • Quantisation and bit depth
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo
      • Camera noise, SNR and PSNR
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo
      • 12- and 16-bit images in practice
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo
        • Demo: CT windows
      • Contrast and intensity transforms
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: tone curves
        • Demo: equalisation
        • Demo: CLAHE
        • Demo: display vs data
      • Floating point
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo
        • Demo: summing many pixels
    • Day 4: Image formation
      • Image formation and the point spread function
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo
      • Resolution, sampling and measuring the PSF
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: two points on a pixel grid
        • Demo: the axial PSF
        • Demo: measuring a PSF from beads
      • Running the model backwards: an ill-posed problem
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo
    • Day 5: Deconvolution
      • Linear deconvolution: inverse, Wiener, Tikhonov
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: deconvolution lab
      • Regularisation: what we add, and how much
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: the regularisation path
      • Richardson–Lucy, 3D, and the PSF
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: Richardson–Lucy step by step
        • Demo: a 3D stack
      • Denoising and what you may measure
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: denoisers
        • Demo: what may be measured
    • Day 6: Splines and NURBS
      • Polynomial wiggles, piecewise cubics and Bézier curves
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: Runge’s phenomenon
        • Demo: de Casteljau and joins
      • B-splines and NURBS
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: B-spline basis functions
        • Demo: B-spline and NURBS curves
      • Interpolating, approximating and smoothing splines
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: interpolate, approximate, smooth
        • Demo: smooth outlines from pixels
      • Splines on images: interpolation and free-form deformation
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: image interpolation beyond bilinear
        • Demo: free-form deformation
  • Part II: Transforms and reconstruction
    • Day 7: Wavelets
      • Localised basis functions and the Haar transform
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: the Haar transform step by step
        • Demo: sparsity in two bases
      • Multiresolution, filter banks and Daubechies wavelets
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: the filter bank
        • Demo: smoother wavelets, sparser coefficients
      • The 2D wavelet transform and sparsity of images
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: subbands, keep the largest, compare bases
      • Denoising by wavelet shrinkage
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: denoising an image
        • Demo: denoising a 1D signal
    • Day 8: Image compression
      • Information, entropy and entropy codes
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: build a Huffman code
      • Prediction, dictionaries and lossless formats
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: prediction and residuals
      • Transform coding, the DCT and the KLT
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: one block in three bases
        • Demo: periodic or mirrored?
        • Demo: the whole image, three bases
      • The JPEG pipeline, artefacts and quality metrics
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: JPEG
        • Demo: same MSE, different quality
      • Compression and measurements, JPEG 2000, formats
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: what compression does to measurements
    • Day 9: Radon transform and tomography
      • Projections and the sinogram
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: projections and the sinogram
      • Back-projection and the Fourier slice theorem
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: back-projection
        • Demo: the Fourier slice theorem
      • Filtered back-projection and sampling
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: filters, dose and padding
        • Demo: how much data?
      • Reconstruction as a linear system
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: ART and SIRT by hand
        • Demo: iterative reconstruction
    • Day 10: Edge-preserving smoothing and PDEs
      • Smoothing as heat flow: the heat equation and explicit schemes
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: heat flow, stability and implicit steps
      • Edge-stopping diffusion: Perona–Malik
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: edge-stopping diffusion
      • Total variation flow: smoothing as energy descent
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: TV flow on plateaus, discs and images
      • Neighbourhood filters in depth: bilateral and non-local means
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: bilateral and NLM weight maps
      • Filling holes: diffusion and exemplar inpainting
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: inpainting by diffusion, TV and exemplars
      • All smoothers on one image
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: eight smoothers compared
    • Day 11: Sparse representations
      • Sparsity and the ℓ1 penalty
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: the lasso picture
      • Solving with ℓ1: thresholding iterations and pursuit
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: ISTA, FISTA and OMP
        • Demo: restoring images with a sparsity prior
      • Compressed sensing
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: recovering a sparse signal
        • Demo: the phase transition
      • Fast MRI with compressed sensing
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: compressed-sensing MRI
      • Sparse coding and dictionary learning
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: learning a patch dictionary
        • Demo: restoring with dictionaries
  • Part III: From pixels to objects
    • Day 12: Thresholding
      • Histograms & a global threshold
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: histogram and threshold
      • Choosing the threshold: Otsu & minimum error
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: Otsu by hand
        • Demo: two Gaussians, six thresholds
        • Demo: Otsu on the micrograph
      • Local thresholds & hysteresis
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: local thresholds
        • Demo: hysteresis
      • Evaluation: Dice, ROC & precision–recall
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: ROC and precision–recall
    • Day 13: Morphology
      • Erosion and dilation
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: erosion and dilation step by step
      • Opening, closing & the distance transform
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: opening and closing step by step
        • Demo: the two-pass distance transform
        • Demo: granulometry
      • Grey-level morphology: top-hat & gradient
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: rolling the SE along a profile
        • Demo: top-hat on an uneven background
      • Reconstruction & h-extrema
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: reconstruction in 1D
        • Demo: reconstruction on images
    • Day 14: Labelling
      • Connectivity and labelling
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: the connectivity paradox
        • Demo: union–find forests
        • Demo: labelling step by step
      • Region properties and moments
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo
      • Shape features
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo
      • Working with label images
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo
    • Day 15: Watershed
      • Images as landscapes: watershed by flooding
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: flooding a profile
        • Demo: h-minima in 1D
      • The flooding algorithm on a grid
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: step through the queue
      • Watershed segmentation of a real image
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: watershed of an image
      • Splitting touching objects with the distance transform
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: distance transform and watershed
    • Day 16: Measurements
      • Intensity inside an object
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo
      • Texture: co-occurrence matrices
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo
      • Neighbours, parents and children
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo
    • Day 17: Skeletons
      • Hit-or-miss and thinning
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: hit-or-miss and thinning on a grid
      • Medial axis, distance transform and reconstruction
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: maximal discs and the grassfire
      • From skeleton to graph: pruning and length
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: skeleton graph, pruning and length
      • Measuring neurons and vessel networks
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: neurons and vessels against the truth
    • Day 18: Moments
      • Moments as projections onto monomials
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo
      • Normalisation and moment invariants
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: complex moments as arrows
        • Demo: which moments survive?
      • Better bases: Legendre moments and reconstruction
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: monomials and Legendre
        • Demo: rebuild an image from its moments
      • Zernike moments on the unit disc
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: Zernike polynomials and rotation
        • Demo: the disc and the noise
    • Day 19: Spatial statistics of objects
      • Point patterns and complete spatial randomness
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: point patterns and CSR
      • Nearest neighbours and empty space: G, F and J
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: G, F and J
      • Ripley’s K, the L function and the pair correlation
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: K, L and the pair correlation
      • Is it more than chance? Simulation envelopes
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: envelopes and global tests
      • Two cell types and an uneven density
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: two cell types
  • Part IV: Detecting points, lines and features
    • Day 20: Point detection
      • Finding spots: filter, then local maxima
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: spots in 1D
        • Demo: spot detection
      • How many false spots? Thresholds from noise
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: how many false spots?
      • Sub-pixel localisation and the Cramér–Rao bound
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: localising one spot
      • Crowded spots and evaluating a detector
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: two spots
        • Demo: evaluating a spot detector
    • Day 21: Hough transform
      • Hough transform: lines
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: points and their curves
        • Demo: line detection
      • Hough transform: circles
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: circle detection
      • The generalised Hough transform
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: R-table and shape voting
      • Hypothesise and verify: RANSAC
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: RANSAC step by step
    • Day 22: Integral images
      • Integral images: any rectangle in four lookups
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: running totals and the summed-area table
      • Box filters & local statistics
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: box filters and their cost
        • Demo: local statistics and precision
      • Rectangle features
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: rectangle features on images
        • Demo: a box feature stack
      • Boosted detectors & the cascade
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: boosting and the cascade
  • Part V: Aligning images and motion
    • Day 23: FFT registration
      • Finding a shift by sliding and scoring
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: sliding and scoring
        • Demo: template matching
      • Cross-correlation with the FFT
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: correlation by FFT
      • Phase correlation
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: phase correlation
      • From a peak to a mosaic
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: stitching a mosaic
        • Demo: sub-pixel estimates
        • Demo: drift correction
    • Day 24: Keypoints and descriptors
      • Keypoints: corners and blobs across scale
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: the DoG pyramid, step by step
        • Demo: repeatability of detectors
      • Describing a keypoint: gradient histograms and bits
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: a descriptor, step by step
      • Matching descriptors: nearest, ratio and mutual
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: matching descriptors
      • From matches to a transform: RANSAC, stitching and registration
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: the transform zoo
        • Demo: RANSAC on matches and a mosaic
      • Aligning point sets: iterative closest point
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: ICP step by step
    • Day 25: Optical flow
      • Motion between frames: brightness constancy and the aperture problem
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: speed from slope and change (kymograph)
        • Demo: reading flow fields
        • Demo: the aperture
      • Lucas–Kanade: local least squares and pyramids
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: Lucas–Kanade on a frame pair
      • Horn–Schunck and evaluating flow
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: Horn–Schunck
      • Non-rigid registration
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: joint histogram and similarity
        • Demo: free-form registration
    • Day 26: Tracking
      • From detections to tracks
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: linking two frames
        • Demo: a simulated movie
      • Motion models and the Kalman filter
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: the Kalman filter step by step
        • Demo: linking with prediction
      • Gaps, divisions and lineage trees
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: gaps, divisions and lineage trees
      • Speed, MSD and modes of motion
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: the mean squared displacement
  • Part VI: Segmentation as optimisation
    • Day 27: Graph cuts
      • Segmentation as energy minimisation
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo
      • Graphs, cuts and maximum flow
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo
      • Graph-cut segmentation
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: the graph of a small image
        • Demo: interactive segmentation
      • Spectral partitioning and normalized cuts
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo
    • Day 28: Ising model and Markov random fields
      • Energy and probability: the Ising model
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: every state of a tiny lattice
      • Sampling, temperature and the phase transition
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: sampling the 3×3 lattice
        • Demo: the 2D Ising lattice
      • Bayesian denoising with an Ising prior
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: denoising a binary image
      • Quadratic smoothing and total variation
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: quadratic, Huber and TV in 1D
    • Day 29: Graph-based segmentation
      • The random walker
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: the random walker on a chain
        • Demo: painting seeds
      • Spanning trees: single linkage and FH
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: spanning trees step by step
        • Demo: FH and single linkage on an image
      • Watershed as a minimum spanning forest
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: Prim from markers
        • Demo: three methods on the same seeds
      • Hierarchical segmentation and merge trees
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: merge trees
      • Superpixels: SLIC and smaller graphs
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: SLIC
    • Day 30: Snakes and active shape models
      • Active contours (snakes)
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: a snake on an image
      • The snake as a linear system
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: the modes of a snake
        • Demo: balloon, GVF and the matrix
      • Shape models: landmarks, Procrustes and PCA
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: Procrustes step by step
        • Demo: a point distribution model
      • Active shape models
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: active shape model search
    • Day 31: Level sets
      • Curves as level sets
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo
      • Moving a curve: the level set equation
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo
      • Edge-based segmentation: geodesic active contours
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo
      • Region-based segmentation: Chan–Vese
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo
    • Day 32: Dynamic programming
      • The DP principle: minimal paths on a grid
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: the DP table step by step
      • Closed boundaries: DP in polar coordinates
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: boundaries in polar coordinates
      • When there is no order: Dijkstra and live-wire
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: Dijkstra step by step
        • Demo: live-wire
      • From Dijkstra to fast marching
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: fast marching vs Dijkstra
  • Part VII: Learning from examples
    • Day 33: Random forests
      • Decision trees
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: grow a decision tree
      • Bagging and random forests
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: bootstrap and averaging
        • Demo: a forest in the plane
      • Feature tables & feature importance
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: feature importance
      • Pixel classification with a forest
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: paint and classify pixels
    • Day 34: Support vector machines
      • Linear classifiers
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: a linear classifier
      • Maximum margin and support vectors
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: the widest street
        • Demo: four losses
      • Kernel functions and the kernel trick
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: lift and cut
        • Demo: kernel functions in 2D
      • SVMs for pixel classification
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: an SVM in the pixel classifier
        • Demo: train vs test and cross-validation
    • Day 35: Gaussian mixtures
      • Feature spaces & k-means
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: k-means step by step
      • The multivariate Gaussian & mixtures
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: Gaussians, ellipses and mixtures
      • Fitting a mixture: EM
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: EM step by step (1D)
        • Demo: EM in 2D
      • Mixtures on images
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: grey-level mixtures
        • Demo: colour segmentation
    • Day 36: Neural networks
      • Neural networks: matrix, bend, matrix
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: fit a line scan
        • Demo: classify points
      • Learning: loss, gradient descent and backpropagation
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: backpropagation step by step
        • Demo: gradient descent on a landscape
        • Demo: overfitting and its cures
      • Convolutional networks
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: one convolutional layer
        • Demo: receptive fields
        • Demo: inside a trained network
      • Segmentation networks
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: a U-Net segments nuclei
    • Day 37: Training networks in practice
      • Optimisers and learning rates
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: optimiser race
      • Initialisation, normalisation and residual connections
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: a deep stack
      • Regularisation and data augmentation
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: augmentation explorer
        • Demo: training with and without augmentation
      • Reading training curves
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: the curve doctor
    • Day 38: Evaluation and statistics
      • Matching objects: IoU, F1 and average precision
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo
      • Boundaries, counts and the uncertain ground truth
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: boundary distances
        • Demo: Bland–Altman
      • Honest validation: leakage, splits and domain shift
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: five ways to split
        • Demo: peeking at the test set
      • From measurements to claims
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: pseudoreplication
        • Demo: many features on a plate
    • Day 39: Variational autoencoders
      • From PCA to autoencoders
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo
      • The variational autoencoder
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo
      • Generating and exploring images with a VAE
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo
    • Day 40: GANs and normalising flows
      • Generative adversarial networks
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: a GAN in one dimension
      • Training GANs and what goes wrong
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: when GAN training goes wrong
      • Image-to-image translation and hallucination
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: one pixel, three translators
      • Normalising flows
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: a flow, layer by layer
    • Day 41: Modern deep learning
      • From masks to objects
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo
      • Finding objects as boxes
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo
      • Attention, transformers and pretrained models
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: attention on patches
        • Demo: frozen features and a probe
        • Demo: calibration
      • Diffusion models and generated detail
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: diffusion in 2D
        • Demo: which details are real?
    • Day 42: Learning without labels
      • Pretext tasks and masked image modelling
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: fill the hidden patches
      • Contrastive learning
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: views pulled and pushed
      • Self-distillation and foundation models
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: frozen features (attention unit)
      • Self-supervised denoising
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: Noise2Void on one image
    • Day 43: Networks for cells and objects
      • Star-convex polygons
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: the real network
        • Demo: rays, polygons and decoding
        • Demo: a C-shape in four routes
      • Flow fields to objects
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: following the arrows
        • Demo: Cellpose on real images
      • From an image to a list of objects
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: the real network
        • Demo: anchors and heat maps
        • Demo: decoding a simulated network
      • Promptable segmentation
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: the real network
        • Demo: a toy you can open up
      • Networks and classical pipelines compared
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: networks against a classical pipeline
    • Day 44: Fine-tuning and transfer learning
      • Transfer learning
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: four networks side by side
      • Fine-tuning strategies
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: low-rank changes
      • Few labels: annotation and the human in the loop
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: which cell next?
      • Domain shift and adaptation
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: two microscopes
    • Day 45: Diffusion models
      • Noise levels, denoisers and the score
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: noise against the spectrum
        • Demo: pairs, averages and a learned network
      • Samplers, steps, and judging the samples
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: samplers in 1D
        • Demo: judging the samples
      • Conditioning, guidance and latent diffusion
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: guidance in 1D
        • Demo: latent diffusion on cell shapes
      • Diffusion priors for inverse problems
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: measured and imagined, in 1D
        • Demo: what virtual staining can know
      • Drifting: generating in one step
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: drifting points and a one-pass generator
  • Part VIII: Colour and fluorescence
    • Day 46: Colour
      • From a spectrum to three numbers
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: from a spectrum to three numbers
        • Demo: the chromaticity diagram
      • RGB: gamma, linear maps & white balance
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: blur in linear light
        • Demo: colour as a matrix
        • Demo: white balance
      • HSV, CIELAB & colour segmentation
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: the colour cloud
        • Demo: colour segmentation
      • Colour for display: maps, merges & decorrelation
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: colour maps
        • Demo: PCA of the colour cloud
    • Day 47: Spectral unmixing
      • Bleed-through and compensation
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: spectra, filters and the mixing matrix
        • Demo: compensate a two-colour image
      • Least-squares unmixing
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: unmix a lambda stack
      • Endmembers: the geometry of mixtures
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: the cloud, the cone and the simplex
        • Demo: finding the spectra
      • Stain separation: colour deconvolution
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: separate H&E
        • Demo: H-DAB, count positive nuclei
    • Day 48: Colocalisation
      • Colocalisation of two channels
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: coefficients on a grid
        • Demo: colocalisation
      • Is it more than chance?
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: shift curves, randomisation, ICQ
      • Objects instead of pixels
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: distances and chance
      • What the microscope does to colocalisation
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: confounds and corrections
    • Day 49: FRET
      • FRET in pictures: a ruler for nanometres
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: the ruler
      • Three images, two controls: sensitised emission
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: three images, two controls
      • Acceptor photobleaching, and what an efficiency means
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: bleach the acceptor
      • Ratio imaging, biosensors and the noise of a ratio
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: ratio images
        • Demo: the noise of a ratio
    • Day 50: Fluorescence lifetime imaging (FLIM)
      • Lifetimes, decays and photon counting
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: photons into a histogram
        • Demo: a lifetime image
      • Fitting decays with few photons
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: fit a decay
        • Demo: the photon budget
        • Demo: global analysis of an image
      • Frequency domain and phasors
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: excitation and emission waves
        • Demo: the phasor plot
        • Demo: a cell on the phasor plot
      • FLIM-FRET and metabolic imaging
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: FRET on the phasor plot
        • Demo: a FRET cell and a NADH cell
  • Part IX: 3D and computing
    • Day 51: Marching cubes
      • 3D images
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: the volume viewer
      • Level sets & marching squares
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: marching squares by hand
        • Demo: contours of an image
      • Marching cubes
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: one cube
        • Demo: marching cubes on a volume
      • Measuring surfaces
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: voxel faces vs marching cubes
        • Demo: volume against c
        • Demo: binary masks and decimation
    • Day 52: 3D graphics
      • Meshes, coordinate spaces and projection
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo
      • From triangles to shaded pixels
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: a rasteriser, pixel by pixel
        • Demo: shading
      • How graphics cards store colour
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo
      • Seeing voxels: projections and volume rendering
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: compositing one ray
        • Demo: volume rendering
    • Day 53: Geometry from multiple images
      • The pinhole camera and calibration
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: the pinhole camera
        • Demo: calibrating a camera
      • Two views: epipolar geometry, triangulation
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: triangulation in flatland
        • Demo: epipolar geometry and estimating F
      • Stereo: from disparity to depth
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: the cost slice
        • Demo: stereo matching
      • Structure from motion and bundle adjustment
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: plane sweep in flatland
        • Demo: bundle adjustment in flatland
    • Day 54: Ray tracing
      • Rays from the camera, and where they hit
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: a step-through ray caster
      • Shadows, mirrors and glass
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: rays in 2D
        • Demo: ray trees
      • Tracing fast: boxes, trees and grids
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: boxes, grids and tests
      • Path tracing: Monte Carlo and noise
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: one pixel’s integral
        • Demo: a path tracer
    • Day 55: How GPUs work
      • Many simple cores: throughput, warps and divergence
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: CPU vs GPU filter
        • Demo: warps and divergence
      • Memory is the bottleneck
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: coalescing and tiles
        • Demo: roofline and end to end
      • Data-parallel patterns
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: patterns step by step
      • What GPUs are good and bad at
        • Lecture (slides)
        • Quiz
        • Exercise
        • Demo: irregular algorithms in parallel
        • Demo: precision and the roofline

Course overview

All days of the course and what each one builds on: pick a topic and get a learning path.

The course is one sequence of days in nine parts, and every day comes after what it needs. You do not have to take it from the top: pick the topic you want, and this page shows what it builds on and an order in which to learn just that.

  • Click a day (a box) to see everything it needs, highlighted in the graph, and a learning path on the right below the graph. The small bars inside a box are the day’s units: click one to get the path to that unit alone, which is often shorter.
  • Search for a topic, a method or a word from a title, e.g. Fourier, watershed or Hessian.
  • A solid arrow means “needs” (a hard prerequisite); a dashed one means “see also” (useful background, not required). Zoom with the buttons or Ctrl + wheel, and drag to move around.

All days as a list

The same content as the graph, as text. Each day names the days it needs; a unit that needs more than its day says so. Links go to the lecture of a unit, with its quiz and exercise next to it.

Part I: Images as numbers

Day 1: Images, filters and frequencies

Needs: nothing earlier.

Topics: image = matrix, affine transforms and homogeneous coordinates, interpolation; convolution and border rules; the DFT, convolution theorem, sampling and aliasing; PCA (2D picture, covariance, eigenvectors).

  1. Images as arrays & geometric transforms (quiz, exercise)
  2. Filtering & convolution (quiz, exercise)
  3. Images in frequency space (quiz, exercise)
  4. Principal component analysis (quiz, exercise)

Day 2: Edges, blobs and ridges

Needs: Day 1: Images, filters and frequencies.

Topics: Gaussian derivatives, LoG/DoG, Hessian, structure tensor, Canny, scale space; hysteresis (introduced inside Canny).

  1. Edges: Gaussian derivatives and Canny (quiz, exercise)
  2. Scale space, blobs and pyramids (quiz, exercise)
  3. The Hessian: blobs, ridges and saddles (quiz, exercise)
  4. The structure tensor: orientation and corners (quiz, exercise)

Day 3: Bit depth and noise

Needs: Day 1: Images, filters and frequencies.

Topics: noise models, SNR, PSNR (cameranoise/); point operations, gamma/log, histogram equalisation, CLAHE, histogram matching, the cumulative histogram (contrast/); integer types and floating point.

  1. Quantisation and bit depth (quiz, exercise)
  2. Camera noise, SNR and PSNR (quiz, exercise)
  3. 12- and 16-bit images in practice (quiz, exercise)
  4. Contrast and intensity transforms (quiz, exercise)
  5. Floating point (quiz, exercise)

Day 4: Image formation

Needs: Day 1: Images, filters and frequencies.

See also: Day 3: Bit depth and noise, Day 2: Edges, blobs and ridges.

Topics: PSF, OTF, sampling/Nyquist in optics, the forward model.

  1. Image formation and the point spread function (quiz, exercise)
  2. Resolution, sampling and measuring the PSF (quiz, exercise)
  3. Running the model backwards: an ill-posed problem (quiz, exercise)

Day 5: Deconvolution

Needs: Day 4: Image formation, Day 3: Bit depth and noise.

Topics: deconvolution (inverse filtering, Wiener, Tikhonov, Richardson–Lucy, blind); regularisation of inverse problems (data + λ·penalty, choosing λ, early stopping); the median as a denoiser; restoration artefacts.

  1. Linear deconvolution: inverse, Wiener, Tikhonov (quiz, exercise)
  2. Regularisation: what we add, and how much (quiz, exercise)
  3. Richardson–Lucy, 3D, and the PSF (quiz, exercise)
  4. Denoising and what you may measure (quiz, exercise)

Day 6: Splines and NURBS

Needs: Day 1: Images, filters and frequencies.

See also: Day 5: Deconvolution, Day 14: Labelling.

Topics: spline theory (Bézier, B-splines, NURBS, smoothing splines).

  1. Polynomial wiggles, piecewise cubics and Bézier curves (quiz, exercise)
  2. B-splines and NURBS (quiz, exercise)
  3. Interpolating, approximating and smoothing splines (quiz, exercise)
  4. Splines on images: interpolation and free-form deformation (quiz, exercise)

Part II: Transforms and reconstruction

Day 7: Wavelets

Needs: Day 1: Images, filters and frequencies.

See also: Day 3: Bit depth and noise.

Topics: Haar, multiresolution, filter banks, the DWT; wavelet shrinkage (first special case of sparsity).

  1. Localised basis functions and the Haar transform (quiz, exercise)
  2. Multiresolution, filter banks and Daubechies wavelets (quiz, exercise)
  3. The 2D wavelet transform and sparsity of images (quiz, exercise)
  4. Denoising by wavelet shrinkage (quiz, exercise)

Day 8: Image compression

Needs: Day 7: Wavelets.

See also: Day 3: Bit depth and noise, Day 46: Colour, Day 18: Moments.

Topics: information and entropy; DCT, KLT, JPEG; MSE/PSNR vs SSIM for compression.

  1. Information, entropy and entropy codes (quiz, exercise)
  2. Prediction, dictionaries and lossless formats (quiz, exercise)
  3. Transform coding, the DCT and the KLT (quiz, exercise)
  4. The JPEG pipeline, artefacts and quality metrics (quiz, exercise)
  5. Compression and measurements, JPEG 2000, formats (quiz, exercise)

Day 9: Radon transform and tomography

Needs: Day 1: Images, filters and frequencies.

See also: Day 4: Image formation, Day 5: Deconvolution, Day 21: Hough transform, Day 28: Ising model and Markov random fields.

Topics: Radon transform; Fourier slice theorem, filtered back-projection, algebraic reconstruction.

  1. Projections and the sinogram (quiz, exercise)
  2. Back-projection and the Fourier slice theorem (quiz, exercise)
  3. Filtered back-projection and sampling (quiz, exercise)
  4. Reconstruction as a linear system (quiz, exercise)

Day 10: Edge-preserving smoothing and PDEs

Needs: Day 5: Deconvolution, Day 2: Edges, blobs and ridges.

See also: Day 28: Ising model and Markov random fields, Day 31: Level sets.

Topics: nonlinear diffusion, TV flow, explicit-scheme stability for diffusion; bilateral filter and non-local means in depth; classical inpainting.

  1. Smoothing as heat flow: the heat equation and explicit schemes (quiz, exercise)
  2. Edge-stopping diffusion: Perona–Malik (quiz, exercise)
  3. Total variation flow: smoothing as energy descent (quiz, exercise)
  4. Neighbourhood filters in depth: bilateral and non-local means (quiz, exercise)
  5. Filling holes: diffusion and exemplar inpainting (quiz, exercise)
  6. All smoothers on one image (quiz, exercise)

Day 11: Sparse representations

Needs: Day 7: Wavelets, Day 5: Deconvolution.

See also: Day 8: Image compression, Day 9: Radon transform and tomography, Day 28: Ising model and Markov random fields.

Topics: sparsity priors in general (ℓ0/ℓ1, lasso, ISTA, compressed sensing, dictionaries).

  1. Sparsity and the ℓ1 penalty (quiz, exercise)
  2. Solving with ℓ1: thresholding iterations and pursuit (quiz, exercise)
  3. Compressed sensing (quiz, exercise)
  4. Fast MRI with compressed sensing (quiz, exercise)
  5. Sparse coding and dictionary learning (quiz, exercise); see also Transform coding, the DCT and the KLT (day 8)

Part III: From pixels to objects

Day 12: Thresholding

Needs: Day 1: Images, filters and frequencies.

See also: Day 3: Bit depth and noise, Day 2: Edges, blobs and ridges.

Topics: histograms and thresholds; Dice/ROC for pixels; hysteresis as a segmentation tool; segmentation vocabulary (mask, foreground, ground truth).

  1. Histograms & a global threshold (quiz, exercise)
  2. Choosing the threshold: Otsu & minimum error (quiz, exercise)
  3. Local thresholds & hysteresis (quiz, exercise)
  4. Evaluation: Dice, ROC & precision–recall (quiz, exercise)

Day 13: Morphology

Needs: Day 12: Thresholding.

Topics: distance transform; rank filters, reconstruction, h-extrema.

  1. Erosion and dilation (quiz, exercise)
  2. Opening, closing & the distance transform (quiz, exercise)
  3. Grey-level morphology: top-hat & gradient (quiz, exercise)
  4. Reconstruction & h-extrema (quiz, exercise)

Day 14: Labelling

Needs: Day 13: Morphology.

Topics: connected components; region properties and the measurement table.

  1. Connectivity and labelling (quiz, exercise)
  2. Region properties and moments (quiz, exercise)
  3. Shape features (quiz, exercise)
  4. Working with label images (quiz, exercise)

Day 15: Watershed

Needs: Day 14: Labelling.

See also: Day 2: Edges, blobs and ridges.

Topics: watershed by flooding, markers.

  1. Images as landscapes: watershed by flooding (quiz, exercise)
  2. The flooding algorithm on a grid (quiz, exercise)
  3. Watershed segmentation of a real image (quiz, exercise)
  4. Splitting touching objects with the distance transform (quiz, exercise)

Day 16: Measurements

Needs: Day 14: Labelling.

See also: Day 13: Morphology, Day 3: Bit depth and noise.

Topics: the catalogue of per-object measures; texture (co-occurrence) features.

  1. Intensity inside an object (quiz, exercise)
  2. Texture: co-occurrence matrices (quiz, exercise)
  3. Neighbours, parents and children (quiz, exercise)

Day 17: Skeletons

Needs: Day 14: Labelling, Day 2: Edges, blobs and ridges.

See also: Day 15: Watershed, Day 16: Measurements.

Topics: hit-or-miss, thinning, medial axis, skeleton graphs.

  1. Hit-or-miss and thinning (quiz, exercise)
  2. Medial axis, distance transform and reconstruction (quiz, exercise)
  3. From skeleton to graph: pruning and length (quiz, exercise)
  4. Measuring neurons and vessel networks (quiz, exercise); also needs The Hessian: blobs, ridges and saddles (day 2)

Day 18: Moments

Needs: Day 14: Labelling.

See also: Day 33: Random forests.

Topics: moment invariants, Legendre and Zernike moments.

  1. Moments as projections onto monomials (quiz, exercise)
  2. Normalisation and moment invariants (quiz, exercise)
  3. Better bases: Legendre moments and reconstruction (quiz, exercise)
  4. Zernike moments on the unit disc (quiz, exercise); see also Images in frequency space (day 1)

Day 19: Spatial statistics of objects

Needs: Day 16: Measurements.

See also: Day 20: Point detection, Day 38: Evaluation and statistics, Day 48: Colocalisation.

Topics: point-pattern statistics (CSR, G/F/J, K/L/g, edge corrections, envelopes, cross/mark functions).

  1. Point patterns and complete spatial randomness (quiz, exercise)
  2. Nearest neighbours and empty space: G, F and J (quiz, exercise)
  3. Ripley’s K, the L function and the pair correlation (quiz, exercise)
  4. Is it more than chance? Simulation envelopes (quiz, exercise)
  5. Two cell types and an uneven density (quiz, exercise); see also Objects instead of pixels (day 48)

Part IV: Detecting points, lines and features

Day 20: Point detection

Needs: Day 2: Edges, blobs and ridges.

See also: Day 3: Bit depth and noise, Day 4: Image formation, Day 13: Morphology, Day 38: Evaluation and statistics.

Topics: spot detection, detection thresholds from noise, sub-pixel localisation.

  1. Finding spots: filter, then local maxima (quiz, exercise)
  2. How many false spots? Thresholds from noise (quiz, exercise)
  3. Sub-pixel localisation and the Cramér–Rao bound (quiz, exercise)
  4. Crowded spots and evaluating a detector (quiz, exercise); see also Matching objects: IoU, F1 and average precision (day 38)

Day 21: Hough transform

Needs: Day 2: Edges, blobs and ridges.

See also: Day 12: Thresholding, Day 9: Radon transform and tomography.

Topics: Hough voting, RANSAC.

  1. Hough transform: lines (quiz, exercise)
  2. Hough transform: circles (quiz, exercise)
  3. The generalised Hough transform (quiz, exercise)
  4. Hypothesise and verify: RANSAC (quiz, exercise)

Day 22: Integral images

Needs: Day 1: Images, filters and frequencies.

See also: Day 3: Bit depth and noise, Day 12: Thresholding, Day 33: Random forests, Day 7: Wavelets.

Topics: integral image; boosting.

  1. Integral images: any rectangle in four lookups (quiz, exercise)
  2. Box filters & local statistics (quiz, exercise)
  3. Rectangle features (quiz, exercise); see also Localised basis functions and the Haar transform (day 7)
  4. Boosted detectors & the cascade (quiz, exercise); see also Decision trees (day 33)

Part V: Aligning images and motion

Day 23: FFT registration

Needs: Day 1: Images, filters and frequencies.

Topics: NCC, template matching; phase correlation, stitching.

  1. Finding a shift by sliding and scoring (quiz, exercise)
  2. Cross-correlation with the FFT (quiz, exercise)
  3. Phase correlation (quiz, exercise)
  4. From a peak to a mosaic (quiz, exercise)

Day 24: Keypoints and descriptors

Needs: Day 2: Edges, blobs and ridges.

See also: Day 21: Hough transform, Day 23: FFT registration, Day 20: Point detection.

Topics: feature matching (descriptors, ratio test, cross-check, RANSAC on matches); aligning point sets without correspondences (ICP, trimmed ICP).

  1. Keypoints: corners and blobs across scale (quiz, exercise)
  2. Describing a keypoint: gradient histograms and bits (quiz, exercise)
  3. Matching descriptors: nearest, ratio and mutual (quiz, exercise)
  4. From matches to a transform: RANSAC, stitching and registration (quiz, exercise); see also Hypothesise and verify: RANSAC (day 21)
  5. Aligning point sets: iterative closest point (quiz, exercise); see also Shape models: landmarks, Procrustes and PCA (day 30), From detections to tracks (day 26)

Day 25: Optical flow

Needs: Day 2: Edges, blobs and ridges, Day 23: FFT registration.

See also: Day 5: Deconvolution, Day 6: Splines and NURBS.

Topics: optical flow, non-rigid registration.

  1. Motion between frames: brightness constancy and the aperture problem (quiz, exercise)
  2. Lucas–Kanade: local least squares and pyramids (quiz, exercise); also needs The structure tensor: orientation and corners (day 2)
  3. Horn–Schunck and evaluating flow (quiz, exercise)
  4. Non-rigid registration (quiz, exercise); see also Splines on images: interpolation and free-form deformation (day 6), Information, entropy and entropy codes (day 8)

Day 26: Tracking

Needs: Day 14: Labelling, Day 20: Point detection.

See also: Day 23: FFT registration, Day 16: Measurements, Day 38: Evaluation and statistics, Day 35: Gaussian mixtures.

Topics: linking, motion models and the Kalman filter, lineages, MSD.

  1. From detections to tracks (quiz, exercise); see also Matching objects: IoU, F1 and average precision (day 38)
  2. Motion models and the Kalman filter (quiz, exercise); see also The multivariate Gaussian & mixtures (day 35)
  3. Gaps, divisions and lineage trees (quiz, exercise)
  4. Speed, MSD and modes of motion (quiz, exercise)

Part VI: Segmentation as optimisation

Day 27: Graph cuts

Needs: Day 12: Thresholding.

See also: Day 13: Morphology, Day 15: Watershed.

Topics: energy minimisation (data + λ·smoothness); graphs, max-flow/min-cut, normalized cuts.

  1. Segmentation as energy minimisation (quiz, exercise)
  2. Graphs, cuts and maximum flow (quiz, exercise)
  3. Graph-cut segmentation (quiz, exercise)
  4. Spectral partitioning and normalized cuts (quiz, exercise)

Day 28: Ising model and Markov random fields

Needs: Day 27: Graph cuts.

See also: Day 3: Bit depth and noise.

Topics: Gibbs distributions, MCMC, MRF priors, total variation as a prior.

  1. Energy and probability: the Ising model (quiz, exercise)
  2. Sampling, temperature and the phase transition (quiz, exercise)
  3. Bayesian denoising with an Ising prior (quiz, exercise)
  4. Quadratic smoothing and total variation (quiz, exercise)

Day 29: Graph-based segmentation

Needs: Day 27: Graph cuts, Day 15: Watershed.

See also: Day 28: Ising model and Markov random fields, Day 35: Gaussian mixtures.

Topics: random walker, minimum spanning trees / FH segmentation, hierarchical segmentation, superpixels, watershed as MSF.

  1. The random walker (quiz, exercise); see also Quadratic smoothing and total variation (day 28)
  2. Spanning trees: single linkage and FH (quiz, exercise)
  3. Watershed as a minimum spanning forest (quiz, exercise)
  4. Hierarchical segmentation and merge trees (quiz, exercise)
  5. Superpixels: SLIC and smaller graphs (quiz, exercise); see also Feature spaces & k-means (day 35)

Day 30: Snakes and active shape models

Needs: Day 27: Graph cuts, Day 2: Edges, blobs and ridges.

See also: Day 6: Splines and NURBS.

Topics: snakes, Procrustes, point distribution and active shape models.

  1. Active contours (snakes) (quiz, exercise)
  2. The snake as a linear system (quiz, exercise)
  3. Shape models: landmarks, Procrustes and PCA (quiz, exercise); also needs Principal component analysis (day 1)
  4. Active shape models (quiz, exercise)

Day 31: Level sets

Needs: Day 30: Snakes and active shape models, Day 13: Morphology.

See also: Day 51: Marching cubes.

Topics: level set methods, geodesic active contours, Chan–Vese.

  1. Curves as level sets (quiz, exercise)
  2. Moving a curve: the level set equation (quiz, exercise)
  3. Edge-based segmentation: geodesic active contours (quiz, exercise)
  4. Region-based segmentation: Chan–Vese (quiz, exercise)

Day 32: Dynamic programming

Needs: Day 27: Graph cuts.

See also: Day 30: Snakes and active shape models, Day 13: Morphology, Day 15: Watershed.

Topics: dynamic programming, Dijkstra and live-wire, fast marching.

  1. The DP principle: minimal paths on a grid (quiz, exercise)
  2. Closed boundaries: DP in polar coordinates (quiz, exercise); see also Active contours (snakes) (day 30)
  3. When there is no order: Dijkstra and live-wire (quiz, exercise)
  4. From Dijkstra to fast marching (quiz, exercise); also needs Moving a curve: the level set equation (day 31)

Part VII: Learning from examples

Day 33: Random forests

Needs: Day 2: Edges, blobs and ridges.

See also: Day 12: Thresholding, Day 16: Measurements.

Topics: train/test, overfitting, cross-validation; the feature stack; decision trees and forests.

  1. Decision trees (quiz, exercise)
  2. Bagging and random forests (quiz, exercise)
  3. Feature tables & feature importance (quiz, exercise)
  4. Pixel classification with a forest (quiz, exercise)

Day 34: Support vector machines

Needs: Day 33: Random forests.

See also: Day 36: Neural networks, Day 35: Gaussian mixtures.

Topics: linear classifiers, maximum margin, kernel functions.

  1. Linear classifiers (quiz, exercise)
  2. Maximum margin and support vectors (quiz, exercise)
  3. Kernel functions and the kernel trick (quiz, exercise)
  4. SVMs for pixel classification (quiz, exercise); also needs Pixel classification with a forest (day 33)

Day 35: Gaussian mixtures

Needs: Day 12: Thresholding.

See also: Day 33: Random forests, Day 46: Colour, Day 39: Variational autoencoders.

Topics: k-means as an algorithm, the multivariate Gaussian, maximum likelihood, EM.

  1. Feature spaces & k-means (quiz, exercise)
  2. The multivariate Gaussian & mixtures (quiz, exercise)
  3. Fitting a mixture: EM (quiz, exercise)
  4. Mixtures on images (quiz, exercise)

Day 36: Neural networks

Needs: Day 33: Random forests.

See also: Day 12: Thresholding, Day 27: Graph cuts.

Topics: neurons, losses, gradient descent, backpropagation, CNNs, U-Net.

  1. Neural networks: matrix, bend, matrix (quiz, exercise)
  2. Learning: loss, gradient descent and backpropagation (quiz, exercise)
  3. Convolutional networks (quiz, exercise)
  4. Segmentation networks (quiz, exercise)

Day 37: Training networks in practice

Needs: Day 36: Neural networks.

See also: Day 38: Evaluation and statistics.

Topics: optimisers (momentum, Adam, learning-rate schedules), initialisation, batch and layer normalisation; regularisation in practice (weight decay, dropout, early stopping), data augmentation, reading training curves.

  1. Optimisers and learning rates (quiz, exercise)
  2. Initialisation, normalisation and residual connections (quiz, exercise)
  3. Regularisation and data augmentation (quiz, exercise)
  4. Reading training curves (quiz, exercise)

Day 38: Evaluation and statistics

Needs: Day 12: Thresholding, Day 33: Random forests, Day 36: Neural networks.

See also: Day 14: Labelling, Day 15: Watershed.

Topics: object-level evaluation (matching, F1/AP); leakage; statistics of measurements.

  1. Matching objects: IoU, F1 and average precision (quiz, exercise)
  2. Boundaries, counts and the uncertain ground truth (quiz, exercise)
  3. Honest validation: leakage, splits and domain shift (quiz, exercise); also needs Pixel classification with a forest (day 33)
  4. From measurements to claims (quiz, exercise)

Day 39: Variational autoencoders

Needs: Day 36: Neural networks.

See also: Day 30: Snakes and active shape models.

Topics: autoencoders, the ELBO, the VAE.

  1. From PCA to autoencoders (quiz, exercise)
  2. The variational autoencoder (quiz, exercise)
  3. Generating and exploring images with a VAE (quiz, exercise)

Day 40: GANs and normalising flows

Needs: Day 39: Variational autoencoders, Day 37: Training networks in practice.

See also: Day 41: Modern deep learning.

Topics: generative adversarial networks, mode collapse, image-to-image translation and hallucination; normalising flows (change of variables, coupling layers, exact likelihood).

  1. Generative adversarial networks (quiz, exercise)
  2. Training GANs and what goes wrong (quiz, exercise)
  3. Image-to-image translation and hallucination (quiz, exercise)
  4. Normalising flows (quiz, exercise)

Day 41: Modern deep learning

Needs: Day 36: Neural networks, Day 38: Evaluation and statistics, Day 39: Variational autoencoders.

See also: Day 15: Watershed, Day 5: Deconvolution, Day 35: Gaussian mixtures.

Topics: instance segmentation routes, object detection with boxes, attention and transformers, an introduction to diffusion models.

  1. From masks to objects (quiz, exercise)
  2. Finding objects as boxes (quiz, exercise)
  3. Attention, transformers and pretrained models (quiz, exercise)
  4. Diffusion models and generated detail (quiz, exercise); also needs Generating and exploring images with a VAE (day 39)

Day 42: Learning without labels

Needs: Day 41: Modern deep learning, Day 37: Training networks in practice.

See also: Denoising and what you may measure (day 5).

Topics: self-supervised learning: pretext tasks, masked image modelling, contrastive learning (InfoNCE); self-distillation and foundation features; self-supervised denoising (Noise2Noise, Noise2Void).

  1. Pretext tasks and masked image modelling (quiz, exercise)
  2. Contrastive learning (quiz, exercise)
  3. Self-distillation and foundation models (quiz, exercise)
  4. Self-supervised denoising (quiz, exercise)

Day 43: Networks for cells and objects

Needs: Day 41: Modern deep learning, Day 38: Evaluation and statistics.

See also: Day 15: Watershed, Day 10: Edge-preserving smoothing and PDEs, Day 27: Graph cuts.

Topics: star-convex polygons, flow fields, single-shot detectors, promptable segmentation.

  1. Star-convex polygons (quiz, exercise)
  2. Flow fields to objects (quiz, exercise); see also Smoothing as heat flow: the heat equation and explicit schemes (day 10)
  3. From an image to a list of objects (quiz, exercise)
  4. Promptable segmentation (quiz, exercise)
  5. Networks and classical pipelines compared (quiz, exercise); also needs Matching objects: IoU, F1 and average precision (day 38); see also Splitting touching objects with the distance transform (day 15)

Day 44: Fine-tuning and transfer learning

Needs: Day 43: Networks for cells and objects, Day 42: Learning without labels.

See also: Day 38: Evaluation and statistics.

Topics: transfer learning, fine-tuning strategies (freezing, layer-wise rates, LoRA), catastrophic forgetting; annotation strategy, human-in-the-loop and active learning, domain shift and adaptation.

  1. Transfer learning (quiz, exercise)
  2. Fine-tuning strategies (quiz, exercise)
  3. Few labels: annotation and the human in the loop (quiz, exercise)
  4. Domain shift and adaptation (quiz, exercise)

Day 45: Diffusion models

Needs: Day 41: Modern deep learning, Day 39: Variational autoencoders, Day 5: Deconvolution.

See also: Day 28: Ising model and Markov random fields, Day 35: Gaussian mixtures.

Topics: diffusion models in depth (score matching, samplers, guidance, diffusion priors for inverse problems).

  1. Noise levels, denoisers and the score (quiz, exercise)
  2. Samplers, steps, and judging the samples (quiz, exercise)
  3. Conditioning, guidance and latent diffusion (quiz, exercise)
  4. Diffusion priors for inverse problems (quiz, exercise); also needs Regularisation: what we add, and how much (day 5)
  5. Drifting: generating in one step (quiz, exercise)

Part VIII: Colour and fluorescence

Day 46: Colour

Needs: Day 12: Thresholding.

See also: Day 3: Bit depth and noise.

Topics: colour spaces, gamma and linear light, CIELAB, white balance, colour maps.

  1. From a spectrum to three numbers (quiz, exercise)
  2. RGB: gamma, linear maps & white balance (quiz, exercise)
  3. HSV, CIELAB & colour segmentation (quiz, exercise); also needs Choosing the threshold: Otsu & minimum error (day 12)
  4. Colour for display: maps, merges & decorrelation (quiz, exercise)

Day 47: Spectral unmixing

Needs: Day 46: Colour.

See also: Day 3: Bit depth and noise, Day 16: Measurements.

Topics: bleed-through and compensation, least-squares unmixing, endmembers, stain separation.

  1. Bleed-through and compensation (quiz, exercise)
  2. Least-squares unmixing (quiz, exercise)
  3. Endmembers: the geometry of mixtures (quiz, exercise)
  4. Stain separation: colour deconvolution (quiz, exercise); also needs RGB: gamma, linear maps & white balance (day 46)

Day 48: Colocalisation

Needs: Day 46: Colour.

See also: Day 4: Image formation, Day 14: Labelling, Day 16: Measurements, Day 23: FFT registration, Day 47: Spectral unmixing.

Topics: colocalisation coefficients, randomisation tests, object-based colocalisation.

  1. Colocalisation of two channels (quiz, exercise)
  2. Is it more than chance? (quiz, exercise)
  3. Objects instead of pixels (quiz, exercise); see also Neighbours, parents and children (day 16)
  4. What the microscope does to colocalisation (quiz, exercise)

Day 49: FRET

Needs: Day 46: Colour.

See also: Day 47: Spectral unmixing, Day 16: Measurements, Day 23: FFT registration.

Topics: sensitised emission, acceptor photobleaching, ratio imaging.

  1. FRET in pictures: a ruler for nanometres (quiz, exercise)
  2. Three images, two controls: sensitised emission (quiz, exercise); see also Bleed-through and compensation (day 47)
  3. Acceptor photobleaching, and what an efficiency means (quiz, exercise)
  4. Ratio imaging, biosensors and the noise of a ratio (quiz, exercise)

Day 50: Fluorescence lifetime imaging (FLIM)

Needs: Day 3: Bit depth and noise.

See also: Day 5: Deconvolution, Day 47: Spectral unmixing.

Topics: lifetime fitting, phasor analysis.

  1. Lifetimes, decays and photon counting (quiz, exercise)
  2. Fitting decays with few photons (quiz, exercise)
  3. Frequency domain and phasors (quiz, exercise)
  4. FLIM-FRET and metabolic imaging (quiz, exercise); also needs Day 49: FRET

Part IX: 3D and computing

Day 51: Marching cubes

Needs: Day 1: Images, filters and frequencies.

See also: Day 12: Thresholding, Day 14: Labelling, Day 31: Level sets.

Topics: 3D images (stacks, voxel spacing, MIP); marching squares and cubes, surface measures.

  1. 3D images (quiz, exercise)
  2. Level sets & marching squares (quiz, exercise)
  3. Marching cubes (quiz, exercise)
  4. Measuring surfaces (quiz, exercise)

Day 52: 3D graphics

Needs: Day 51: Marching cubes.

See also: Day 46: Colour, Day 3: Bit depth and noise.

Topics: 4×4 transforms, projection, rasterisation, shading, volume rendering; GPU texture formats.

  1. Meshes, coordinate spaces and projection (quiz, exercise)
  2. From triangles to shaded pixels (quiz, exercise)
  3. How graphics cards store colour (quiz, exercise); see also 12- and 16-bit images in practice (day 3), Floating point (day 3)
  4. Seeing voxels: projections and volume rendering (quiz, exercise)

Day 53: Geometry from multiple images

Needs: Day 52: 3D graphics.

See also: Day 24: Keypoints and descriptors, Day 21: Hough transform, Day 23: FFT registration.

Topics: camera calibration, epipolar geometry, stereo, structure from motion.

  1. The pinhole camera and calibration (quiz, exercise)
  2. Two views: epipolar geometry, triangulation (quiz, exercise); see also Matching descriptors: nearest, ratio and mutual (day 24), Hypothesise and verify: RANSAC (day 21)
  3. Stereo: from disparity to depth (quiz, exercise)
  4. Structure from motion and bundle adjustment (quiz, exercise); see also From a peak to a mosaic (day 23)

Day 54: Ray tracing

Needs: Day 52: 3D graphics.

See also: Day 46: Colour, Day 5: Deconvolution, Day 55: How GPUs work.

Topics: ray–object intersection, Whitted ray tracing, acceleration structures, path tracing.

  1. Rays from the camera, and where they hit (quiz, exercise)
  2. Shadows, mirrors and glass (quiz, exercise)
  3. Tracing fast: boxes, trees and grids (quiz, exercise)
  4. Path tracing: Monte Carlo and noise (quiz, exercise); see also Denoising and what you may measure (day 5)

Day 55: How GPUs work

Needs: Day 3: Bit depth and noise.

See also: Day 52: 3D graphics.

Topics: GPU architecture, memory bandwidth and the roofline, data-parallel patterns.

  1. Many simple cores: throughput, warps and divergence (quiz, exercise)
  2. Memory is the bottleneck (quiz, exercise)
  3. Data-parallel patterns (quiz, exercise)
  4. What GPUs are good and bad at (quiz, exercise)