At around line 226, change ispm_render.m from:
rgb = zeros([size(ren) 3]);
tmp = ren.*max(1-X{1}-X{2}-X{3},0);
rgb(:,:,1) = tmp + X{1};
rgb(:,:,2) = tmp + X{2};
rgb(:,:,3) = tmp + X{3};
to something like:
rgb = zeros([size(ren) 3]);
tmp = ren.*max(1-X{1}-X{2}-X{3},0);
rgb(:,:,1) = tmp + (X{1}+X{2})/2;
rgb(:,:,2) = tmp + (X{2}+X{3})/2;
rgb(:,:,3) = tmp + (X{1}+X{3})/2;
X{1} is data for the first set of blobs, which appears in red and blue
(magenta), X{2} appears in red and green (yellow) and X{3} in green and blue
(cyan).
Best regards,
-John
On Tuesday 17 April 2001 09:07, Esa Wallius wrote:
> Dear SPM'ers
>
> How is it possible to have more available colours (now: red, green,
> blue) when using Render Display option with one set?
>
> If this is simple, how to extend this to three sets? I managed to change
> the order of existing colours, but getting different colours was too hard
> for me.
>
> Thanks in advance,
>
> Esa Wallius,
> Turku PET Centre, Finland
--
Dr John Ashburner.
Wellcome Department of Cognitive Neurology.
12 Queen Square, London WC1N 3BG, UK.
tel: +44 (0)20 78337491 or +44 (0)20 78373611 x4381
fax: +44 (0)20 78131420
http://www.fil.ion.ucl.ac.uk/~john
mail: [log in to unmask]
|