We also use a home written program (mosaic2analize) to convert siemens
mosaic b33a format to
SPM, which can be called from a matlab (SPM) script (mosaic2spm.m). The
binary is for a sun, but
other platforms (linux, hp, DEC-alpha, IRIX) are supported too (send
e-mail).
Michel.
--
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Dr. Michael Erb
Sektion f. experimentelle Kernspinresonanz des ZNS
Abteilung Neuroradiologie
Universitaetsklinikum
Hoppe-Seyler_Str. 3, D-72076 Tuebingen
Tel.: +49(0)7071/2985398
priv. +49(0)7071/61559
Fax.: +49(0)7071/294371
e-mail:
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
% loop to apply some task to some images
task='mosaic2spm';
% call to external program mosaic2analyze
% Create SPM readable ANALYZE file(s) from Nema/Numaris 'mosaic' files.
% The created ANALYZE .img and .hdr files are in the host's native byte order.
% Usage: mosaic2analyze[-v] [-s n] [-i n] [-m] -[b] input_file spm_file
% -v : verbose, comment all relevant actions.
% -m : mirror each slice: flip left<->right.
% -b : bottomup: flip lower<->upper.
% -o : overwrite existing files.
% -x n : force (n X n) mosaic.
% -i n : force n subimages in mosaic.
% conv_flags='-m';
conv_flags='';
title=['apply task (', task, ') to some images '];
%set(spm_figure('FindWin','Interactive'),'Name',title,'Pointer','watch');
set(spm_figure('FindWin','Interactive'),'Name',title);
%P = spm_get(Inf,'.ima','selekt images for task');
P = spm_get(Inf,'.org','selekt images for task');
n = size(P,1);
disp([' Number of files: ', num2str(n) ]);
set(spm_figure('FindWin','Interactive'),'Pointer','watch');
spm_progress_bar('Init',n,'writing','Slices Complete');
for i=1:n
%spm_scroll(deblank(spm_str_manip(P(i,:),'s')),'y',nscroll);
filename=deblank(P(i,:));
spmname=deblank(spm_str_manip(P(i,:),'r'));
%disp(['mosaic2analyze ',conv_flags,' ', filename,' ', spmname]);
unix(['mosaic2analyze ',conv_flags,' ', filename,' ', spmname]);
spm_progress_bar('Set',i);
end
spm_figure('Clear','Interactive');
|