QuPath cell detection: InstanSeg, StarDist and Cellpose

Learn QuPath cell detection, compare segmentation methods, and set up InstanSeg with DJL. The session uses QuPath 0.6.0 release candidate 3.

Player not loading? Watch on YouTube

This QuPath tutorial compares built-in nuclear detection with deep learning segmentation for microscopy images. It starts with project folders, missing image paths and saving results before batch analysis or export. The speaker explains that these operations use saved data rather than unsaved edits in the viewer.

The standard detection walkthrough covers requested pixel size, sigma and intensity thresholds. Built-in detection finds nuclei and expands a cytoplasmic region around them; it does not use other channels to locate cell boundaries. Measurement tables and histograms help inspect the results.

For local AI segmentation, the session introduces InstanSeg through the Deep Java Library extension and a downloaded fluorescent nuclei and cells model. The demonstration uses QuPath 0.6.0 release candidate 3. Some Mac participants encounter PyTorch or model download problems. The instructors suggest testing smaller regions and excluding empty or clearly unsuitable input channels.

The speaker compares StarDist for nuclei with Cellpose for more complex borders, noting that the Cellpose workflow requires Python. SAM receives a shorter discussion as an interactive option for irregular objects and training annotations. The instructors caution that channel choices, parameter tuning and the image data can change results substantially, so their examples do not establish a universal winner.