Dear Krish,
> Using the Imcalc functions, is it possible to calculate an image which
> contains the maximum value of a set of target images?
>
> For example, suppose I have six con**.img files. Is it possible to
> generate a "peak.img" file such that each voxel within peak.img contains
> the maximum value from the same voxel in each of the six con* files?
>
> For a two sample case, I tried the following:
>
> f='i1*(i1>=i2)+i2*(i2>=i1)';
>
> but that didn't work. I'm not much of a matlab expert, so apologies if
> there is a trivial solution.
For the multiplication of vectors or matrices element by element instead of
the usual vector or matrix multiplication, you must use '.*' instead of '*'.
I guess, you will get the peak-image by using:
f='i1.*(i1>=i2)+i2.*(i2>=i1)'
Good luck
Karsten
----------------------------------
Dipl. Phys. Karsten Specht
Medizin Center Bonn
Spessartstrasse 9
53119 Bonn
Germany
Phone: ++49-(0)228/90 81-178
Fax: ++49-(0)228/90 81-190
E-Mail: [log in to unmask]
WWW: http://www.mcbonn.de/Praxis/praxis15/fmri1.htm
|