Login  Register

Re: Interacting with image in BatchMode

Posted by Volker Baecker on Jun 16, 2010; 12:58pm
URL: http://imagej.273.s1.nabble.com/Interacting-with-image-in-BatchMode-tp3687909p3687910.html

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,
you can switch the batchmode off temporarily to allow user interaction
and switch it on again afterwards. For example

setBatchMode(false);
waitForUser("Correct the selection and press ok");
setBatchMode(true);

I don't know if it is directly possible in the macro language, but you
can do it running javascript from the macro language:

eval("script", "RoiManager.getInstance().close();");

Volker

On 16/06/10 14:19, Thomas P wrote:

> I'm in the middle of writing an automated red eye removal macro for a school
> project. A part of the program marks the located red eyes so the user can
> deselect false positives so they are not processed.
>
> When I run the macro in Batchmode the image showing the detected red eyes
> are not shown, so the concept fall apart a bit. Is there a command that
> forces a window to apear even when batchmode is active?
>
> On a different note - Is it possible to close the ROI manager window in a
> macro? selectWindow() doesn't seem to work on the ROI manager...
>
> Thanks in advance
>
> Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwYyokACgkQ0gXPLVKexCch0gCdGZJOuhXNJzLXZEW5/X6QihyZ
vfoAniypLaDmVBkGST9p7YR+ENF3ohGZ
=SP/F
-----END PGP SIGNATURE-----

--
passerelle antivirus du campus CNRS de Montpellier
--