Skip to content

Commit 07d8a81

Browse files
committed
Fix docstring convention and add info
1 parent 5a9e92a commit 07d8a81

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/imcflibs/imagej/labelimage.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,7 @@ def measure_objects_size_shape_2d(label_image):
146146

147147

148148
def binary_to_label(imp, title, min_thresh=1, min_vol=None, max_vol=None):
149-
"""
150-
Segment a binary image to get a label image (2D/3D).
149+
"""Segment a binary image to get a label image (2D/3D).
151150
152151
Works on both 2D and 3D binary data.
153152
@@ -203,8 +202,10 @@ def binary_to_label(imp, title, min_thresh=1, min_vol=None, max_vol=None):
203202

204203

205204
def dilate_labels_2d(imp, dilation_radius):
206-
"""
207-
Dilate each label in the given ImagePlus using the specified dilation radius.
205+
"""Dilate each label in the given ImagePlus using the specified dilation radius.
206+
207+
This method will use a 2D dilation to be applied to each slice of the ImagePlus
208+
and return a new stack.
208209
209210
Parameters
210211
----------

0 commit comments

Comments
 (0)