Re: Create rectangle with known size
Posted by
Stefan Helfrich-2 on
Nov 10, 2016; 11:25am
URL: http://imagej.273.s1.nabble.com/Create-rectangle-with-known-size-tp5013429p5017559.html
Hi Ben,
you should be able to do the following:
widthInMM = 100;
heightInMM = 200;
widthInPixel = toUnscaled(widthInMM);
heightInPixel = toUnscaled(heightInMM);
run("Specify...", "width="+widthInPixel+" height="+heightInPixel+"
x=128 y=70");
You can do a similar thing with toUnscaled(xInMM, yInMM) for the x- and
y-coordinates.
Hope that helps,
Stefan
On 11/10/2016 10:00 AM, rettl wrote:
--
Dr. Stefan Helfrich
Bioimaging Center (L931)
University of Konstanz
PO Box 604
78457 Konstanz
Germany
Tel +49-7531-884666
Fax +49-7531-884005
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html