Skip to main content

ras_alignment

Function ras_alignment 

Source
fn ras_alignment(affine: &[f64; 16]) -> ([usize; 3], [bool; 3])
Expand description

The axis permutation and per-axis flips that take a volume into RAS orientation.

Returns (perm, flip) where RAS axis i is the source volume’s axis perm[i], reversed when flip[i]. Equivalent to lab2im’s align_volume_to_ref(..., aff_ref=eye(4)).