Hi Philipp,
The -xbox/-dbox/-nbox options take x y z coordinates, which without ranges have nothing to do with the voxel sizes.
However, if you want the -xbox to be a range of voxels, let's say of size +/- 3mm, and centered at coordinate 10,20,30, for example (to include 27 voxels around that central point), you could use ranges of -/+ 3mm around each central coordinate. I will leave the -xyz option in there to display your specific coordinates.
3dmaskdump -xyz -xbox 7:13 17:23 27:33 DATASET
However, if 10, 20, 30 is not *exactly* at the center of a voxel, this will not output 27 voxels. And often the centers are not even exact in base 2 decimal, so you might have to add epsilons, e.g.
3dmaskdump -xyz -xbox 6.9:13.1 16.9:23.1 26.9:33.1 DATASET
Note that the epsilons can be generous, until they overlap with the next voxel center.
- rick