Skip to content

Instantly share code, notes, and snippets.

View juliangilbey's full-sized avatar

Julian Gilbey juliangilbey

  • University of Cambridge
  • Cambridge, UK
View GitHub Profile
@juliangilbey
juliangilbey / drawPredictionObjects.groovy
Last active October 7, 2023 06:04
Import tile predictions from a CSV file into QuPath as detection objects
/* Read a CSV file containing detection objects and measurement values for them in the range 0 to 1 */
import qupath.lib.objects.PathObjects
import qupath.lib.roi.ROIs
import qupath.lib.regions.ImagePlane
import qupath.lib.objects.classes.PathClassFactory
import qupath.lib.gui.dialogs.Dialogs
import java.io.BufferedReader
import java.io.FileReader
import java.io.IOException