Adding ROIs to ROI manager in a plugin

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

Adding ROIs to ROI manager in a plugin

Nico-8
Hi everyone.
I can't seem to add ROIs to the ROI manager...

What I'm doing is:

RoiManager roiMan = new RoiManager(false);
posx = 100;
posy = 20;
width = 10;
height = 30;
Roi newroi = new Roi(x, y, subx, suby);
roiMan.addRoi(newroi);

This very simple code gives me this error:
cannot find symbol
symbol  : method addRoi(ij.gui.Roi)
location: class ij.plugin.frame.RoiManager
                                roiMan.addRoi(newroi);

I couldn't really find any clear example of how to use the RoiManager, so any help would be appreciated.
Also, should I create the RoiManager as I did or using RoiManager.getInstance()?

thanks
nico
Reply | Threaded
Open this post in threaded view
|

Re: Adding ROIs to ROI manager in a plugin

Nico-8
Solved by upgrading to v1.43.

Thanks Wayne
Reply | Threaded
Open this post in threaded view
|

my 2nd SOS

watashi
Dear all,

This is my 2nd SOS about failure of unsubscribing this mailing list. I've
sent the signoff command, confirmed the message but I still receive the
mails from this list...

Could anybody help....?

Desperately in cleaning up emails everyday...