Posted by
jchanson on
Jan 19, 2007; 5:53pm
URL: http://imagej.273.s1.nabble.com/Macro-problem-tp3700547p3700550.html
This is just a guess, but for the "selectImage" commands, you might need
to put the numbers inside quotes.
selectImage(stit+"1"); bb=getImageID();
selectImage(stit+"0"); gg=getImageID();
selectImage(stit+"3"); rr=getImageID();
run("RGB Merge...","red="+rr+" green="+gg+" blue="+bb);
Jeff
Senior Imaging Analyst
Eli Lilly and Company
[hidden email]
Karsten Rodenacker <
[hidden email]>
Sent by: ImageJ Interest Group <
[hidden email]>
01/19/2007 11:19 AM
Please respond to
ImageJ Interest Group <
[hidden email]>
To
[hidden email]
cc
Subject
Macro problem
I have images with title say "Xxx.zvi Ch2" and would like to RGB
Merge... them. Here appears the space(s) in the title to make
problems. The parser stops after zvi.
stit="Xxx.zvi Ch";
run("RGB Merge...","red="+stit+"1 green="+stit+"0 blue="+stit+"1");
I tried then to use the image id, but these (neg.) numbers are not
accepted.
selectImage(stit+1); bb=getImageID();
selectImage(stit+0); gg=getImageID();
selectImage(stit+3); rr=getImageID();
run("RGB Merge...","red="+rr+" green="+gg+" blue="+bb);
Any ideas? "" are seemingly not implemented.
Hints are appreciated
Karsten Rodenacker
-------------------------------------------------------------------- :-)
GSF - Forschungszentrum Institute of Biomathematics and Biometry
D-85758 Oberschleissheim Postfach 11 29
Karsten.Rodenacker_AT_gsf.de |
http://ibb.gsf.de/http://ibb.gsf.de/homepage/karsten.rodenacker/Tel: +49 89 31873401 | FAX: ..193401