erase Roi
Posted by William O'Connell on Sep 03, 2005; 1:15am
URL: http://imagej.273.s1.nabble.com/erase-Roi-tp3704922.html
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