Quiz: watershed segmentation of a real image

Short questions to test your understanding. Try each on paper first, then open the answer. The landscape is the gradient magnitude \|\nabla (G_\sigma * I)\| unless stated otherwise; markers are all regional minima, the h-minima, or chosen markers.


Q1. Why does the watershed of the raw gradient of a noisy image give thousands of regions?

What does noise do to a flat region of the gradient?

Inside a flat region the gradient is small but not constant: noise makes it go up and down, and every tiny dip is a regional minimum. Each minimum starts its own basin, so each dip becomes a region.


Q2. You double \sigma. Name one thing that gets better and two that get worse.

Noise, edges, small things.

Better: the noise in the gradient falls (like 1/\sigma^2), so there are fewer and shallower noise minima. Worse: edges get wider and weaker and their position shifts at corners; nearby edges merge; small objects and thin structures blur away. And the noise minima are still there, only shallower.


Q3. With h = 4 you get the right segmentation. A colleague stretches the contrast of the image by a factor 3 before the watershed. What h should they use?

Depths are differences of heights.

About 12: the gradient, and with it every depth, is multiplied by 3. (The flooding itself, from fixed markers, would not change: it only compares heights.)


Q4. What do markers decide, and what does the flooding decide, in a marker-controlled watershed?

How many, and where.

The markers decide how many regions there are (one per marker) and roughly which object each region is. The flooding decides where the boundaries between them go: on the highest ridges between the markers.


Q5. Two touching nuclei of equal brightness, each with its own marker. Where does the watershed of the gradient put the boundary between them?

Is there an edge between them?

Wherever the two lakes meet in the flat interior: there is no ridge between them, only noise. The split exists (two markers, two regions), but its position is not reliable. The distance transform (next unit) gives a landscape with a ridge at the neck.


Q6. A cell’s membrane has a gap. Why can the watershed leak through it, while a method that penalises the boundary length (such as a graph cut) closes it?

The watershed looks at the highest point on the way; a cut pays for every boundary pixel.

The watershed only asks for the lowest pass between two markers; a gap is a low pass, so water crosses it, however short the gap. A graph cut pays for the length of the boundary: closing the gap with a short straight piece is cheaper than a long detour through the cell, so it closes the gap.


Q7. What is a hierarchical watershed, and how is the h-minima result related to it?

Start from every minimum and merge.

Start from the oversegmentation (one region per minimum) and merge neighbouring regions one at a time across their lowest dam (or by another criterion); the merges form a tree. Each level of the tree is a segmentation. Merging in order of the minima’s dynamics and stopping at h gives the same regions as h-minima with that h.


Q8. (math) By which factor does the noise in \partial_x (G_\sigma * I) fall when \sigma doubles, and by which factor the peak of a sharp edge?

Noise standard deviation \propto 1/\sigma^2, edge peak \propto 1/\sigma.

Noise: by 4 (standard deviation s/(\sqrt{8\pi}\,\sigma^2)). Edge peak: by 2 (J/(\sqrt{2\pi}\,\sigma) for a sharp step). So the edge-to-noise ratio doubles, but the edges also get twice as wide.