Dear Gabi, Lynne,
instead of accessing the private fields of the volume handles directly, it
would be a better idea to use SPM routines like spm_read_vols or
spm_sample_vol to get the data into MATLAB. Also, if you want to stay
within SPM, you can use the ROI tool in CheckReg's image context menu to
create/edit masks. This context menu also has an option to manually adjust
the intensity windowing of the displayed image(s).
Volkmar
On Wed, 25 Oct 2006, Lynne Gauthier wrote:
> Load the image into MRIcro. Create an ROI of what you want to get rid of.
> Export this ROI as Analyze file. Load this file into matlab using spm_vol. I
> believe V.private.dat is a matrix of the data. Load in the image file you
> want to delete material from in the same manner. Do something like this
>
> vals=image.private.dat;
> strip=V.private.dat;
> vals(strip>0)=0;
> spm_write_vol(filename,vals);
>
> This will write out a new image with these values missing. You might have to
> tweak my code a bit, but this is the general idea.
>
>
>
>
> On Oct 20, 2006, at 2:46 AM, Gabriela Spulber wrote:
>
> > Dear all,
> >
> > Can you tell me of a possibility of how to take out some "material" that
> > is
> > not brain and it is included in the mask that I get with SPM.
> >
> > I also have a problem in seeing some images with SPM.It seems like there
> > is
> > some contrast problem.I can adjust the contrast in MRICRO so I can see
> > the
> > image, but I don't know what to do in SPM.It shows just a white
> > background
> > and for some other images I can see some edges , but that's all.
> >
> >
> > Thanks,
> > Gabi
>
> Lynne Gauthier
> Graduate Research Associate
> Neuroimaging Lab
> University of Alabama - Birmingham
> 857-998-7785
> [log in to unmask]
>
>
>
--
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 http://fbi.uniklinik-freiburg.de/
|