Hi,
Long time reader, first time poster...
The MATLAB command to unzip gzip files is "gunzip". Look it up in the MATLAB help for more information. That in conjunction with the tools for nifti and analyze from MATLAB Central File Exchange should get the job done.
Best Regards,
Eric Earl, Senior Research Assistant
OHSU Advanced Imaging Research Center
3181 SW Sam Jackson Park Rd, Portland, OR, 97239
Phone: 503.418.1567 FAX: 503.418.1543
-----Original Message-----
From: FSL - FMRIB's Software Library [mailto:[log in to unmask]] On Behalf Of Matt Glasser
Sent: Tuesday, November 02, 2010 11:37 AM
To: [log in to unmask]
Subject: Re: [FSL] read nii.gz files matlab
Well, you can use the other NIFTI reader and just unzip the files in a
wrapper matlab script.
Peace,
Matt.
-----Original Message-----
From: FSL - FMRIB's Software Library [mailto:[log in to unmask]] On Behalf
Of Auer, Tibor M.D. Ph.D.
Sent: Tuesday, November 02, 2010 12:44 PM
To: [log in to unmask]
Subject: Re: [FSL] read nii.gz files matlab
It works on Linux (ubuntu) just perfect.
But how can it be used on Windows?
Auer, Tibor M.D. Ph.D.
Biomedizinische NMR Forschungs GmbH
am Max-Planck Institut für Biophysikalische Chemie
Am Fassberg 11
37077 Göttingen
Germany
Phone/Work: +49-(0)551-201-1725
Phone/Home: +49-(0)551-387-0076
Mobile: +49-(0)176-8012-7921
Mail: [log in to unmask]
2010.11.02. 18:33 keltezéssel, Mark Jenkinson írta:
> Hi,
>
> We have very simple tools for reading and saving nifti images
> with matlab. You'll find them in $FSLDIR/etc/matlab
> They work with compressed nifti without problems.
>
> All the best,
> Mark
>
>
> On 2 Nov 2010, at 17:17, R. Matthew Hutchison wrote:
>
>> There is a great matlab toolbox here:
>>
http://www.mathworks.com/matlabcentral/fileexchange/8797-tools-for-nifti-and
-analyze-image
>>
>>
>> I am not sure if this is the one you are referring to.
>>
>> Unfortunately it doesn't read the compressed nifti files (.nii.gz) but
>> you can simply uncompress the files to .nii and run them.
>>
>> -Matt
>>
>>
>>
>> On Tue, Nov 2, 2010 at 1:13 PM, Pallavi Karnayana
>> <[log in to unmask]> wrote:
>>> How can nii.gz files be read in matab?
>>> I tried downloading Analyze MRI toolbox and also MRIcro tool.
>>>
>>> It is not working still. I want to read a bunch of nii.gz files in
>>> matlab.
>>> Can anyone guide regarding the same?
>>>
>>
>>
>>
>> --
>> R. Matthew Hutchison, PhD. Candidate
>> Centre for Functional and Metabolic Mapping
>> Robarts Research Institute
>> Cuddy Wing - 9.4T Suite
>> P.O. Box 5015, 100 Perth Drive
>> London, Ontario, Canada N6A 5K8
>>
|