Hello,
> I open Analyze file with Matlab : X= analyze75read('filename.img') ,
> Info=analyze75info('filename.hdr'). Dimension of X :256 256 55.
> Then I want to convert X .mat back to Analyze and I find a complex method.
For reading in images, I usually use the routines supplied by spm:
img = spm_select([1],'image','Select images to process',[],pwd,'.*');
V = spm_vol(img);
vol = spm_read_vols(V);
The first line will give you the name and path of the image you
selected, the second line will give you a handle with information about
the image and the last line will read the image data into memory.
Following manipulation, you can then write the image back using
V.fname = 'new_name.img';
spm_write_vol(V,vol);
This is really only the very basic stuff (otherwise I wouldn't know it
:) but it may give you a clue as to where to start looking.
Cheers,
Marko
--
____________________________________________________
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
____________________________________________________
|