Skip to main content

conform_affine

Function conform_affine 

Source
fn conform_affine(
    dims: (usize, usize, usize),
    affine: &[[f32; 4]; 4],
) -> [[f32; 4]; 4]
Expand description

The conformed grid’s voxel→world affine (niimath’s conformVox2Vox with toRAS = false): 1 mm voxels along LIA (+i left, +j inferior, +k anterior), with the cube’s centre (128, 128, 128) on the world position of the input’s voxel dims / 2.