This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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. | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#@ File idFile ( label="'Index.idx.xml' file" ) | |
#@ File saveFolder ( label="Save Folder", style="directory" ) | |
// Define stitching parameters. Nothing here is flexible but feel free to try | |
def params = new mpicbg.stitching.StitchingParameters() | |
params.channel1 = 0; | |
params.channel2 = 0; | |
params.timeSelect = 0; | |
params.checkPeaks = 5; | |
params.fusionMethod = 0 |