Login  Register

Re: Deleting ROIs during a macro

Posted by ElisabethT on Feb 04, 2010; 12:29pm
URL: http://imagej.273.s1.nabble.com/Deleting-ROIs-during-a-macro-tp3689491p3689493.html

Hi Michael,

Thanks for the suggestion, but unfortunately "waitForUser" produces the same results.

Elisabeth



Hi Elisabeth,

wait(10) waits for 10 milliseconds.
I am not sure that you are that fast ;-)

By the way, maybe the "waitForUser" macro command would be better?

Michael
________________________________________________________________

On 4 Feb 2010, at 12:05, ElisabethT wrote:

> Hi there,
>
> I am running a macro and would like to pause the macro after ROI  
> selection,
> to delete any ROIs that are not 'good', then would like to continue  
> to run
> the macro so that the measurements are made.
>
> After I have set a threshold, and selected the ROIs, I can pause  
> the macro
> using
>
> while (isOpen("RGB")) {
> wait(10);
> }
>
> But during that time, when I click on an entry in ROI Manager, the  
> ROI does
> not light up in the image window (i.e. with a yellow outline).  
> However, if I
> scroll using my scroll wheel on my mouse, the yellow outlines do  
> appear. The
> problem is that the scroll only selects every second entry in ROI  
> Manager!
>
> When the macro is finished, and I click on the ROI entries, the yellow
> outlines appear with no problem.
>
> Any help with this would be much appreciated.
>
> Thanks,
> Elisabeth