Hi Philippe,
there is no macro command RoiManager.getSelectedIndices. This is only a
java command).
What you can do in a macro:
indexes=split(call("ij.plugin.frame.RoiManager.getIndexesAsString"));
Michael
________________________________________________________________
On 21.06.24 11:26, CARL Philippe (LBP) wrote:
Dear all,
With the macro instruction RoiManager.selectGroup(group) I can select a bunch
of ROIs which have previously be set as being part of a given group.
How can I then get the indexes of the selected ROIs ?
RoiManager.selected gives me only the number of selected ROIs.
As roiManager("index") gives me only "the index of the first selected ROI if more
than one is selected".
Thus it seems that a macro instruction like roiManager("indexes") is missing.
Or is there an alternative method that I may be missing ?
Thanks a lot in advance for your help.
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 41
--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html