Skip to content

.img and .nii files #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mike21499 opened this issue Apr 27, 2017 · 2 comments
Open

.img and .nii files #17

mike21499 opened this issue Apr 27, 2017 · 2 comments

Comments

@mike21499
Copy link

Hi there

When using 'SPM' for data preparation, the current version only supports .img-files, so I get e.g the error:

Gathering scans.
Reading beta volumes for subject number 1 of 1: P15Error using spm_vol>spm_vol_hdr (line 80)
File "X:\directory\beta_0001.img" does not exist.

Where can I change the code so that it accepts e.g. "beta_0001.nii" ?

many thanks for help!

@PalomaManguele
Copy link

Hi,

Have you managed to solve this? I am encountering the same problem. I guess we should change the code on spm_vol?

Thanks

@LisaWirz
Copy link

LisaWirz commented Feb 17, 2023

Hi

I don't use SPM for data preparation, but in my case changing fMRIDataPreparation.m to

betaImage = niftiread(readPath);

solved the issue of being unable to load a .nii file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants