Login  Register

Re: Create rectangle with known size

Posted by Michael Schmid on Nov 10, 2016; 11:22am
URL: http://imagej.273.s1.nabble.com/Create-rectangle-with-known-size-tp5013429p5017558.html

Hi Christoph, Ben,

for scaled images, the Edit>Selection>Specify command supports also
scaled coordinates. Use Plugins>Macros>Record to see how to create a macro.

E.g., if your image is calibrated in cm, you can have

   run("Specify...", "width=2 height=3 x=1 y=1 scaled");

to create a selection 2x3 cm, with its origin at 1 cm in x and y.
You can specify the center of the selection instead of the origin if you
add the 'centered' keyword.

Michael

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