Re: user prompt to draw oval
Posted by
Herbie on
Feb 23, 2017; 8:25pm
URL: http://imagej.273.s1.nabble.com/user-prompt-to-draw-oval-tp5018181p5018182.html
Good day Peter,
I've no idea what the macro is intended to perform.
If you should like to permanently draw the elliptical selection (in
white) you could use:
//
setForegroundColor(255, 255, 255); // white
run("Draw", "slice");
run("Select None");
//
You may use the Recorder feature to construct basic macros.
Best
Herbie
:::::::::::::::::::::::::::::::::::::::::::
Am 23.02.17 um 21:06 schrieb Peter Oslanec:
> setTool("oval");
> waitForUser("....");
>
> if (selectionType==-1)
> exit("Area selection required");
> List.setMeasurements;
> //print(List.getList); // list all measurements
> x = List.getValue("X");
> y = List.getValue("Y");
> width = List.getValue("Major");
> heigth = List.getValue("Minor");
> makeOval(x,y,width,heigth);
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html