Analyze Particles and updateResults()

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Analyze Particles and updateResults()

Olivier Burri
Hello all,

Just a note that if you run this code

run("Blobs (25K)");
setAutoThreshold("Default");
run("Analyze Particles...", "exclude add");
updateResults();

You get a populated results table even though Display Results was not checked in the Analyze Particles Dialog.

Anyone else notice this behavior?

Best

Oli


--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Analyze Particles and updateResults()

Jerome Mutterer-3
Hi Olivier,
updateResults(); shows the "Results" table:
https://github.com/imagej/imagej1/blob/master/ij/macro/Functions.java#L1183
Sincerely,

Jerome.

On 6 February 2015 at 12:19, Burri Olivier <[hidden email]> wrote:

> Hello all,
>
> Just a note that if you run this code
>
> run("Blobs (25K)");
> setAutoThreshold("Default");
> run("Analyze Particles...", "exclude add");
> updateResults();
>
> You get a populated results table even though Display Results was not
> checked in the Analyze Particles Dialog.
>
> Anyone else notice this behavior?
>
> Best
>
> Oli
>
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>



--
Jerome Mutterer
CNRS - Institut de biologie moléculaire des plantes
12, rue du Général Zimmer
67084 Strasbourg Cedex
T 0367155339
www.ibmp.cnrs.fr

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Analyze Particles and updateResults()

Michael Schmid
In reply to this post by Olivier Burri
Hi Oli,

it seems that "updateResults" is the culprit. As I understand it, the ParticleAnalyzer always uses the ResultsTable, but usually leaves it hidden unless the user requests it to be displayed. A similar problem with the 'summarize' function of the ParticleAnalyzer was on the list recently. This is probably a historical issue, dating back to the days when ImageJ was a small Java Applet, not the full-fledged image processing program and computing environment that it is today.

In principle, I think that this could be changed by the ParticleAnalyzer having its own private ResultsTable, not the standard one, if it is not supposed to show it. This would be definitely nice if the user needs the ResultsTable for something else in the meanwhile. I had a look at it, but it is not so obvious to me whether changing this could break other functions. Maybe there is someone else out there who is more familiar with the ParticleAnalyzer...


Michael
________________________________________________________________
On Feb 6, 2015, at 12:19, Burri Olivier wrote:

> Hello all,
>
> Just a note that if you run this code
>
> run("Blobs (25K)");
> setAutoThreshold("Default");
> run("Analyze Particles...", "exclude add");
> updateResults();
>
> You get a populated results table even though Display Results was not checked in the Analyze Particles Dialog.
>
> Anyone else notice this behavior?
>
> Best
>
> Oli
>
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

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