Login  Register

Re: Batch splitting of stacks and saving

Posted by cmparkes on Nov 26, 2014; 3:21pm
URL: http://imagej.273.s1.nabble.com/Batch-splitting-of-stacks-and-saving-tp4578247p5010643.html

Hello I am having a similar problem.

I have Images which I want to split into the three colour channels. I have worked out the commands that I would like to be performed on the green and blue images once they have been split, but when it comes to putting it into a batch command process I don't know how to change my code so that it will apply to all of the images in the directory I want to use and select the blue image to do the following steps with.

This is what I would like to happen to the BLUE images:
open("FOLDER NAMEf");
run("Split Channels");
selectWindow[THIS IS WHERE I THINK I NEED TO PUT THE FILE NAME OF THE SPLIT WINDOW???]

//run("Brightness/Contrast...");
setMinAndMax(0, 50);
run("Close");
run("Enhance Contrast...", "saturated=2 normalize");
run("Find Edges");
setAutoThreshold("Default dark");
//run("Threshold...");
setThreshold(0, 193);
run("Measure");
I would then like the Green and Blue images to be saved to separate directorys and discard the red image.


I am not a programmer so any help would be greatly appreciated.

Thanks,

Christina