On Tuesday 25 Mar 2014 12:45:44 you wrote:
> seems to be too many windows are open. Each image that is processed leaves
> the "Threshold Colour" window open. *Is there some code I can include in
> the macro that will close that window after it processes an image? *
> imgName=getTitle();
> run("Duplicate...", "title=1.tif");
> run("Threshold Colour");
I have not tried your code, but I do not think you need the 3rd line. The
macro generated after that line is precisely to do what you chose before
pressing "macro" and do it programatically without calling the plugin.
You need to close the images that you do not need, for example, at the end:
selectWindow(imgName);
close();
Not sure you need this line at the end, *after* you measured, as it would not
do anything:
run("Clear Outside", "slice");
Hope it helps
Gabriel
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html