Re: Analyze Particles: "the list is empty"
Posted by
nstifani on
Aug 15, 2016; 5:25pm
URL: http://imagej.273.s1.nabble.com/Analyze-Particles-the-list-is-empty-tp5016514p5017015.html
Here are several walk around the problem:
1- Do not display the results. The Summary does not block the Macro so you can display the summary if you just need the counts and NOT need the detailed Particles data
run("Analyze Particles...", "size=&MinParticleArea-&MaxParticleArea circularity=&MinParticleCircularity-&MaxParticleCircularity show=[Overlay Masks] summarize");
With Min and Max MinParticleArea and Particle Circularity being pre-defined integers.
2- You can Clear the results and add a dummy value to the results table
run("Clear Results");
setResult("Area",nResults,"0"); // Add a Dummy results line in the column area
run("Analyze Particles...", "size=&MinParticleArea-&MaxParticleArea circularity=&MinParticleCircularity-&MaxParticleCircularity show=[Overlay Masks] display summarize"); // Do not use clear results
IJ.deleteRows(0, 0); // Delete the Dummy Row from the Results
Analyze Particle should no longer stop in case no particle is detected.