Getting the current ROI

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

Getting the current ROI

Paul Johnston
Sorry if this is a basic question:

How do I access the current Roi?  For example, if I do:

Toolbar.getInstance().setTool("line");

then wait for user to draw a line, I want to access the ij.gui.Line
within the mouseReleased() event.

Thanks,
Paul
Reply | Threaded
Open this post in threaded view
|

Re: Getting the current ROI

dscho
Hi,

On Fri, 16 Jan 2009, Paul Johnston wrote:

> How do I access the current Roi?

Roi roi = WindowManager.getCurrentImage().getRoi();

Hth,
Dscho