Skip to content

Instantly share code, notes, and snippets.

@caner-ercan
Created September 10, 2024 23:54
Show Gist options
  • Select an option

  • Save caner-ercan/7f9da4e583638307fe462b0ea5e084f4 to your computer and use it in GitHub Desktop.

Select an option

Save caner-ercan/7f9da4e583638307fe462b0ea5e084f4 to your computer and use it in GitHub Desktop.
Annotation manipulations
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