Skip to content

Commit

Permalink
removed s in connected_components_labeling
Browse files Browse the repository at this point in the history
  • Loading branch information
haesleinhuepf committed Sep 25, 2021
1 parent 7553f99 commit 1621f81
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ It aims to deliver similar results as [ImageJ's watershed implementation](https:

![img.png](https://github.com/haesleinhuepf/napari-segment-blobs-and-things-with-membranes/raw/main/docs/binary_watershed.png)

## Connected components labeling
## Connected component labeling

Takes a binary image and produces a label image with all separated objects labeled differently. Under the hood, it uses
[scikit-image's label function](https://scikit-image.org/docs/dev/auto_examples/segmentation/plot_label.html).

![img.png](https://github.com/haesleinhuepf/napari-segment-blobs-and-things-with-membranes/raw/main/docs/connected_components_labeling.png)
![img.png](https://github.com/haesleinhuepf/napari-segment-blobs-and-things-with-membranes/raw/main/docs/connected_component_labeling.png)

----------------------------------

Expand Down
File renamed without changes
2 changes: 1 addition & 1 deletion docs/demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@
}
],
"source": [
"labels = connected_components_labeling(binary)\n",
"labels = connected_component_labeling(binary)\n",
"imshow(labels)"
]
},
Expand Down
2 changes: 1 addition & 1 deletion napari_segment_blobs_and_things_with_membranes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@



from ._function import napari_experimental_provide_function, gaussian_blur, subtract_background, threshold_otsu, binary_invert, split_touching_objects, connected_components_labeling, seeded_watershed, voronoi_otsu_labeling
from ._function import napari_experimental_provide_function, gaussian_blur, subtract_background, threshold_otsu, binary_invert, split_touching_objects, connected_component_labeling, seeded_watershed, voronoi_otsu_labeling

4 changes: 2 additions & 2 deletions napari_segment_blobs_and_things_with_membranes/_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def napari_experimental_provide_function():
threshold_otsu,
binary_invert,
split_touching_objects,
connected_components_labeling,
connected_component_labeling,
seeded_watershed,
voronoi_otsu_labeling
]
Expand Down Expand Up @@ -108,7 +108,7 @@ def binary_invert(binary_image:LabelsData) -> LabelsData:
"""
return (np.asarray(binary_image) == 0) * 1

def connected_components_labeling(binary_image:LabelsData) -> LabelsData:
def connected_component_labeling(binary_image:LabelsData) -> LabelsData:
"""
Takes a binary image and produces a label image with all separated objects labeled differently.
"""
Expand Down

0 comments on commit 1621f81

Please sign in to comment.