http://imagej.273.s1.nabble.com/Unexpected-Analyze-Particles-behavior-tp5013680p5013756.html
are you using headless mode under Linux? Then it might be a bug causing ImageJ not to reset the 'clear' ("Clear results" checkbox) in headless mode.
> I have a macro for measuring the number of green pixels in a thresholded
> image.
>
> Here are the lines I am having a problem with:
>
> run("Analyze Particles...", "size=10-Infinity summarize");
>
> selectWindow(list[k]);
> close();
>
> // saves summary and results tables
> selectWindow("Summary");
> saveAs("text", dir1+"green.txt");
> selectWindow("Results");
> saveAs("results", dir1+"area.txt");
>
> Previously in Windows, this was working perfectly. I would end up with two
> windows entitled Summary and Results, each containing one table of
> information. Now I'm working from home on Linux (Ubuntu) and am having a
> slight problem. Instead of getting one "Summary" window, ImageJ is opening
> a new window for every image to store the results of "Analyze Particles."
>
> Is there anything I can adjust on run("Analyze Particles...",
> "size=10-Infinity summarize"); to ensure if saves the results in one table
> and doesn't create a new "Summary" window for each image?
>
>
> Here is a link to the complete macro for reference:
>
https://drive.google.com/file/d/0B208tul7KbkbZ3ZxQ2RRR1NtTG8/view?usp=sharing>
> Help is much appreciated!
> Much gratitude,
> Andrew Sanchez
>