Skip to main content

affine_from_quatern

Function affine_from_quatern 

Source
fn affine_from_quatern(q: &QForm, pixdim: (f64, f64, f64)) -> [f64; 16]
Expand description

Rebuild the voxel→world affine a reader derives from a qform — the spec’s nifti_quatern_to_mat44. pixdim is pixdim[1..=3] as it appears in the header.