Greetings,
It would be nice to be able to select an ROI in the RoiManager's list in
such a way as to not instantiate this roi in the current ImagePlus; Maybe
Alt-LeftClisk. This would allow the user to query/modify the current
setting of the ROI as the RoiManager sees them. IJ.showStatus can be
called when the cursor enters/exits a widget.
Also the one option, and probably the only option, that I would use in the
right-button ROI list popup menu would be Properties, which is missing.
Fred
On Thu, January 9, 2025 9:55 am, Michael Schmid wrote:
...
> But which behavior should we have for the GUI?
> If one selects a roi from the RoiManager's list, should it create a copy
> (so that the roi in the RoiManager remains unaffected by any
> modification of the roi) or should modifications by the user affect the
> roi in the RoiManager's list?
> I see arguments for both: Sometimes one may want to modify a roi in the
> RoiManager's list, sometimes one wants to have the RoiManager's rois
> protected against accidental modifications.
>
> In principle, one could also have an option for selecting the behavior,
> but I fear that the average user won't have a look at the RoiManager's
> options. (There is already a "restore centered" option; probably only
> very few users are aware of this.)
>
>
> Best,
>
> Michael
> ________________________________________________________________
>
> On 09.01.25 15:05, Christophe Leterrier wrote:
>> Hi,
>>
>> I have a problem with setting custom ROI properties in a macro. If I
>> store
>> a ROI in the ROI manager, then assign it properties while the "Show All"
>> checkbox is unchecked, the properties are properly assigned to the ROI.
>>
>> If I do the same thing with the "Show All" checkbox unchecked, the
>> properties are not assigned to the ROI.
>>
>> To test, run the following code:
>>
>> run("AuPbSn 40");
>>
>> roiManager("Show All");
>> makeRectangle(122, 76, 181, 141);
>> roiManager("add");
>> roiManager("select",0);
>> Roi.setProperty("P1", "" + 1);
>> Roi.setProperty("P2", "Cat" + 1);
>>
>> roiManager("Show None");
>> makeRectangle(510, 214, 53, 133);
>> roiManager("add");
>> roiManager("select",1);
>> Roi.setProperty("P1", "" + 2);
>> Roi.setProperty("P2", "Cat" + 2);
>>
>> After that, if you select the first ROI in the ROI manager and click on
>> the
>> "Properties" button of the ROI manager, in the dialog you will get a
>> "List
>> Properties (2)" checkbox in the dialog. If you select the second ROI,
>> you
>> will only get a "No properties" message under the "List coordinates"
>> checkbox.
>>
>> What is strange is that if I try to recall the properties of the second
>> ROI
>> in the macro itself using "ROi.getProperty", the properties are there
>> and I
>> can retrieve them. But if I save the two ROIs as a zip ROI set, open it
>> again, and try to retrieve the properties of the second ROI, they are
>> gone.
>>
>> Thank you for your help,
>>
>> Christophe
>>
>> --
>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>
--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html