Marcel -
You could parse back through the each result row and delete the
one that match your criteria...
lastLength = nResults;
run("Set Measurements...", "area perimeter shape feret's display
redirect=None decimal=3");
run("Analyze Particles...", "size=500-Infinity circularity=0.00-1.00
show=Nothing display exclude");
// Filter results
maxResult = nResults;
// Loop through the results in reverse order... makes it easier for
keeping track of which row we're working on....
for (row=maxResult-1; row >=lastLength; row--) {
solidity =getResult("Solidity", row);
if (solidity > 0.4) { IJ.deleteRows(row,row); }
}
Jeff Hanson
Senior Imaging Analyst
Eli Lilly and Company
Marcel Krzan PhD <
[hidden email]>
Sent by: ImageJ Interest Group <
[hidden email]>
08/11/2011 04:23 AM
Please respond to
ImageJ Interest Group <
[hidden email]>
To
<
[hidden email]>
cc
Subject
solidity condition for the Macro
Hi,
I work with the Macro for automatic particle analysis. At present th
conditions
looks like below:
run("Analyze Particles...", "size=15000-20000 circularity=0.00-1.00
show=Outlines display include in_situ");
if (nResults>lastLength) { ....
I want to addd another condition....
I don't want to record the result if the solidity is below 0.9
Is it possible to add similar condition for Analyze Particles function?
Regards,
Dr. Marcel Krzan
Institute of Catalysis and Surface Chemistry
Polish Academy of Sciences
___ The message was checked by EMS.___