I would suggest modifying your lesionmask.m routine so that it works for
SPM5b. My best guess would be to replace dnrm.estimate.weight by []. This
may work - although I'm not 100% sure.
Best regards,
-John
> I changed the lesionmask.m file so that it looks for T1.nii. I still get an
> error message when running the lesion mask on my CT data sets. I also try
> with the Transm.nii but it also generate an error message. Any suggestion
> about the error source?
>
> Here is the error message:
>
> ??? One or more output arguments not assigned during call to 'spm_vol
> (subfunc)'.
>
> Error in ==> C:\MATLAB6p5\spm5b\spm5b\spm_vol.m (subfunc1)
> On line 83 ==> v = subfunc(P(i,:));
>
> Error in ==> C:\MATLAB6p5\spm5b\spm5b\spm_vol.m (subfunc2)
> On line 71 ==> V = subfunc1(P);
>
> Error in ==> C:\MATLAB6p5\spm5b\spm5b\spm_vol.m
> On line 57 ==> V = subfunc2(P);
>
> Error in ==> C:\MATLAB6p5\spm5b\spm5b\spm_normalise.m
> On line 139 ==> if ischar(VWG), VWG=spm_vol(VWG); end;
>
> Error in ==> C:\MATLAB6p5\spm5b\spm5b\lesionmask.m
> On line 23 ==> prm =
> spm_normalise(VG0,VF,'',dnrm.estimate.weight,wtsrcName ,dnrm.estimate);
>
> >> line 23 ==> prm =
> >> spm_normalise(VG0,VF,'',dnrm.estimate.weight,wtsrcName
>
> ,dnrm.estimate);
>
> ??? Error using ==> line
> Not enough input arguments.
>
>
> Thanks in advance,
>
> Mireille Paradis
> Research Assistant, Neuropsychology
> (418)-529-9141 # 6071
> Center for Interdisciplinary Research in Readaptation and Social
> Integration, Quebec, Canada
>
> Selon John Ashburner <[log in to unmask]>, 10.06.2005:
> > Try changing your lesionmask.m file so that it looks for T1.nii instead
> > of T1.mnc. There is no T1.mnc in SPM5b.
> >
> > Best regards,
> > -John
> >
> > On Friday 10 June 2005 15:46, you wrote:
> > > Dear SPMers
> > >
> > > I faced the following error message attempting to normalize images that
> > > have a lesion (I previously created a lesion mask in MRIcro):
> > >
> > >
> > > ERROR :
> > >
> > > ---------------------------------------
> > > ??? One or more output arguments not assigned during call to 'spm_vol
> > > (subfunc)'.
> > >
> > > Error in ==> C:\MATLAB6p5\spm5b\spm5b\spm_vol.m (subfunc1)
> > > On line 83 ==> v = subfunc(P(i,:));
> > >
> > > Error in ==> C:\MATLAB6p5\spm5b\spm5b\spm_vol.m (subfunc2)
> > > On line 71 ==> V = subfunc1(P);
> > >
> > > Error in ==> C:\MATLAB6p5\spm5b\spm5b\spm_vol.m
> > > On line 57 ==> V = subfunc2(P);
> > >
> > > Error in ==> C:\MATLAB6p5\spm5b\spm5b\lesionmask.m
> > > On line 12 ==> VG0 =
> > > spm_vol(fullfile(spm('Dir'),'templates','T1.mnc'));
> > >
> > > ----------------------------------------
> > >
> > > I followed the MRIcro tutorial steps to normalize CT scans with MRIcro
> > > and SPM2. Unfortunatly, those are clinical scans and the original fine
> > > slices are missing (according to the technician these slices are
> > > essential for 3D rendering). Is it still possible to normalize our data
> > > sets in MNI space?
> > >
> > > Any suggestion to remove skull or normalize CT scans?
> > >
> > > (I have downloaded Updates_186.tar.gz)
> > >
> > > Sincerely,
> > >
> > > Mireille Paradis
> > > Research Assistant, Neuropsychology
> > > (418)-529-9141 # 6071
> > > Center for Interdisciplinary Research in Readaptation and Social
> > > Integration, Quebec, Canada
|