A volume check that passes every time
We generated a cube of 20 × 20 × 20 voxels on a fixed 1 mm grid. It occupies 8,000 mm³. We copied the mask and shifted the copy sideways, leaving the reference fixed. All copies fit inside the grid. An export check based on volume alone reports perfect agreement at every position.
What changes with a 3 mm shift
Each step sideways replaces a slab of 20 × 20 voxels. Moving three steps leaves 1,200 reference voxels uncovered and adds 1,200 elsewhere. The two masks still share 6,800 voxels. The figure shows one slice through the cubes.
The measured overlap
We calculated Dice as twice the shared voxel count divided by the sum of the two mask counts. At shifts of 0, 1, 3 and 5 mm, the shared counts were 8,000, 7,600, 6,800 and 6,000. Dice fell from 1.00 to 0.95, 0.85 and 0.75. Each result comes from the same-sized object and a pure translation. A thin structure or an irregular boundary can behave differently. These figures do not define an acceptable error for anatomy. These measurements describe synthetic masks on one grid.
| Shift (mm) | Shared voxels | Dice score |
|---|---|---|
| 0 | 8,000 | 1.00 |
| 1 | 7,600 | 0.95 |
| 3 | 6,800 | 0.85 |
| 5 | 6,000 | 0.75 |
Repeat the experiment
Download the Python 3 script and run python mask-alignment.py. It uses the standard library and prints the same columns as our results CSV. To try another shift, change the list in the script and keep the cube inside the grid. This is an independent synthetic calculation. It measures no patient data or Wellbeing Suite performance.
What to check in a research handover
When a model has the expected volume but appears displaced, reopen it over its reference image. Check the physical location of a known landmark, the reference grid and any transforms applied during export. Then inspect the region where the disagreement matters to the research task. Our CT segmentation export guide describes the handover check in more detail.
Further reading
Discuss a research evaluation with Wellbeing
More from the journal ↗