Quiz: seeing voxels
Before this unit: How graphics cards store colour (previous unit); Day 51: Marching cubes.
See also: Day 46: Colour; Day 3: Bit depth and noise.
Short questions to test your understanding. Try each on paper first, then open the answer. Front-to-back compositing: C \leftarrow C + \mathcal T\alpha c, \mathcal T \leftarrow \mathcal T(1 - \alpha), starting from C = 0, \mathcal T = 1.
Q1. A MIP of a CT angiogram shows two vessels crossing. Is the crossing real?
What does a MIP keep of each ray?
Not necessarily. A MIP keeps the largest value on each ray and nothing about where it was, so two vessels at different depths can project onto each other. Rotate the view or look at slices.
Q2. Which projection shows the airways in a chest CT, and why must it ignore the air outside the body?
Air is the darkest value.
The minimum-intensity projection: air is the darkest material. But every ray starts and ends in the air around the patient, so a plain minimum would be the outside air everywhere; MinIP is taken only between where the ray enters and leaves the body (or over a slab).
Q3. What does the transfer function decide, and what can it not do?
Its input is one value.
It maps a sample’s value to a colour and an opacity: which materials are visible and how. It cannot separate structures that have the same values (bone and contrast-filled vessels in CT, two cells with the same staining): for that you need more information, such as the gradient, position or a segmentation.
Q4. Three samples in front of the eye have opacities 0.5, 0.5 and 1. How much of the third sample’s colour reaches the eye?
\mathcal T before the third sample.
\mathcal T = 0.5\cdot0.5 = 0.25 before it, and its opacity is 1: it contributes 0.25\,c_3. The first two contribute 0.5\,c_1 and 0.25\,c_2; together the weights sum to 1.
Q5. Front to back or back to front: which gives the brighter image?
Expand both formulas.
Neither: both compute the same sum \sum_i \mathcal T_i\alpha_i c_i. Front to back has the advantage that \mathcal T is known along the way, so the ray can stop early.
Q6. The step size is halved to get a sharper image, and the picture becomes much more opaque. Why, and what is the fix?
How many samples cover one voxel now?
The opacities of the transfer function belong to a reference step. With twice as many samples, each with the same opacity, the light passes twice as many absorbing layers. Opacity correction gives each sample \alpha' = 1 - (1 - \alpha)^{\Delta s/\Delta s_0}, so the total absorption per unit length stays the same.
Q7. Early termination stops at \mathcal T < 0.05. Can the image be wrong by more than 5 % of the full brightness?
What is the most the rest of the ray could add?
No: everything behind can add at most \mathcal T times the brightest colour, which is less than 0.05 (with colours in [0, 1]).
Q8. Volume rendering of a skull shows concentric rings that move when the view turns. What causes them?
Compare the step with the thickness of the bone.
Undersampling (wood-grain artefact): the step is too large for the thin bone shell, so neighbouring rays sample it at different phases. Use a step of at most half a voxel (or jitter the start of each ray, which turns rings into noise).
Q9. You need the surface area of a segmented skull. Ray-cast isosurface or a marching-cubes mesh?
What does each one produce?
The mesh: ray casting produces only an image of the surface, with no geometry to measure. Marching cubes produces triangles whose areas can be summed.
Q10. (math) A slab of constant extinction \tau and thickness D glows with colour c in front of a black background. What colour reaches the eye?
L = \int_0^D \mathcal T(t)\,\tau\,c\,dt with \mathcal T(t) = e^{-\tau t}.
L = \int_0^D e^{-\tau t}\tau c\,dt = c\,(1 - e^{-\tau D}): the slab’s colour times its opacity. Thin slabs (\tau D \ll 1) give about c\,\tau D; thick ones give c.