Skip to content

Instantly share code, notes, and snippets.

View lacan's full-sized avatar
🤝

Olivier Burri lacan

🤝
View GitHub Profile
@petebankhead
petebankhead / QuPath-Threshold pixel classification.groovy
Created June 14, 2023 08:58
QuPath script to threshold pixel classification outputs with fixed (non-default) threshold values
/**
* QuPath v0.4.3 script to threshold probability outputs from a pixel classifier.
*
* By default, converting the pixel classifier output to probabilities will always
* apply a softmax operation and take the class with the highest probability.
*
* This script provides an alternative, whereby you can specify a probability threshold
* for one or more channels, and threshold to create objects from that.
* Using a higher threshold can then restrict the object creation of more confident predictions.
*