Quiz: hierarchical segmentation and merge trees
Before this unit: Watershed as a minimum spanning forest (previous unit); Day 27: Graph cuts; Day 15: Watershed.
See also: Day 28: Ising model and Markov random fields; Day 35: Gaussian mixtures.
Short questions to test your understanding. Try each on paper first, then open the answer.
Q1. What does it mean that the segmentations of a hierarchy are nested?
Compare a fine and a coarse level.
Every region at a coarse level is a union of regions of any finer level. Raising the level only merges regions, it never splits one or moves a boundary.
Q2. How do you get a segmentation into exactly 5 regions from a merge tree with 40 leaves?
Each merge reduces the number of regions by one.
Apply the first 40 - 5 = 35 merges (cut the tree just above the 35th merge level). The 5 subtrees below the cut are the regions.
Q3. Two watershed basins meet at a pass of height 12. One has minimum 10 and area 400 pixels, the other minimum 2 and area 30 pixels. Which one “dies” in the dynamics hierarchy, and which in the area hierarchy? With which values?
Dynamics = pass height − minimum; the smaller attribute dies.
Dynamics: 12 - 10 = 2 against 12 - 2 = 10: the large, shallow basin dies, with value 2. Area: 400 against 30: the small, deep basin dies, with value 30. The two attributes order the same merge very differently.
Q4. What is stored in an ultrametric contour map, and how do you get a segmentation from it?
When does a boundary disappear?
Every boundary pixel gets the level at which the regions on its two sides merge. Thresholding the map at t keeps the boundaries above t; they enclose exactly the regions of the hierarchy at level t.
Q5. In the altitude hierarchy, a bright object merges with the background early although its boundary is strong almost everywhere. Why? Which criterion would avoid this?
Which single number decides an altitude merge?
The altitude of a merge is the lowest pass along the whole boundary: one weak spot is enough. A region criterion such as the difference of the two regions’ mean grey levels (or the mean gradient along the boundary) uses the whole region or the whole boundary, so a single weak spot hardly changes it.
Q6. Why does greedy RAG merging by difference of means not give the same tree as single linkage on the same RAG?
What happens to the means after a merge?
After every merge the merged region has a new mean, so the differences to all its neighbours change; the order of later merges depends on earlier ones. Single linkage uses fixed edge weights, sorted once.
Q7. A hierarchy is built on watershed basins, and one basin covers parts of two touching nuclei. Can any cut of the hierarchy separate the two nuclei?
What are the smallest regions of the hierarchy?
No. Every region at every level is a union of leaves; a leaf that straddles the boundary is never split. A hierarchy is only as good as its leaves.
Q8. (math) Prove that the level u(p, q) at which p and q first share a region satisfies u(p, r) \le \max(u(p, q), u(q, r)).
Look at the partition at level \max(u(p,q), u(q,r)).
Let t = \max(u(p, q), u(q, r)). At level t (and above, by nesting) p and q are in one region, and q and r are in one region. Regions of a partition are disjoint and both contain q, so they are the same region: p and r share a region at level t, hence u(p, r) \le t.