Re: Translate command in ROI Manager

Posted by Michael Schmid on
URL: http://imagej.273.s1.nabble.com/Translate-command-in-ROI-Manager-tp5022823p5022824.html

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: http://imagej.nih.gov/ij/list.html