Skip to main content

margin_voxels

Function margin_voxels 

Source
pub fn margin_voxels(
    margin_mm: f64,
    voxel_size: (f64, f64, f64),
) -> (usize, usize, usize)
Expand description

Margin in voxels per axis for a margin given in millimetres, at least one voxel where the margin is positive. Anisotropic voxels get a geometrically equal margin rather than an equal voxel count — 8 voxels is 6.4 mm in-plane but 24 mm through-plane at 0.8 × 0.8 × 3 mm.