---------- Forwarded message ----------
From: Wuming Gong <[log in to unmask]>
Date: Jul 30, 2006 4:26 PM
Subject: Re: [SPM] Problem with displaying .img file
To: Xu Cui <[log in to unmask]>
Dear list,
After chaning the coordinates of z axis, the plot can be displayed
well. (See attached figure).
Thanks,
Wuming
On 7/30/06, Xu Cui <[log in to unmask]> wrote:
> Maybe it is because your image file is 2D instead of 3D?
>
> Xu
>
> -----Original Message-----
> From: SPM (Statistical Parametric Mapping) [mailto:[log in to unmask]] On Behalf Of Wuming Gong
> Sent: 2006年7月29日 10:08
> To: [log in to unmask]
> Subject: [SPM] Problem with displaying .img file
>
> Dear list,
>
> I have a dataset (128x128x1, 41 scans) in .sdt format. The dataset
> was decoded by a customized MatLab code and write into the .img format
> (one file per scan) with the help of AnalyzeFMRI (an R package
> http://www.stats.ox.ac.uk/‾marchini/software.html).
>
> I hope to view the the the image (the 1st image was attached with this
> mail) using the "display" function in the main SPM2 panel. However,
> there was nothing displaying in the Graphics window (total dark). I
> moved the crosshairs and find that the position values looked strange,
> and the intensity was always 0.
>
> However, when using
>
> v = spm_vol('sim.0001.img');
> d = spm_read_vols(v);
> imagesc(d(:,:,1))
>
> to plot the image, the data can be displayed well.
>
> I wonder why the "display" function cannot show the image normally. (I
> also used SPM to analyze the whole data set (41 scans), but SPM
> reported no actived regions - the activated region should be clear...)
>
> Thanks,
>
> Wuming Gong
>
|