24 Feb 2010 15:21
getFileList Issue
I am attempting to write a macro that will act as a particle counter (I am
counting trichomes on plant leaves). My experience with ImageJ programming
is pretty limited. I want the macro to count particles on all of the images
in a folder. It seems that my macro is not even getting to the point where
it is executing the particle analysis. When I run the macro I get this
error message:
')' expected in line 4.
<list> = getFileList(dir);
Here is the code that I have written (up until the commands for the actual
particle analysis):
macro "Particle Count" {
dir = getDirectory("C:\Users\Matt\Desktop\Matt\");
list = getFileList(dir);
if (getVersion>="1.40e")
setOption("display labels", true);
setBatchMode(true);
for (i=0; i<list.length; i++) {
path = dir+list[i];
showProgress(i, list.length);
if (!endsWith(path,"/")) open(path);
if (nImages>=1)
Any suggestions?
Thanks,
Matt
--
--
View this message in context: http://n2.nabble.com/getFileList-Issue-tp4626046p4626046.html
Sent from the ImageJ mailing list archive at Nabble.com.
(Continue reading)
RSS Feed