Re: user adjustment of thresholding parameters in a macro?
Posted by
Gluender-3 on
Sep 08, 2009; 4:45pm
URL: http://imagej.273.s1.nabble.com/user-adjustment-of-thresholding-parameters-in-a-macro-tp3691269p3691272.html
Bill,
did you consider the macro routine:
waitForUser(string)
Halts the macro and displays string in a dialog box. The macro
proceeds when the user clicks "OK". Unlike showMessage, the dialog
box is not modal, so the user can, for example, create a selection or
adjust the threshold while the dialog is open. To display a
multi-line message, add newline characters ("\n") to string. This
function is based on Michael Schmid's Wait_For_User plugin. Example:
WaitForUserDemo.
Concerning questions related to macro coding, a look at the manual
"Built-in Macro Functions" at
<
http://rsb.info.nih.gov/ij/developer/macro/functions.html>
is generally helpful.
>Is it possible in a macro to allow the user to adjust the
>thresholding parameters before thresholding
>takes place (say, by using the "Apply" button) and subsequent macro
>commands occur?
>
>In my attempts, the macro acts on parameter values that have been
>previously set, with no pause to
>allow user interaction with the thresholding panel. My look at the
>archives and online macro
>language manual didn't make it clear to me whether this could be done.
>
>Thanks.
>
>Bill
HTH
--
Herbie
------------------------
<
http://www.gluender.de>