ROI Creation

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

ROI Creation

David Webster
All,

Could someone point me to the ImageJ API code that deals with reading the
xy coordinates of the cursor as it is used to trace an ROI. I want the code
the generates an xy coordinates list, not the creation of an ROI itself.

David Webster

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

Re: ROI Creation

Zirneklitis
File/Save as/XY Coordinates...?

Best regards,
Karlis

David Webster wrote:
> ..  I want the code
> the generates an xy coordinates list, not the creation of an ROI itself.
> ..

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

Re: ROI Creation

Michael Schmid
In reply to this post by David Webster
Hi David,

ok, for the freehand ROI:

See ImageCanvas.mouseDragged, it calls
Roi.handleMouseDrag, which calls (during the construction phase of the ROI)
FreehandRoi.grow. Finally, that's where the coordinates xp, yp are calculated.

If you want to create a plugin that records the mouse movement (while the button is down), it would be easiest if you create a PlugInTool and simply have a mouseDragged method that records the coordinates.

Michael
________________________________________________________________
On Jun 12, 2012, at 05:59, David Webster wrote:

> All,
>
> Could someone point me to the ImageJ API code that deals with reading the
> xy coordinates of the cursor as it is used to trace an ROI. I want the code
> the generates an xy coordinates list, not the creation of an ROI itself.
>
> David Webster

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

Re: ROI Creation

David Webster
This seems to be what I have been looking for.

Thanks. - David

On Tue, Jun 12, 2012 at 2:57 AM, Michael Schmid <[hidden email]>wrote:

> Hi David,
>
> ok, for the freehand ROI:
>
> See ImageCanvas.mouseDragged, it calls
> Roi.handleMouseDrag, which calls (during the construction phase of the ROI)
> FreehandRoi.grow. Finally, that's where the coordinates xp, yp are
> calculated.
>
> If you want to create a plugin that records the mouse movement (while the
> button is down), it would be easiest if you create a PlugInTool and simply
> have a mouseDragged method that records the coordinates.
>
> Michael
> ________________________________________________________________
> On Jun 12, 2012, at 05:59, David Webster wrote:
>
> > All,
> >
> > Could someone point me to the ImageJ API code that deals with reading the
> > xy coordinates of the cursor as it is used to trace an ROI. I want the
> code
> > the generates an xy coordinates list, not the creation of an ROI itself.
> >
> > David Webster
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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