Max,
in order to read image volumes into Matlab's workspace, you may want to
look into spm_select, spm_vol, and spm_read_vols. Each one is a step in
the right direction, in that
image = spm_select(1,'image', 'Select image volume');
handle = spm_vol(image);
array = spm_read_vols(handle);
As to summing up to one, this should work when you use the code. Note,
however, that spm uses a scalefactor in order to be able to use the full
range of intensities provided by the image format, so that (if you use
other, less compliant functions to read these images) the result may be
255 (in the case of uint8).
Hope this helps,
Marko
Shen max wrote:
> Dear researcher:
>
> I use the founction of SPM8* fMRI--> Segmentation* to segment the
> original T1 image into Grey matter,White matter and CSF tissue type
> I successfully see three types img by SPM Display,but I don't know how
> to get the array of each image.
> then I try the function in*Display,* *File-->Save as ,*final I get a
> full screen shot.What I worry is it could lose a little value of the
> result image array.
> and I add three tissue type image,unfortunately the sum of brain part
> array value is not 255(white),means the sum of three type probability
> not equal to 1.
> 1.How should I correctly get the segment image array?
> 2.Why the sum of three type probability is not equal to 1?
>
> Best regards,
> Max Shen
--
____________________________________________________
PD Dr. med. Marko Wilke
Facharzt für Kinder- und Jugendmedizin
Leiter, Experimentelle Pädiatrische Neurobildgebung
Universitäts-Kinderklinik
Abt. III (Neuropädiatrie)
Marko Wilke, MD, PhD
Pediatrician
Head, Experimental Pediatric Neuroimaging
University Children's Hospital
Dept. III (Pediatric Neurology)
Hoppe-Seyler-Str. 1
D - 72076 Tübingen, Germany
Tel. +49 7071 29-83416
Fax +49 7071 29-5473
[log in to unmask]
http://www.medizin.uni-tuebingen.de/kinder/epn/
____________________________________________________
|