Package qupath.ext.biop.spotiflow
Class Spotiflow
java.lang.Object
qupath.ext.biop.spotiflow.Spotiflow
Spot detection based on the following method:
Albert Dominguez Mantes et al. "Spotiflow: accurate and efficient spot detection for fluorescence microscopy with deep stereographic flow regression" Cold Spring Harbor Laboratory - bioRxiv, 2024. doi: 10.1101/2024.02.01.578426See the main repo at https://github.com/weigertlab/spotiflow
Very much inspired by qupath-extension-cellpose at https://github.com/BIOP/qupath-extension-cellpose
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
protected boolean
protected boolean
protected boolean
protected boolean
protected String
protected boolean
protected int
protected File
protected int
protected LinkedHashMap
<String, String> protected String
protected String
protected double
protected boolean
protected SpotiflowSetup
protected File
protected File
protected File
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SpotiflowBuilder
builder()
Create a builder to customize detection parameters.void
detectObjects
(qupath.lib.images.ImageData<BufferedImage> imageData, String imageName, Collection<? extends qupath.lib.objects.PathObject> parents) Detect cells within one or more parent objects, firing update events upon completion.void
Prints the help and the available CLI arguments for the prediction commandvoid
Prints the help and the available CLI arguments for the training command
-
Field Details
-
modelDir
-
pretrainedModelName
-
tempDirectory
-
trainingInputDir
-
trainingOutputDir
-
spotiflowSetup
-
parameters
-
cleanTempDir
protected boolean cleanTempDir -
disableGPU
protected boolean disableGPU -
process3d
protected boolean process3d -
probabilityThreshold
protected double probabilityThreshold -
minDistance
protected int minDistance -
channels
-
doSubpixel
-
pathClass
-
classChannelName
protected boolean classChannelName -
nThreads
protected int nThreads -
isOmeZarr
protected boolean isOmeZarr -
clearAllChildObjects
protected boolean clearAllChildObjects -
clearChildObjectsBelongingToCurrentChannels
protected boolean clearChildObjectsBelongingToCurrentChannels
-
-
Constructor Details
-
Spotiflow
public Spotiflow()
-
-
Method Details
-
builder
Create a builder to customize detection parameters.- Returns:
- this builder
-
helpTrain
public void helpTrain()Prints the help and the available CLI arguments for the training command -
helpPredict
public void helpPredict()Prints the help and the available CLI arguments for the prediction command -
detectObjects
public void detectObjects(qupath.lib.images.ImageData<BufferedImage> imageData, String imageName, Collection<? extends qupath.lib.objects.PathObject> parents) Detect cells within one or more parent objects, firing update events upon completion.- Parameters:
imageData
- the image data containing the objectparents
- the parent objects; existing child objects will be removed, and replaced by the detected cells
-