importing known coordinates as point ROIs onto images in ImageJ

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

importing known coordinates as point ROIs onto images in ImageJ

abidi
Hello,
I need to implement Image registration on two images using Moving Least Squares in ImageJ.
I have a few coordinate (x,y) values for both images, which I need to import onto those images respectively as point ROIs in ImageJ.
I need help as to how can those coordinates be imported as point ROIs onto my image.
Thanks in advance.
Reply | Threaded
Open this post in threaded view
|

Re: importing known coordinates as point ROIs onto images in ImageJ

Saalfeld, Stephan
Hi,

this Beanshell-snippet does it

import ij.gui.PointRoi;
IJ.getImage().setRoi(new PointRoi(new float[]{10, 20, 30}, new
float[]{20, 40, 60}));

Read

http://rsb.info.nih.gov/ij/developer/api/ij/gui/PointRoi.html

for details.

Best,
Stephan



On Fri, 2014-12-05 at 02:14 -0800, abidi wrote:

> Hello,
> I need to implement Image registration on two images using Moving Least
> Squares in ImageJ.
> I have a few coordinate (x,y) values for both images, which I need to import
> onto those images respectively as point ROIs in ImageJ.
> I need help as to how can those coordinates be imported as point ROIs onto
> my image.
> Thanks in advance.
>
>
>
> --
> View this message in context: http://imagej.1557.x6.nabble.com/importing-known-coordinates-as-point-ROIs-onto-images-in-ImageJ-tp5010778.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

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