Re: ROI Manager macro questions
Posted by Rasband, Wayne (NIH/NIMH) [E] on Sep 28, 2010; 7:17pm
URL: http://imagej.273.s1.nabble.com/ROI-Manager-macro-questions-tp3686755p3686756.html
On Sep 28, 2010, at 8:48 AM, Janne Hyötylä wrote:
> Hello everyone,
>
> I have some questions about using the ROI Manager from macros.
>
> 1) Is there a way to call the More >> "Remove Slice Info" function from a
> macro? Or is there another way to reuse a ROI but on a different slice
> from a macro?
Rename the ROI using roiManager("Rename", "newname") and you will then be able to use it on a different stack.
> 2) I've written a macro which creates, selects, deletes a lot of ROIs
> using roiManager("") calls. I noticed that when I press Alt while the
> macro is running and ImageJ has focus, a dialog comes up asking to rename
> a ROI. This is on Linux with Fiji. Can I turn this behaviour off, i.e.
> stop the ROI Manager from receiving keyboard commands while the macro is
> running? I already have setBatchMode(true).
This bug is fixed in the v1.44i daily build.
-wayne