Another problem arose:
If i use the script, it works allone for itself.
but as soon as it becomes part of a script with more lines, an error occures:
ERROR: Error: startup failed:
Script13.groovy: 2: unexpected char: 0x0 @ line 2, column 42.
ts {it.getPathClass() != null}
with hint that a sign is missing after "}"
How can i tell the script editor, that the next task shall be processed? Usually every line in the script editor ends with "');" But that does not help here.
For example cell analysis afterwards in the selected roi by class:
selectObjects {it.getPathClass() != null}
runPlugin('qupath.imagej.detect.nuclei.PositiveCellDetection', '{"detectionImageBrightfield": "Hematoxylin OD", "backgroundRadius": 45.0, "medianRadius": 2.0, "sigma": 5.0, "minArea": 10.0, "maxArea": 1500.0, "threshold": 0.05, "maxBackground": 2.0, "watershedPostProcess": true, "cellExpansion": 5.0, "includeNuclei": true, "smoothBoundaries": true, "makeMeasurements": true, "thresholdCompartment": "Nucleus: DAB OD mean", "thresholdPositive1": 0.2, "thresholdPositive2": 0.4, "thresholdPositive3": 0.6, "singleThreshold": true}');