Re: ROI Manager macro questions
Posted by
Janne Hyötylä on
Sep 30, 2010; 1:40pm
URL: http://imagej.273.s1.nabble.com/ROI-Manager-macro-questions-tp3686755p3686757.html
Wayne,
On Tue, 28 Sep 2010 21:17:52 +0200, Rasband, Wayne (NIH/NIMH) [E]
<
[hidden email]> wrote:
> On Sep 28, 2010, at 8:48 AM, Janne Hyötylä wrote:
>
>> 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.
I ran again into this bug, with the 1.44i daily. It happens if I press the
Alt key during such a for loop (simplified to illustrate the point):
for (...) {
makeOval(..);
roiManager("Add");
makeOval(..);
roiManager("Add");
roiManager("Select", roiManager("count") - 2);
roiManager("Rename", "r" + i);
roiManager("Select", roiManager("count") - 1);
roiManager("Rename", "b" + i);
}
Maybe some kind of race condition?
Best,
Janne