Skip to main content

read_nifti_dims

Function read_nifti_dims 

Source
pub fn read_nifti_dims(path: &Path) -> Result<(usize, usize, usize), String>
Expand description

Read only the dimensions from a NIfTI file header without loading volume data.

Returns (nx, ny, nz). Much faster and uses negligible memory compared to read_nifti_file since it only reads and parses the 348-byte header.