Posted by
thomas.clarke on
URL: http://imagej.273.s1.nabble.com/Batch-process-save-and-split-channels-tp5019379.html
Hi I'm new to imagej and macros,
I'm splitting a nd2 file into the 3 channels, running z project, enhancing
and then saving each of the 3 channels. When I run the macro bellow in batch
processing it does everything correct however it only saves one of the
channels and without the file name I want. Any suggestions on how I can
achieve this?
T = getTitle();
run("Split Channels");
selectWindow("C1-"+T);
run("Z Project...", "projection=[Max Intensity]");
run("Enhance Contrast", "saturated=0.35");
selectWindow("C2-"+T);
run("Z Project...", "projection=[Max Intensity]");
run("Enhance Contrast", "saturated=0.35");
selectWindow("C3-"+T);
run("Z Project...", "projection=[Max Intensity]");
run("Enhance Contrast", "saturated=0.35");
selectWindow("MAX_C1-"+T);
saveAs("Jpeg", T + "Jpeg");
selectWindow("MAX_C2-"+T);
saveAs("Jpeg", T + "GREEN.Jpeg");
selectWindow("MAX_C3-"+T);
saveAs("Jpeg", T + "RED.Jpeg");
--
Sent from:
http://imagej.1557.x6.nabble.com/--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html