Hi,
in former QuPath version it was possible to select annotations by size with the following script from Pete:
selectAnnotations()
def server = getCurrentImageData().getServer()
double pixelWidth = server.getPixelWidthMicrons()
double pixelHeight = server.getPixelHeightMicrons()
def smallAnnotations = getAnnotationObjects().findAll {it.getROI().getArea() < 4}
removeObjects(smallAnnotations, true)
This Script throws the following error:
ERROR: Error at line 6: No signature of method: qupath.lib.images.servers.openslide.OpenslideImageServer.getPixelWidthMicrons() is applicable for argument types: () values:
The image was opened with OpenSlide (the visualization fails with bioformats).
Does somebody have an idea how to adress annotations by size in the new QuPath version in images opened with OpenSlide ?
best, and thanks for any respons!