Quiz: medial axis and reconstruction

Short questions to test your understanding. Try each on paper first, then open the answer. \mathrm{DT}(p) is the distance from an object pixel to the nearest background pixel.


Q1. In the grassfire picture, what does the time at which the fire reaches a point correspond to?

The fire moves inwards from the whole boundary at unit speed.

Its distance to the nearest boundary point: the distance transform \mathrm{DT}. The skeleton is where fronts from different parts of the boundary arrive at the same time and meet.


Q2. A disc inside a band touches only one side of the band. Why is it not maximal?

Can it move and grow?

It can slide away from that side and grow until it touches the other side as well; the bigger disc contains the first one. Only discs that touch the boundary in at least two places (or sit in a corner that fits them exactly) are maximal.


Q3. Why can the shape be rebuilt exactly from its medial axis, but not from a thinning skeleton?

What does each one store?

The medial axis stores the centres of all maximal discs with their radii, and every point of the shape lies in one of them: their union is the shape. A thinning skeleton is only approximately centred and does not reach into all corners, so the union of discs of radius \mathrm{DT} on it misses some pixels (the corners, the tips of thin arms).


Q4. Why does the medial axis of a rectangle fork at both ends when the discs are round (or diamonds), but not when they are squares?

What is the largest disc that fits into a corner?

A round disc pushed into a right-angled corner touches both sides at once: the small discs along the corner’s diagonal are maximal, so the axis runs out to the corners. A square disc fits into the corner of a rectangle perfectly, and the square of the midline already covers the corner: no extra maximal discs, no fork.


Q5. A one-pixel bump appears on the boundary of a smooth shape. What does it do to the medial axis, and why is that a problem for measuring?

Does the bump have its own maximal discs?

The bump is touched by new maximal discs, and their centres form a whole new branch from the axis to the bump. A branch count or total length would change because of a single noisy pixel. The medial axis is not continuous in the shape: remedies are smoothing the mask, pruning short branches, or keeping only axis points whose nearest boundary points are far apart (λ).


Q6. Lantuéjoul’s formula uses only erosions, openings, differences and unions. Which pixels end up in S_r?

What does the opening keep?

The pixels where a disc of radius r (the element B dilated r times) fits, but which are not covered by any fitting disc of radius r + 1: the centres of the maximal discs of radius r. The opening keeps exactly the pixels covered by a bigger fitting disc, and the difference removes them.


Q7. (math) Write the reconstruction of a shape from Lantuéjoul’s sets S_r.

Each pixel of S_r is the centre of a disc of radius r.

A = \bigcup_{r \ge 0} S_r \oplus rB, with rB the element B dilated r times (and 0B the origin). Each S_r \oplus rB is the union of the maximal discs of radius r.


Q8. For a vessel mask, what is 2\,\mathrm{DT} read on the skeleton?

What touches the vessel wall?

The local diameter: on the centreline the largest disc touches both walls, so its radius \mathrm{DT} is half the width. Read along the skeleton, it gives a radius profile for each branch.