Posted by
Dutton,Jeff on
Sep 20, 2005; 6:31pm
URL: http://imagej.273.s1.nabble.com/macro-help-tp3704810p3704812.html
Hello,
I saw your note on the ImageJ listserver.
Is this problem on FSBill???
The only thing I think might be a problem is if you have the plain JRE
on the computer and not the JDK. Maybe the function call (or any
function calls) depend upon the JDK to compile and run.
Maybe???
Jeff
-----Original Message-----
From: ImageJ Interest Group [mailto:
[hidden email]] On Behalf Of
Mohler,William
Sent: Tuesday, September 20, 2005 12:01 PM
To:
[hidden email]
Subject: Re: macro help
Dear Anil and others:
Just trying this batch approach myself, and having no luck on a Mac
with v1.34s installed. Is there and issue with Macros being platform
specific? I get to point of identifying the folder, but then don't
see any action.
Thanks,
Bill
>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
--
-----------------
William A. Mohler
Assistant Professor
Dept. of Genetics and Developmental Biology
University of Connecticut Health Center
MC-3301
263 Farmington Ave.
Farmington, CT 06030-3301
[hidden email]
Office: (860) 679-1833, room E2056
Mobile: (860) 985-2719
Lab: (860) 679-1834, room E2052
Fax: (860) 760-6140
G&DB dept. ofc.: (860) 679-8350
G&DB dept. fax : (860) 679-8345
http://genetics.uchc.edu/Faculty/Mohler/Mohler.html