RGB+autozoom

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

RGB+autozoom

Oliver Dick
Dear List,
I have the problem that I want so split a RGB-image into the single
channels and then view all new pictures with a 25% zoom side by side.
Doing that manually works fine and even assigning shortcuts to the
single commands works fine, but I would like to have this automated. Is
there an easy way to do this?

Oliver Dick

--
Dr. Oliver Dick
Neurobiologie
Im Neuenheimer Feld 364
69120 Heidelberg

Tel.: ++49/(0)6221/548329
Fax.: ++49/(0)6221/546700
Email.: [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: RGB+autozoom

Christophe CHAMOT
Oliver Dick a écrit :
> Dear List,
> I have the problem that I want so split a RGB-image into the single
> channels and then view all new pictures with a 25% zoom side by side.
> Doing that manually works fine and even assigning shortcuts to the
> single commands works fine, but I would like to have this automated. Is
> there an easy way to do this?
>
> Oliver Dick
>

Hello Oliver,

a quick an dirty way with a macro :
-----------------------------------------------
rename("image");
run("RGB Split");
selectWindow("image (red)");
run("Add Slice");
run("Add Slice");
setSlice(2);
selectWindow("image (green)");
run("Select All");
run("Copy");
selectWindow("image (red)");
run("Paste");
setSlice(3);
selectWindow("image (blue)");
run("Select All");
run("Copy");
selectWindow("image (red)");
run("Paste");
run("Make Montage...", "columns=3 rows=1 scale=0.25 first=1 last=3
increment=1 border=1");
selectWindow("image (green)");
close();
selectWindow("image (blue)");
close();
-----------------------------------------------
Hope it helps

--
CHAMOT Christophe
---------------------------------------------------------------------
Plate-Forme de Recherche IFR117
"Imageries des Processus Dynamiques
en Biologie Cellulaire et Biologie du Développement "
Institut Jacques Monod, CNRS, Universités Paris 6 et 7
2, place Jussieu - Tour 43
75251 Paris cedex 05
Tel: 01 44 27 57 84
http://www.ijm.jussieu.fr/
---------------------------------------------------------------------