Hi, I’ve hit the limit of my scripting abilities again and hoping someone can help.
I’m using the following script to create two annotations:
createAnnotationsFromPixelClassifier("Tissue Detection", 1000000.0, 1000.0, "SELECT_NEW")
runPlugin('qupath.lib.plugins.objects.DilateAnnotationPlugin', '{"radiusMicrons": -40.0, "lineCap": "Round", "removeInterior": false, "constrainToParent": true}');
clearSelectedObjects(true);
clearSelectedObjects();
runPlugin('qupath.lib.plugins.objects.RefineAnnotationsPlugin', '{"minFragmentSizeMicrons": 10000.0, "maxHoleSizeMicrons": 1000.0}');
resetSelection();
createAnnotationsFromPixelClassifier("Vessel Detection", 200.0, 1000.0, "SELECT_NEW")
It’s working nicely, but I then need to subtract the ‘Vessel’ annotation from the ‘Tissue’ annotation - which I can do using Edit Multiple - Subtract but I’d like to add this to the code.
Note: I think I’ve read every post in here about combining annotations but my scripting skills haven’t been able to translate them to this particular circustance.
Can anyone help?
TIA