Is there any way to delete the cytoplasm from cell detections? I want to train a classifier using data from both nuclei and cytoplasm (nucleus expansion), since cytoplasm info impoves the classifiers significantly, but then I want to convert ONLY the nuclus detections to annotations (for mask export to deep learning segmentation). I’m only able to convert the full cell detections (nucleus pluss cytoplasm merged) to annotations, but I would like to create annotations from detections from the nuclei only. Anyone?
Using this script for conversion from detections to annotations:
import qupath.lib.objects.PathAnnotationObject
// Create new annotations with the same ROIs and classifications as the detections
def detections = getDetectionObjects()
def newAnnotations = detections.collect {detection -> new PathAnnotationObject(detection.getROI(), detection.getPathClass())}
// Remove the detections, add the annotations
addObjects(newAnnotations)