Posted by
Ethan Cohen on
URL: http://imagej.273.s1.nabble.com/Making-an-ellipse-ROI-from-user-input-tp5013728.html
I have tried several ways to get user input of values for an ellipse to write a macro.
With this macro I can select the ellipse, and draw, but I am not sure how to extract the" x1,y1,x2,y2,aspectRatio" values.
//Blah
macro "MakeEllipse" {
run("Select None");
setTool("ellipse");
setKeyDown("alt");
print(x1,y1,x2,y2,aspectRatio);
}.
And with this version....
makeEllipse(88, 67, 223, 182, 0.60); draws an elliptical ROI
But
waitForUser(makeEllipse...); // open tool
Or
run("makeEllipse...", x1, y1, x2, y2, aspectRatio); // open tool
These all fail..
Ethan.
Ethan Cohen, Ph.D.
Div of Biomedical Physics,
Office of Science and Engineering Labs,
FDA Center for Devices and Radiological Health
White Oak Federal Res Ctr.
10903 New Hampshire Ave.
Silver Spring, MD 20993
\
________________________________
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html