|
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
|