The fix will be made available in the next set of updates, which I expect will
be shortly before Xmas.
Best regards,
-John
On Monday 03 December 2007 11:04, Thomas Stephan wrote:
> Dear John,
>
> regarding the problem with 4D-int16 nifti images, you wrote that you had
> written a fix that you were testing. Is that fix already available?
>
> Best regards
> Thomas
>
>
> On Wed, 7 Nov 2007 13:08:56 +0100, John Ashburner <[log in to unmask]>
>
> wrote:
> >This should do the job...
> >
> >%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> >% Select file
> >Pi = spm_select(1,'nifti');
> >
> >% Get NIFTI handle
> >Ni = nifti(Pi);
> >
> >% Generate name for new file
> >[pth,nam,ext] = fileparts(Pi);
> >Po = fullfile(pth,['double_' nam ext]);
> >
> >% Generate new NIFTI handle based on the original
> >No = Ni;
> >No.dat.fname = Po;
> >No.dat.dtype = 'float64';
> >
> >% Create the new file
> >create(No);
> >
> >% Copy each of the 3D volumes
> >for i=1:size(Ni.dat,4),
> > No.dat(:,:,:,i) = Ni.dat(:,:,:,i);
> >end
> >
> >%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> >
> >Best regards,
> >-John
> >
> >On Wednesday 07 November 2007 11:54, marco tettamanti wrote:
> >> Dear Roland, John, and others,
> >>
> >> I am currently analyzing 4D data with SPM5, and I was wondering how to
> >> convert int data to double.
> >> Can you please point me to some specific matlab routines or conversion
> >> program to achieve this?
> >>
> >> Thank you a lot for your help,
> >> Best wishes,
> >> Marco
> >>
> >> > Date: Thu, 25 Oct 2007 15:38:51 +0200 From: Roland Marcus Rutschmann
> >> >
> >> > Hi again,
> >> >
> >> >> On Thursday 25 October 2007 13:59, John Ashburner wrote: There is
> >> >> definately a problem here. ... I would recommend not using 4D data
> >> >> with the current version of SPM5 - unless the data is stored as one
> >> >> of the floating point formats. The problem manifests when reslicing
> >> >> realigned images, and also writing spatially normalised data.
> >> >
> >> > Ah thanks, I just converted my 4D from int to double and now the
> >> > results look alike (4d-float with 3d results from the last mail). You
> >> > wouldn't > > believe how relieved I am now ;-)
> >> >
> >> > Thanks,
> >> >
> >> > Roland
> >
> >=========================================================================
|