vistalab / vistasoft

VISTASOFT is the main software repository of the VISTA lab at Stanford University.
http://vistalab.stanford.edu
147 stars 142 forks source link

Functions to read nifti #255

Open htakemur opened 7 years ago

htakemur commented 7 years ago

We have a couple of functions to read nifti file

I don't know the historical background of these files. However, I found one difference. readFileNifti may be faster but fails to read the full matrix of large nifti file (e.g. 10GB). niftiReadMatlab is slow but incorporate full matrix from nifti file.

This will be producing a problem for using vistatool and LiFE on high-spatial or angular resolution diffusion MRI data (or potentially some fMRI data as well).

One idea for enhancement: (1) Edit niftiRead (2) Get the file size estimates of nifti file (3) When the file size exceeds specific limit, use niftiReadMatlab (do not call c-function readFileNifti.mex)

htakemur commented 7 years ago

Related discussion: https://github.com/vistalab/vistasoft/pull/257