Quiz: closed boundaries in polar coordinates

Short questions to test your understanding. Try each on paper first, then open the answer. The image is unwrapped around a centre c: angle across, radius down; the boundary is one radius r_k per angle, with |r_{k+1} - r_k| \le \delta and a penalty \alpha|r_{k+1} - r_k|.


Q1. What does “star-shaped around c” mean, and why does polar DP need it?

Every ray from c leaves the object exactly once. Then the boundary is a function: one radius per angle. Polar DP chooses exactly one radius per angle, so it can only describe star-shaped boundaries; where a ray crosses the boundary several times, all but one crossing are lost.


Q2. Why does the unwrapping use bilinear interpolation?

The sample points c + r(\cos\theta, \sin\theta) almost never fall on pixel centres. Bilinear interpolation reads a value between the four surrounding pixels (inverse mapping, as for any geometric transform), so the polar image is smooth and does not depend on rounding.


Q3. A dark cell on a bright background. Which polarity should the cost have, going outward from the centre? What goes wrong with the other one?

Dark inside, bright outside: dark → bright, cost = -\partial P/\partial r (low where the intensity rises). With bright → dark the real boundary costs extra, and the path settles on whatever falls in intensity going outward: noise, or a dark neighbour’s far edge.


Q4. What happens with \delta = 0? And with a very large \delta and \alpha = 0?

\delta = 0: the radius cannot change: the result is a circle around c (the radius with the lowest total cost). A large \delta with \alpha = 0: every angle chooses its own best radius almost independently, and the boundary jumps between edges, noise and neighbouring objects.


Q5. Why does the plain DP table not give a closed curve, and what does the exact method do about it?

The table treats angle 0 and angle K-1 as the two ends of an open path; nothing links them, so the radii at the two ends can differ by more than \delta (a jump at 0°). The exact method fixes the start radius, runs DP, and accepts only ends within \delta of the start; it does this for every start radius and keeps the best closed path.


Q6. Unrolling: why does running DP over three copies of the angles and keeping the middle copy usually give a closed curve? Is it guaranteed?

The middle copy is far from the free ends of the long path, so it is (usually) where the path has “settled” into the same route as in its neighbouring copies; then the middle copy ends where the next copy starts, at about the same radius. It is not guaranteed: the path may enter the third copy at another radius, and then the middle copy does not close; and even when it closes it need not be the cheapest closed path.


Q7. Compared with a snake started near the boundary, what is the advantage of polar DP, and what is its price?

Polar DP finds the global optimum of its energy: it is not trapped by a weak edge near the start, and needs only a centre, not a starting curve. The price is the restriction to star-shaped boundaries around a known centre; a snake can describe any closed curve (but only finds a local minimum).


Q8. (math) With K angles, R radii and steps up to \delta, how many operations does one DP run take, and how many does the exact closure take?

One run: K \cdot R cells with up to 2\delta + 1 candidates, about KR(2\delta + 1). Exact closure: one run per start radius, about KR^2(2\delta + 1): for K = 360, R = 100, \delta = 3, 252 000 and 25.2 million.