Skip to main content

idx3d

Function idx3d 

Source
fn idx3d(i: usize, j: usize, k: usize, nx: usize, ny: usize) -> usize
Expand description

Convert 3D index to flat index (Fortran order / column-major, matches NIfTI) For array shape (nx, nx, ny), index [i,j,k] maps to: i + jnx + knx*ny