http://imagej.273.s1.nabble.com/Getting-a-list-of-indexes-of-selected-ROIs-tp5013762p5013772.html
tool that can be installed. This way, you would know the coordinates of the
is not. Aborts the macro if there is no selection. Requires 1.49h. See
> Sorry, if the original description of my problem wasn't clear. I am trying
> to write a macro that allows the user to manually select a number of ROIs
> from the ROI manager that contains a large number of ROIs. The macro will
> then only analyse the selected ROIs. In order to achieve this, I would like
> to get a list/array of the indexes of the selected ROIs. So, I am looking
> for an equivalent to the roiManager("index") function that returns not just
> the index of the first, but all selected ROIs.
> Any suggestions?
> Thanks,
> Volko
>
> On July 27, 2015 5:27:37 PM GMT+01:00, Avital Steinberg <
>
[hidden email]> wrote:
> >Hi Volko,
> >I don't understand: aren't you the one writing the macro? In which
> >case,
> >you are the one who determines which ROIs are selected. The command
> >roiManager("index") selects the ROI that has the index "index" - it
> >doesn't
> >return anything. Similarly, the command: roiManager("select", indexes)
> >*s*elects
> >multiple ROIs. In this case, indexes is an array of indices,
> >
> >Avital
> >
> >
> >On Mon, Jul 27, 2015 at 6:27 PM, Straub, Volko A. (Dr.) <
> >
[hidden email]> wrote:
> >
> >> I am trying to get a list of the indexes if multiple ROIs are
> >selected in
> >> the ROI manager to use in a macro. The function roiManager("index")
> >returns
> >> the index of the first selected ROI, but is there a way to obtain the
> >> number and indexes of multiple selected ROIs? I noticed that the
> >RoiManager
> >> class has a getIndexes() function. Is there a way to use that
> >function in a
> >> macro? I thought there was, but searching the documentation, I don't
> >seem
> >> to be able to find the right information.
> >>
> >> Any advice/pointers would be very welcome.
> >>
> >> Thanks,
> >>
> >> Volko
> >>
> >> --
> >> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html> >>
> >
> >--
> >ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
> --
> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>