Computer Vision · Intermediate level

Intermediate level · Module 5 of 8 · 13 guided hours

Image Segmentation

Labelling pixels: classical segmentation (thresholds, k-means, watershed, GrabCut), water and vegetation indices for satellite images, semantic segmentation with pretrained torchvision models and evaluation with IoU.

Learning objectives

  • Segment images with classical methods
  • Use spectral indices on satellite imagery for water and vegetation
  • Apply pretrained semantic segmentation models and evaluate with IoU

Topics

  • classical segmentation: threshold, k-means, watershed, GrabCut
  • satellite bands and spectral indices
  • semantic vs instance segmentation
  • encoder-decoder networks and U-Net
  • pretrained torchvision segmentation models
  • IoU, Dice and mean IoU

Lessons

  1. Lesson 1 Classical Segmentation Methods

    Learners separate objects from background with thresholds and colour clustering, split touching objects with the watershed algorithm and extract foreground with GrabCut.

    foreground and backgrounddistance transformwatershedGrabCutmarkers

  2. Lesson 2 Segmenting Satellite Images for Water and Vegetation

    Learners work with freely available Sentinel-2 imagery, compute vegetation and water indices from spectral bands and map water and vegetation extent before and after a flood.

    multispectral bandsNDVI = (NIR − Red) / (NIR + Red)NDWI = (Green − NIR) / (Green + NIR)resolution and cloud coverbefore/after comparison

  3. Lesson 3 Semantic Segmentation with Pretrained Networks

    Learners apply a pretrained torchvision segmentation model, understand encoder-decoder and U-Net designs and evaluate masks with IoU and Dice.

    semantic vs instance segmentationencoder-decoderU-Net skip connectionstorchvision.models.segmentationIoU and Dice

Practical activity

Produce three segmentation results: watershed counting of touching objects, a satellite water-extent change map, and an IoU evaluation of a pretrained segmentation model.

Expected outcomes

  • Command of classical and deep segmentation
  • Responsible use of satellite imagery

Assessment

Segmentation notebooks (60%) and the water-extent map with caveats (40%).

Taught live by an instructor — online or in person. Free course lessons are for self-study and do not lead to a certificate — see registration options.