Difference-of-Gaussians (dog) plugin
patchworks.plugins.dog.dog_label_fn(low_sigma: float | tuple[float, ...], high_sigma: float | tuple[float, ...], threshold: float, *, use_gpu: bool = False, decon_kwargs: dict[str, Any] | None = None) -> Callable[[np.ndarray], np.ndarray]
Return a ready-to-use DoG labeler for tile_process.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
low_sigma
|
float | tuple[float, ...]
|
Gaussian sigmas (pixels) for the narrow/wide blur.
|
required |
high_sigma
|
float | tuple[float, ...]
|
Gaussian sigmas (pixels) for the narrow/wide blur.
|
required |
threshold
|
float
|
Binary threshold applied to the DoG image ( |
required |
use_gpu
|
bool
|
Run gaussian_filter + label on GPU via cupy/cupyx instead of scipy.
Independent of |
False
|
decon_kwargs
|
dict[str, Any] | None
|
If given, each tile is first deconvolved via
|
None
|
Returns:
| Type | Description |
|---|---|
Callable[[ndarray], ndarray]
|
Picklable function ready for |