Hello, everyone!
I am trying to have a macro to set up merge channels automatically. The
following one is what I have now. Somehow, image J always let the red
channel out although if I print titlered, it shows the correct selection.
Any help would be really appreciated. Thanks a lot!
Best,
Hao
FileTitle=getInfo("image.filename");
selectWindow(FileTitle+" - C=2");
titleRed = getTitle;
selectWindow(FileTitle+" - C=1");
titleGreen = getTitle;
selectWindow(FileTitle+" - C=0");
titleBlue = getTitle;
//print(titleRed);
//print(titleGreen);
//print(titleBlue);
run("Merge Channels...", "red=titleRed green=titleGreen blue=titleBlue
gray=*None*");
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html