Login  Register

Re: Analyze Particles changes the results settings

Posted by Avital Steinberg on Sep 10, 2015; 6:24pm
URL: http://imagej.273.s1.nabble.com/Analyze-Particles-changes-the-results-settings-tp5013849p5014313.html

Actually, Thomas - thanks for your question. I just made my Javascript
program much faster, because you reminded me of the source of the problem.
(which has something to do with the ROI manager - I forgot about this until
I saw your question)

In the macro language you must show the ROI manager from the beginning of
your script, but in Javascript, it's possible to initiate the ROI manager
like this:

rm = RoiManager(true);

This is in hidden mode. If I use:

rm = getInstance2
<http://rsb.info.nih.gov/ij/developer/api/ij/plugin/frame/RoiManager.html#getInstance2-->
();

Whenever I need to "see" the ROI manager, everything works well.

Good luck,
Avital





On Thu, Sep 10, 2015 at 6:29 PM, Thomas GUILBERT <[hidden email]>
wrote:

> Hi,
> I have the same issue as Avital Steinberg.
> More precisely the function "Clear Results" seems to clean the measures
> tablebut not nResults var(IJ 1.49v or 1.5b).
> Does anyone have an idea ?
>
> Thanks,
>
>
>
> Le 02/08/2015 15:56, Avital Steinberg a écrit :
>
>> Hi,
>> I have a problem - when I use Analyze, Particles, it changes the settings
>> of the result table, so that if I would like to append measurements to the
>> table, it "forgets" whatever was in the table before the Analyze,
>> Particles. For example, if I exit before Analyze, Particles, I can see
>> "This is cell1", but otherwise, it will not appear:
>>
>> run("Clear Results");
>> roiManager("Select", 0);
>> setResult("Cell", 0, "This is cell1");
>> updateResults();
>> setThreshold(11581, 36348);
>> run("Analyze Particles...", "include add");
>> resetThreshold();
>> roiManager("Select", 1);
>> getStatistics(area, mean);
>> area1 = area;
>> mean1 = mean;
>> setResult("Area", 0, area1);
>>
>> Why would this be?
>>
>> Thanks,
>> Avital
>>
>> --
>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>>
>>
> --
> Thomas GUILBERT, PhD
> Plate-Forme Cochin Imagerie,
> Institut Cochin - INSERM U1016
> Bât. Gustave Roussy 5ème étage
> 22 rue Méchain, 75014 PARIS
>  tel: 01 40 51 66 55
>
> http://www.cochin.inserm.fr/
> [hidden email]
>
>

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