Created
September 10, 2024 23:54
-
-
Save caner-ercan/7f9da4e583638307fe462b0ea5e084f4 to your computer and use it in GitHub Desktop.
Annotation manipulations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def classes2delete = ["tissue_box", "tissue"] | |
| classes2delete.each { delclass -> | |
| print delclass | |
| toRemove = getAnnotationObjects().findAll { | |
| it.getPathClass()==getPathClass(delclass) | |
| removeObject(it, true) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment