从图像 imagej 中删除文本标签

deleting a text label from image imagej

我写了一个简单的宏,使用函数

插入文本

drawString(text, xposition, yposition);

有没有办法删除文字?

提前致谢

drawString macro function会将文本不可逆地添加到图像的像素数据中。

要改为将文本添加为​​叠加层,请使用 Overlay.drawString("text", x, y) (see this example). You can then remove the text by hiding or removing the overlay