Login  Register

run("Merge Channels..." ...) problem

Posted by BSdetector on Jul 25, 2016; 12:39pm
URL: http://imagej.273.s1.nabble.com/run-Merge-Channels-problem-tp5016934.html

Could someone explain me why this works:

dir=getDirectory("Select a Directory");
image="no2_63x_32zoomb.lsm"
path=dir + image;
run("Bio-Formats", "open=path autoscale color_mode=Colorized view=Hyperstack stack_order=XYCZT stitch_tiles");
run("Magenta");
run("Split Channels");
selectWindow("C1-"+image);
Ch1 = getTitle;
selectWindow("C2-"+image);
Ch2 = getTitle;
selectWindow("C3-"+image);
Ch3 = getTitle;
run("Merge Channels...", "c2=C2-no2_63x_32zoomb.lsm c3=C3-no2_63x_32zoomb.lsm c6=C1-no2_63x_32zoomb.lsm create keep");

and this doesn't:
dir=getDirectory("Select a Directory");
image="no2_63x_32zoomb.lsm"
path=dir + image;
run("Bio-Formats", "open=path autoscale color_mode=Colorized view=Hyperstack stack_order=XYCZT stitch_tiles");
run("Magenta");
run("Split Channels");
selectWindow("C1-"+image);
Ch1 = getTitle;
selectWindow("C2-"+image);
Ch2 = getTitle;
selectWindow("C3-"+image);
Ch3 = getTitle;
run("Merge Channels...", "c2=Ch2 c3=Ch3 c6=Ch1 create keep");

???

Thanks,
B