Converting code to be compatible with new milestone version of QuPath

Hello, I have been using the following piece of code with milestone 2 to set the image to Brightfield H-DAB, look for tissue on the slide, create an annotation around the tissue, shrink the resulting annotation by 100 um, and delete the original annotation and any really small objects that exist, in order to minimize false annotation creation. When I tried running this with the newest version (milestone 9) I got the following errors:

Is there anything I can do to make this code compatible with the new milestone?

1.1) Harvard Tissue Detection with Automatic Trimming.txt (1.1 KB)

Try replacing it.isPoint() with it.getROI().isPoint().

Changed for consistency because the annotation object itself isn’t really a point or not a point… it’s more properly the ROI held by the object :slight_smile:

Thank you so much that worked!

1 Like