Login  Register

Re: Get the selected indexes within the roiManager

Posted by Herbie on Apr 15, 2019; 12:35pm
URL: http://imagej.273.s1.nabble.com/Get-the-selected-indexes-within-the-roiManager-tp5022082p5022083.html

Bonjour Philippe,

I don't fully understand your problem.

In the context of your question the crucial issue for me is:
     How are the ROIs originally selected?

If they are selected by "roiManager("select", indexes)", you should know
the indices.

Some details my help.

Best

Herbie

:::::::::::::::::::::::::::::::::::::::::::
Am 15.04.19 um 14:26 schrieb Philippe CARL:

> Dear all,
> Within the roiManager, there are the following methods:
> - roiManager("select", index)   to select a single ROI within the
> ROI Manager list
> - roiManager("select", indexes) to select several ROIs within the
> ROI Manager list, with indexes being an array of integers
> But the roiManager("index") method returns only "the index of the first
> selected ROI if more than one ROI is selected".
> Thus how is it possible to get the list of selected indexes in the case more
> than one ROI has been selected?
> For information, I want to get the selected ROI indexes in order to make
> some sequential calculations on them.
> I thank you very much in advance for your lightings on this question.
> My best regards,
> Philippe
>
> Philippe CARL
> Laboratoire de Bioimagerie et Pathologies
> UMR 7021 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
>

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