Login  Register

Re: A couple/several of issues about the ROI Manager

Posted by Romain Guiet on Feb 18, 2015; 10:30am
URL: http://imagej.273.s1.nabble.com/A-couple-several-of-issues-about-the-ROI-Manager-tp5011456p5011659.html

Hi Philippe,

I don't know if I understood correctly what you're looking for but did you try the function :

roiManager("select", indexes)
Selects multiple items in the ROI Manager list, where indexes is an array of integers, each of which must be greater than or equal to 0 and less than the value returned by roiManager("count").
The selected ROIs are not highlighted in the ROI Manager list and are no longer selected after the next ROI Manager command is executed.



Cheers,

Romain

---------------------------------------------------------------
Dr. Romain Guiet
Bioimaging and Optics Platform (PT-BIOP)
Ecole Polytechnique Fédérale de Lausanne (EPFL)
Faculty of Life Sciences
Station 19, AI 0140
CH-1015 Lausanne

Phone: [+4121 69] 39629
http://biop.epfl.ch/
---------------------------------------------------------------

________________________________________
De : ImageJ Interest Group [[hidden email]] de la part de Philippe CARL [[hidden email]]
Envoyé : mercredi 18 février 2015 10:58
À : [hidden email]
Objet : Re: A couple/several of issues about the ROI Manager

Dear Wayne,
I thank you very much for your updates which are already improving a lot the
ROI Manager tool.
I would just have two comments on these updates:

>> -          Macro recorder: the recorder isn't anymore saving the show_all
>> and label fonctions of the ROI Manager
> This regression is fixed in the latest ImageJ daily build (1.49p13).

"roiManager("Show All");" is recorded the first time you press the "Show
All" CheckBox, but after that it is not recorded anymore, as
"roiManager("Show None");" is correctly recorded each time you deselect the
"Show All" CheckBox.
In the same way "roiManager("Show All with labels");" is correctly recorded
as "roiManager("Show All without labels");" isn't recorded each time you
press the "Labels" CheckBox.

>> -          Multiple selections in the ROI Manager: By selecting several
ROIs
>> within the ROI Manager, I would expect that all the selected ROIs are
>> shown up in the picture, but only the first selected one can be seen.
> Only the first ROI is shown because, except in an overlay, ImageJ can only
display one ROI at a time.

Up to now in ImageJ it is possible to simultaneously display all the ROIs in
the ROI Manager with the "Show All" feature together (= simultaneously) with
a selection and a ROI.
Now let's say you have a couple hundred of ROIs within the ROI Manager, and
you want then select several tens of them is order to apply a logical
combination (OR, XOR, AND)...
Today this is a quite difficult task unless of course there is an easy
solution that I may be missing.
What I'm thinking about is a code similar to what is running behind the
"Show All" feature as soon as you select more than a ROI within the ROI
Manager.
Only the first ROI is drawn as up selection, but behind you see all the
other selected ones and this selection is of course as well ignored in the
case the "Show All" CheckBox is set to "true".

I thank you very much in advance for your answer and work on this.
Have a nice day,
Philippe

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

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