File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
scripts/qupath-utils/tools Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 11/**
22 * deleteByClassification.groovy
33 *
4- * Delete all objects whose class correspondond to the specified one.
4+ * Delete all objects whose class correspond to the specified one.
55 * To delete objects whose class is empty, set an empty string.
66 */
77
Original file line number Diff line number Diff line change 1+ /**
2+ * notDeleteByName.groovy
3+ *
4+ * Delete all annotations whose Name DO NOT correspond to the specified one.
5+ */
6+
7+ // Define what Names to NOT delete
8+ def nameToNotDelete = [" DH" , " VH" ]
9+
10+ // Find objects to delete
11+ toRemove = getAnnotationObjects(). findAll { ! nameToNotDelete. contains(it. getName())}
12+
13+ // remove selected objects
14+ removeObjects(toRemove, true )
You can’t perform that action at this time.
0 commit comments