Quiz: 3D images

Short questions to test your understanding. Try each on paper first, then open the answer. Volumes are stored I[z, y, x] with voxel spacing (\Delta x, \Delta y, \Delta z).


Q1. A confocal stack has \Delta x = \Delta y = 0.1 µm and \Delta z = 0.4 µm. A program shows the xz slice with square pixels. What does a round nucleus look like, and why?

How many rows does the nucleus span in z compared with columns in x?

Flattened by a factor 4: a nucleus 4 µm across spans 40 columns but only 10 slices, and with square pixels those 10 rows are drawn as tall as 10 columns. The slice must be drawn 4 times taller per row (its physical aspect ratio), or resampled.


Q2. Voxel (0, 0, 0) is at (100, 50, 0) µm and the spacing is (0.2, 0.2, 1) µm. Where is voxel (10, 20, 3)?

Start at the origin and step along each axis by index × spacing.

(100 + 10 \cdot 0.2,\; 50 + 20 \cdot 0.2,\; 0 + 3 \cdot 1) = (102, 54, 3) µm.


Q3. How many voxel values does trilinear interpolation use, and what is the result exactly halfway between all of them?

The point lies in a cube.

8 (the corners of the surrounding cube). At the centre every weight is \tfrac12 \cdot \tfrac12 \cdot \tfrac12 = \tfrac18: the mean of the 8 values.


Q4. To compute an oblique slice, why do we go from each output pixel to the volume, and not from each voxel to the plane?

How many voxels lie exactly on a tilted plane?

Inverse mapping: every output pixel asks where it comes from and gets one interpolated value. Pushing voxels onto the plane would hit only a few output pixels (almost no voxel lies exactly on the plane), leaving holes. The same reasoning as for rotating a 2D image.


Q5. You want to smooth a stack with \Delta x = 0.2 µm and \Delta z = 0.6 µm by the same physical amount in all directions, \sigma = 0.6 µm. What \sigma in voxels do you use along x and along z?

Divide the physical \sigma by the spacing of each axis.

0.6/0.2 = 3 voxels along x (and y), 0.6/0.6 = 1 voxel along z.


Q6. In a MIP along z you count 12 nuclei. Is the true number at most 12, at least 12, or neither?

What happens to two nuclei at different depths in the projection? Can one nucleus become two?

Usually at least 12: nuclei at different depths that overlap in x–y merge into one blob in the MIP, so the projection can only undercount by merging. (A strongly curved cell could in principle appear as two blobs, but that is rare; merging is the common error.) Count in 3D.


Q7. Does resampling a stack with \Delta z = 0.5 µm to isotropic voxels of 0.1 µm improve the resolution along z?

Where do the new values come from?

No. The new slices are interpolated from the old ones; nothing between the original slices was measured. Resampling makes later steps simpler (cubic voxels, equal neighbourhoods), but costs memory (5 times more voxels here) and adds no detail.


Q8. (math) Write the 4 \times 4 voxel → world matrix for spacing (0.2, 0.2, 0.5) µm and origin (10, 20, 4) µm, and its inverse.

Spacing on the diagonal, origin in the last column; for the inverse, undo the translation, then the scaling.

A = \begin{bmatrix} 0.2 & 0 & 0 & 10 \\ 0 & 0.2 & 0 & 20 \\ 0 & 0 & 0.5 & 4 \\ 0 & 0 & 0 & 1\end{bmatrix},\qquad A^{-1} = \begin{bmatrix} 5 & 0 & 0 & -50 \\ 0 & 5 & 0 & -100 \\ 0 & 0 & 2 & -8 \\ 0 & 0 & 0 & 1\end{bmatrix}.