Quiz: shape features

Short questions to test your understanding. Try each on paper first, then open the answer.


Q1. A disc and a five-pointed star have the same area. Name two features that tell them apart, and two that do not.

Which features depend only on how much and how spread out, and which on the outline?

Apart: solidity (the star has large concave gaps: about 0.5 against 1), form factor (long perimeter), max/min Feret, inscribed radius. Not apart: area and equivalent diameter (equal by construction), and the eigenvalues: both have \lambda_1 = \lambda_2, so eccentricity 0.


Q2. Two touching round nuclei were segmented as one object. Which shape feature flags it, and why?

What does the outline look like where they touch?

Solidity: the outline has two concave notches at the neck, so the convex hull is noticeably larger than the object (0.92 against 0.96 for a single digital disc in the demo). The area (twice a nucleus) and the eccentricity help too.


Q3. Why is the form factor 4\pi A/P^2 of a large digital disc about 0.62 when the perimeter is the pixel-edge count?

The edge count is too long by a constant factor.

The edge count is 4/\pi times the true perimeter, so P^2 is (4/\pi)^2 times too large and the form factor (\pi/4)^2 = \pi^2/16 \approx 0.62 instead of 1, at every resolution.


Q4. A small round object of about 30 pixels gets a form factor of 1.3. Is it “more circular than a circle”?

Which perimeter estimate was used?

No: for every shape the true value is at most 1. The perimeter estimate is too short (the chain code through pixel centres runs half a pixel inside the true boundary, a large fraction for a small object), so 4\pi A/P^2 comes out too large. For objects of a few pixels the form factor is not meaningful.


Q5. What is the difference between the max Feret diameter and the major axis length 4\sqrt{\lambda_1}?

One depends on two extreme points, the other on all pixels.

The max Feret is the largest distance between two points of the object (a geometric extreme: one protruding pixel changes it). The major axis is the length of the equivalent ellipse, computed from the variance of all pixels (robust to a single pixel, but it is a summary that need not touch the outline: for a rectangle it is longer than the rectangle).


Q6. Why does the rotating-calipers method only need the hull vertices, and why is the minimum width always found with one caliper flush with a hull edge?

Where do supporting lines touch a set?

A supporting line of the object is also a supporting line of its convex hull, and it touches the hull at a vertex (or along an edge), so only hull vertices matter. Between two directions where the touching vertices change, the width is c\,|\cos(\theta - \varphi)|, a concave function; its minimum on the interval is at an end, i.e. where a caliper lies along an edge.


Q7. A rod of width 10 µm and length 50 µm. Estimate its maximum inscribed radius and its min Feret. What happens to both if the rod is bent into a C?

Which of the two “sees” the bend?

Straight: inscribed radius ≈ 5 µm, min Feret ≈ 10 µm. Bent into a C: the inscribed radius stays ≈ 5 µm (it is a thickness), while the min Feret grows a lot (the calipers must span the curve).


Q8. The pixels of a microscope stack are 0.2 µm wide but the slices are 1 µm apart. What goes wrong if you measure 3D shape features in voxel units?

What does a sphere look like in voxel units?

Distances along z are counted 5 times too short: a sphere looks like a flattened ellipsoid, so volume, surface, Feret diameters, eccentricity and compactness are all wrong, and orientation is biased. Compute in physical coordinates (\Delta x, \Delta y, \Delta z), or resample to isotropic voxels first.


Q9. (math) Use the shoelace formula to compute the area of the triangle (0, 0), (4, 0), (1, 3).

\frac12\sum (x_i y_{i+1} - x_{i+1} y_i).

\frac12\big[(0\cdot 0 - 4 \cdot 0) + (4 \cdot 3 - 1 \cdot 0) + (1 \cdot 0 - 0 \cdot 3)\big] = \frac12 \cdot 12 = 6, as \frac12 \cdot base 4 \cdot height 3.