Tibor, Hedok,
the spm_vol and spm_read_vols routines are probably the way to go. The
analyze75info/read routines are only available with the extra Image
Processing toolbox and they do not interpret NIfTI header information
properly.
Volkmar
On Tue, 2 May 2006, Hedok Lee wrote:
> I only work with 3-D images using SPM5. Here is one way to read 3-D nifti
> images.
>
> I use a function called "spm_vol.m" A=spm_vol('name_of_file.img'); %Read an
> image file
> 3-D_Intensity=A.private.dat(:,:,:); %3-D data
>
> I recommend this link as well.
> http://www.sph.umich.edu/~nichols/JohnsGems5.html
>
> hope this helps.
>
> Hedok
>
> Tibor Auer MD wrote:
> >
> > If you use Matlab 7.0 or higher, there are some built-in functions, you
> > can use:
> >
> >
> >
> > analyze75info
> >
> > analyze75read
> >
> >
> >
> > Auer, Tibor MD
> >
> > [log in to unmask] <mailto:[log in to unmask]>
> >
> >
> >
> >
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > *From:* SPM (Statistical Parametric Mapping) [mailto:[log in to unmask]]
> > *On Behalf Of *Zhi Wang
> > *Sent:* Sunday, April 09, 2006 4:21 PM
> > *To:* [log in to unmask]
> > *Subject:* [SPM] How can I open a analyze file using matlab?
> >
> >
> >
> > I am learning programming using matlab to open a analyze file or nifti
> > file. I should be most grateful if anybody can tell me how to do.
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > Zhi Wang
> >
> > 2006-04-09
> >
>
>
--
Volkmar Glauche
-
Department of Neurology [log in to unmask]
Universitaetsklinikum Freiburg Phone 49(0)761-270-5331
Breisacher Str. 64 Fax 49(0)761-270-5416
79106 Freiburg
|