HDAB Cell Detection using StarDist in QuPath
Автор: Mark Zaidi
Загружено: 2022-08-05
Просмотров: 4531
Universal StarDist for QuPath: https://github.com/MarkZaidi/Universa...
Code used is below:
-----------------------------------------------
import qupath.ext.stardist.StarDist2D
var imageData = getCurrentImageData()
def stains = imageData.getColorDeconvolutionStains()
// Specify the model file (you will need to change this!)
def pathModel = 'C:/Users/Mark Zaidi/Documents/QuPath/Stardist Trained Models/dsb2018_heavy_augment.pb'
var stardist = StarDist2D.builder(pathModel)
.preprocess(
ImageOps.Channels.deconvolve(stains),
ImageOps.Channels.extract(0,1),
ImageOps.Channels.sum(),
ImageOps.Filters.median(2),
//ImageOps.Core.divide(2),
)
.threshold(0.5) // Probability (detection) threshold
//.channels('DAPI') // Specify detection channel
.normalizePercentiles(1, 99) // Percentile normalization
.pixelSize(0.5) // Resolution for detection
.build()
// Run detection for the selected objects
var pathObjects = getSelectedObjects()
if (pathObjects.isEmpty()) {
Dialogs.showErrorMessage("StarDist", "Please select a parent object!")
return
}
stardist.detectObjects(imageData, pathObjects)
println 'Done!'
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: