Login  Register

please help, macro loop for bulk image analysis

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

please help, macro loop for bulk image analysis

SignalReciever
Dear ImageJers,

I have accounted some problem with my imageJ macro. I want to analyze a lot of .tif pics in my folder automatically. I have my macro, but couldn't have it work properly. I list my macro below. Every time I run the macro, there is a error message of " ")" expected in line14". I checked everywhere; but couldn't find any place lacking a ")". Could you give me some suggestions?

// start of code
macro "1"{
run("Set Measurements...");
dir1 = getDirectory("directory");
list = getFileList(dir1);
setBatchMode(true);
for (i=0; i<list.length; i++) {
   showProgress(i, list.length);
   filename = dir1 + list[i];
   if (endsWith(filename, "tif")) {
      open(dir1+list[i]);
      run("8-bit");
      run("Threshold...");
      run("Analyze Particles...", "size=70-Infinity circularity=0.00-1.00 show=Outlines display exclude summarize record”);
      close();
      }
   }
}


/////end

Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: please help, macro loop for bulk image analysis

chicoronny
Please check the right " marks for this command: run("Analyze Particles...", "size=70-Infinity circularity=0.00-1.00 show=Outlines display exclude summarize record);