Login  Register

Re: erase Roi

Posted by William O'Connell on Sep 03, 2005; 7:52pm
URL: http://imagej.273.s1.nabble.com/erase-Roi-tp3704922p3704925.html

Many thanks to Don and wayne who pointed me to the Edit>Selection>Select None command or programatically:
               IJ.run("Select None");

Bill O'Connell


> Hi folks!
> What's the standard way to erase an ROI drawn on an image? I had been using:
>    ip.resetRoi();
>    imp.updateAndDraw();
> But this fails to erase the Roi sice I've updated to ImageJ 1.34s and Java 1.4.1
> I am now using the kludge below:
>         void eraseRoi(){
>           Roi r = null;
>           try{imp.setRoi(r);}
>           catch(Exception e){};
>           imp.updateAndDraw();
>           }
>
> thanks, Bill O'Connell