Login  Register

Re: User defined ROI

Posted by vbindokas on Oct 25, 2013; 12:01pm
URL: http://imagej.273.s1.nabble.com/User-defined-ROI-tp5005318p5005319.html

Hello Lee,
the command you seek is: [ from
http://imagej.nih.gov/ij/developer/macro/functions.html#S]
*waitForUser(string)*
Halts the macro and displays/string/in a dialog box. The macro proceeds
when the user clicks "OK". UnlikeshowMessage
<http://imagej.nih.gov/ij/developer/macro/functions.html#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'sWait_For_User
<http://imagejdocu.tudor.lu/imagej-documentation-wiki/plugins/wait_for_user>plugin.
Example:WaitForUserDemo
<http://imagej.nih.gov/ij/macros/WaitForUserDemo.txt>.


On 10/25/2013 5:51 AM, Lee Hampson wrote:

> Hello
>
> I am hoping someone can help me with what I assume is a fairly simple problem!
>
> I have a simple macro that places a ROI on an image using the makeOval command and then extracts the pixel number, mean...etc and performs some calculations.  I'd like to amend it so that the user draws the ROI on the image which is then fed into the macro for the statistics to be extracted as before but unfortunately I don't know how to achieve this and searching on the mailbase has drawn a blank.
>
> Any help would be greatly appreciated!
>
> Lee
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
__

Vytas Bindokas, Ph.D.
Research Assoc. / Assoc. Prof.,
Director, BSD Light Microscopy Core Facility
Dept Neurobiol Pharmacol Physiol MC0926
947 E 58th Street
The University of Chicago
Chicago IL 60637
Room Abbott 129
773-702-4875

email [hidden email]
web site for LMCF:
http://digital.uchicago.edu/index.html

shipping address (main KCBD site):
V. Bindokas
900 E 57th Street
KCBD room 1250, Microscopy Core
The University of Chicago
Chicago IL 60637


--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html