Rank: 278651 based on 0 downloads (last 30 days) and 0 file submitted
photo

Wannabegeek

E-mail

Personal Profile:

 

Watch this Author's files

 

Comments and Ratings by Wannabegeek View all
Updated File Comments Rating
23 Apr 2012 Tools for NIfTI and ANALYZE image Load, save, make, reslice, view (and edit) both NIfTI and ANALYZE data on any platform Author: Jimmy Shen

19 Apr 2012 Tools for NIfTI and ANALYZE image Load, save, make, reslice, view (and edit) both NIfTI and ANALYZE data on any platform Author: Jimmy Shen

I think I figured it out.

I read your updates and realized that the untouch option doesn't load the Transformation matrix, so by adding one I was changing the header.

I resolved by cloning the header and using save_nii()

If you are wondering why I didn't use load_nii(), it is b/c ,y data has non-orthogonal transforms and the open tool wouldn't work.

BTW, I think this behavior maybe unjustified. And the advice to reslice is considered a bad idea in my lab, b/c of interpolation artefacts.

19 Apr 2012 Tools for NIfTI and ANALYZE image Load, save, make, reslice, view (and edit) both NIfTI and ANALYZE data on any platform Author: Jimmy Shen

Hi Jimmy,

I am having an issue using save_untouch_nii().

I load a nifti 4D data set with load_untouch_nii(), make no changes, then try to save with save_untouch_nii() and get a failure with the message:Usage: please use 'save_nii.m' for the modified structure.

I even tried cloning the hdr before the save.

nii = load_untouch_nii('foo.nii');
data = nii.img;
%data = data + 10;
nii_mod = make_nii(data);
%nii_mod.hdr = nii.hdr;
save_untouch_nii(nii_mod,'test1.nii');

Contact us