File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,8 +11,6 @@ def lee94_thin(img):
1111 ----------
1212 img : ndarray
1313 2D binary image or 3D binary volume (0=background, 1=foreground).
14- verbose : bool, optional
15- Passed through to the underlying implementation.
1614
1715 Returns
1816 -------
Original file line number Diff line number Diff line change @@ -402,7 +402,23 @@ def _compute_thin_image(img):
402402
403403
404404def thin_3d (img ):
405- """Lee94 thinning algorithm for a 3D binary volume."""
405+ """Lee94 thinning algorithm for a 3D binary volume.
406+
407+ Parameters
408+ ----------
409+ img : ndarray
410+ 3D binary volume (0=background, 1=foreground).
411+
412+ Returns
413+ -------
414+ ndarray
415+ Thinned binary volume with the same shape as img.
416+
417+ Raises
418+ ------
419+ ValueError
420+ If input is not 3-dimensional.
421+ """
406422 if img .ndim != 3 :
407423 raise ValueError (f"Expected 3D input, got { img .ndim } D" )
408424
You can’t perform that action at this time.
0 commit comments