Easy problem: Batch processing multiple output photos
Posted by Tattlelord on Apr 10, 2017; 8:00am
URL: http://imagej.273.s1.nabble.com/Easy-problem-Batch-processing-multiple-output-photos-tp5018487.html
Hi all,
I am very new at ImageJ. So i think I have a very easy problem. As follows:
I have several images of leaves which are partly green and partly red. I have a simple script that analyses the area of both colors. I copied this into the batch processing box (process>batch>macro) (see code below).
I selected an input and output folder for the images. However, it only saves the images analyzed in the first block "bladoppervlakte" (leaf surface) images. It does not save the "rode delen" (red parts) images. How can I adjust to let it save both images in the output folder? Or perhaps ion two seperate folders.
Thank you :)
a=getTitle();
run("RGB Stack");
run("Stack to Images");
selectWindow("Blue");
rename(a+" bladoppervlakte");
setThreshold(0, 100);
run("Analyze Particles...", "size=10000-Infinity circularity=0.00-1.00 show=Nothing display summarize");
selectWindow("Green");
rename(a+" rode delen");
setThreshold(0, 20);
run("Analyze Particles...", "size=250-Infinity circularity=0.00-1.00 show=Nothing display summarize");
selectWindow("Red");
run("Close");