Login  Register

Re: ImageJ and ROI

Posted by Justin McGrath on Mar 30, 2007; 12:08am
URL: http://imagej.273.s1.nabble.com/ImageJ-and-ROI-tp3699925p3699926.html

There is the makeRectangle macro function and probably an equivalent
plugin function.
If the center point desired is (xc,yc) and the size desired is w,h. Then
x = xc-w/2
y = yc-h/2
makeRectangle(x,y,w,h)

should work.

Justin

On 3/29/07, Juan Francisco <[hidden email]> wrote:

> Dear all:
>   Please: how its possible with ImageJ  to select a ROI on an image with its pixel center and ROI size determinated, whitout use the rectangular selection? I mean: it´s possible to program a command to get a ROI for center pixel and size of ROI planned?
>   Thanks very much!!
>   JFC
>
>
> ---------------------------------
>
> LLama Gratis a cualquier PC del Mundo.
> Llamadas a fijos y móviles desde 1 céntimo por minuto.
> http://es.voice.yahoo.com
>