Re: Translate command in ROI Manager

Posted by Cammer, Michael-2 on
URL: http://imagej.273.s1.nabble.com/Translate-command-in-ROI-Manager-tp5022823p5022825.html

Thank you!

The colleague I was helping with macro programming got this to work perfectly.

Cheers-
Michael C.

-----Original Message-----
From: Michael Schmid <[hidden email]>
Sent: Thursday, January 9, 2020 2:11 PM
To: [hidden email]
Subject: Re: Translate command in ROI Manager

[EXTERNAL]

Hi Michael,

after the RoiManager's More>>translate, you have to select the roi again (or deselect/select, if it was selected) to make it active in the image.

It seems that the macro command was forgotten in the documentation of the macro language:

   roiManager("select",0);
   roiManager("translate",5,10); //translate the selected roi(s)
   roiManager("select",0);       //make it the roi active for the image

The Roi Manager's translate even accepts decimals (subpixel accuracy), and interesting enough, it can even create rectangles with non-integer positions. But they are not useful; for using as a selection their coordinates are rounded down to an integer.

Michael
________________________________________________________________
On 09.01.20 19:41, Cammer, Michael wrote:

> We have a question regarding the Translate command within the ROI Manager.
>
> Our goal is to select a single or group of ROIs in the manager and move them.  Is this what the translate command does?
>
> We have tried selecting one ROI and translating it, but 1.) nothing happens and 2.) we don't see a macro command generated in the Recorder window.
>
> Is this a bug with the command or are we using it incorrectly?  Any help appreciated.
>
> We are using ImageJ 1.52t23, Java 1.8, Win10
>
> Thank you!
>

--
ImageJ mailing list: https://urldefense.proofpoint.com/v2/url?u=http-3A__imagej.nih.gov_ij_list.html&d=DwICaQ&c=j5oPpO0eBH1iio48DtsedeElZfc04rx3ExJHeIIZuCs&r=E0xNnPAQpUbDiPlC50tp7rW2nBkvV7fujQf0RknE5bU&m=PjDxBNfIyaBr6AT6bmM63FEWuWkR2iPjN5hBWiogB9E&s=mZB5rEoLnC8Ul-O9eAXTYdQsZ2c6iDh14aDxYWxN7Go&e=

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