Posted by
ctrueden on
Jan 19, 2007; 6:18pm
URL: http://imagej.273.s1.nabble.com/Macro-problem-tp3700547p3700548.html
Hi Karsten,
If there are spaces in your title, try putting it in brackets. For
example, the Macro Recorder (Plugins>Macros>Record...) gave me this
command when I recorded a merge of three-channel ZVI data with spaces
in the title:
run("RGB Merge...", "red=[image.zvi - Ch1] green=[image.zvi - Ch2]
blue=[image.zvi - Ch3]");
So maybe you could do something like:
stit="Xxx.zvi Ch";
run("RGB Merge...","red=["+stit+"1] green=["+stit+"0] blue=["+stit+"1]");
-Curtis
On 1/19/07, Karsten Rodenacker <
[hidden email]> wrote:
> 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
>