Re: macro help
Posted by Anil Bagri on Sep 09, 2005; 4:48pm
URL: http://imagej.273.s1.nabble.com/macro-help-tp3704810p3704813.html
Hi all,
thanks for the great suggestions.
I have now gotten the macro to automatically open and count objects
from all images. I use this macro:
requires("1.33n");
dir = getDirectory("Choose a Directory ");
list = getFileList(dir);
start = getTime();
setBatchMode(true); // runs up to 6 times faster
for (i=0; i<list.length; i++) {
path = dir+list[i];
//print(i+" "+path);
showProgress(i, list.length);
open(path);
setAutoThreshold();
//run("Threshold...");
setThreshold(132, 255);
run("Threshold", "thresholded remaining black");
run("Analyze Particles...", "minimum=10 maximum=999999 bins=20
show=Nothing summarize");
close();
}
//print((getTime()-start)/1000);
My question is how do I get it to put the results in an excel file.
I looked at quite a few macros, but cant identify the commands that
would allow me to do this.
thanks again for all your help.
anil