Login  Register

ParticleAnalyzer and ResultsTable

Posted by CARL Philippe (LBP) on Dec 12, 2014; 11:08am
URL: http://imagej.273.s1.nabble.com/ParticleAnalyzer-and-ResultsTable-tp5010924.html

Dear all,

Within a macro, I have an issue with the ResultsTable after having used the
ParticleAnalyzer plugin.

And this issue can easily be illustrated with the macro below:

run("Blobs (25K)");

setThreshold(126, 255);

setOption("BlackBackground", true);

run("Convert to Mask");

print(nResults);

run("Analyze Particles...", "size=0-Infinity add");

print(nResults);

which gives the following results:

before =0

after =64

Which means that by running the ParticleAnalyzer plugin several new
ResultsTable lines entries are created (even in the case the Display results
option isn’t activated) which is quite problematic in the case you are
already playing around with the ResultsTable for other purposes within a
macro.

Thus I tried to modify the ParticleAnalyzer.java file
(http://imagej.nih.gov/ij/source/ij/plugin/filter/ParticleAnalyzer.java) in
order to modify the direct ResultsTable entries (within the addMeans method
for example) to entries that are saved to a new ResultsTable instance (to
the evaluationTable ResultsTable in the modified code).

The modified code can be found under the following link:
http://punias.free.fr/ImageJ/ParticleAnalyzer.java

But it is not as well solving the issue of ResultsTable entries creation.

Thus how could I solve this issue of creation of new ResultsTable entries
(in the case the Display results option isn’t activated)?

I thank you very much in advance for your help.

My best regards,

Philippe

 

Philippe CARL

Laboratoire de Biophotonique et Pharmacologie

UMR 7213 CNRS - Université de Strasbourg

Faculté de Pharmacie

74 route du Rhin

67401 ILLKIRCH

Tel : +33(0)3 68 85 41 84

 


--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html