Skip to content

Commit f75f668

Browse files
committed
added Merge annotated touching labels
1 parent 6158a41 commit f75f668

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

napari_pyclesperanto_assistant/_napari_cle_functions.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,3 +346,10 @@ def sub_stack(image:"napari.types.ImageData", start_z:int = 0, end_z:int = 1) ->
346346
def reduce_stack(image:"napari.types.ImageData", reduction_factor:int = 2, offset:int = 0) -> "napari.types.ImageData":
347347
return cle.reduce_stack(image, reduction_factor=reduction_factor, offset=offset)
348348

349+
350+
@register_function(menu="Segmentation post-processing > Merge annotated touching labels (clesperanto)")
351+
@time_slicer
352+
@_package_ncle
353+
def merge_annotated_touching_labels(labels:"napari.types.LabelsData", binary_annotation: "napari.types.LabelsData") -> "napari.types.LabelsData":
354+
return cle.merge_annotated_touching_labels(labels, binary_annotation)
355+

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ pyopencl
33
toolz
44
scikit-image
55
napari >=0.4.15
6-
pyclesperanto-prototype >=0.19.0
6+
pyclesperanto-prototype >=0.21.1
77
magicgui
88
numpy!=1.19.4
99
pyperclip

0 commit comments

Comments
 (0)