sopa.segmentation.methods
sopa.segmentation.methods.cellpose_patch(diameter, channels, model_type='cyto3', pretrained_model=False, cellpose_model_kwargs=None, **cellpose_eval_kwargs)
Creation of a callable that runs Cellpose segmentation on a patch
Parameters:
Name | Type | Description | Default |
---|---|---|---|
diameter |
float
|
Cellpose diameter parameter |
required |
channels |
list[str]
|
List of channel names |
required |
model_type |
str
|
Cellpose model type |
'cyto3'
|
pretrained_model |
str | bool
|
Path to the pretrained model to be loaded |
False
|
cellpose_model_kwargs |
dict | None
|
Kwargs to be provided to the |
None
|
**cellpose_eval_kwargs |
int
|
Kwargs to be provided to |
{}
|
Returns:
Type | Description |
---|---|
Callable
|
A |