AW: erase Roi
Posted by
Maximilian Loy on
Sep 05, 2005; 7:47am
URL: http://imagej.273.s1.nabble.com/erase-Roi-tp3704922p3704924.html
Hi Bill,
try:
imp.killRoi();
mfg
Max
-----Ursprüngliche Nachricht-----
Von: ImageJ Interest Group [mailto:
[hidden email]]Im Auftrag von
William O'Connell
Gesendet: Samstag, 03. September 2005 02:15
An:
[hidden email]
Betreff: erase Roi
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
** Confidentiality Statement and Disclaimer **
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
** End of Statement **