ROI Manager/More/Translate: Can't change xy values

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

ROI Manager/More/Translate: Can't change xy values

bmacgreg
Hi,

I have pairs of images that are sometimes slightly offset, so I need to
nudge the ROIs (which are lines) when I apply them to the second image. The
xy values are preset at 10 pixels, and nothing I've tried will let me change
that. Surely there must be a way?

Thanks,

Barbara



--
Sent from: http://imagej.1557.x6.nabble.com/

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: ROI Manager/More/Translate: Can't change xy values

Michael Schmid
Hi Barbara,

if you copy a ROI from one image to another (e.g. with (ctrl-) shift-E),
it keeps the position with respect to the top-left corner. You can see
the ROI coordinates e.g. with 'Show Info' (near the bottom).

You can nudge the ROI with the arrow keys in single-pixel increments or
shift it with the mouse by arbitrary distances (if it is a straight
line, grab its middle handle).
If the roi is not fully inside the image and you nudge it with the arrow
keys in a direction that would move it further out it will jump to have
it fully inside. This this what happened to you?

Otherwise, what are the 10 pixels you refer to?


Michael
________________________________________________________________
On 13.11.18 05:39, bmacgreg wrote:

> Hi,
>
> I have pairs of images that are sometimes slightly offset, so I need to
> nudge the ROIs (which are lines) when I apply them to the second image. The
> xy values are preset at 10 pixels, and nothing I've tried will let me change
> that. Surely there must be a way?
>
> Thanks,
>
> Barbara

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: ROI Manager/More/Translate: Can't change xy values

Michael Schmid
In reply to this post by bmacgreg
Hi Barbara,

oops, sorry!!! I just saw that I had not read the title, it's the ROI
Manager that you refer to.

Yes, the initial values of ROI Manager>More>Translate are hard-coded to
10. I agree that it would be nice to have it remember the previous values.
 
https://github.com/imagej/imagej1/blob/master/ij/plugin/frame/RoiManager.java#L2124

Michael
________________________________________________________________


On 13.11.18 05:39, bmacgreg wrote:

> Hi,
>
> I have pairs of images that are sometimes slightly offset, so I need to
> nudge the ROIs (which are lines) when I apply them to the second image. The
> xy values are preset at 10 pixels, and nothing I've tried will let me change
> that. Surely there must be a way?
>
> Thanks,
>
> Barbara

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: ROI Manager/More/Translate: Can't change xy values

Wayne Rasband-2
> On Nov 13, 2018, at 4:59 AM, Michael Schmid <[hidden email]> wrote:
>
> Hi Barbara,
>
> oops, sorry!!! I just saw that I had not read the title, it's the ROI Manager that you refer to.
>
> Yes, the initial values of ROI Manager>More>Translate are hard-coded to 10. I agree that it would be nice to have it remember the previous values.
> https://github.com/imagej/imagej1/blob/master/ij/plugin/frame/RoiManager.java#L2124

The ROI Manager>More>Translate command in the latest ImageJ daily build (1.52i39) remembers the x offset and y offset values.

-wayne

> On 13.11.18 05:39, bmacgreg wrote:
>> Hi,
>> I have pairs of images that are sometimes slightly offset, so I need to
>> nudge the ROIs (which are lines) when I apply them to the second image. The
>> xy values are preset at 10 pixels, and nothing I've tried will let me change
>> that. Surely there must be a way?
>> Thanks,
>> Barbara

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