Login  Register

macro help

Posted by Anil Bagri on Sep 09, 2005; 2:05am
URL: http://imagej.273.s1.nabble.com/macro-help-tp3704810.html

hi all,
I have a quick (or perhaps not so quick) question for you.  I am trying
to process (count objects in ) a large batch of jpg files that are all
in the same directory using the following macro:

setAutoThreshold();
//run("Threshold...");
setThreshold(132, 255);
run("Threshold", "thresholded remaining black");
run("Analyze Particles...", "minimum=10 maximum=999999 bins=20
show=Nothing summarize");


but I dont want to run the macro individually on each file in the
directory.  Is there a way to make the macro automatically run on every
file in the folder and put the values in an excel file?  will I have to
write another macro to make that happen.  can anyone help me with this
- it is clearly beyond my coding abilities.
thanks in advance
Anil