Skip to content

Commit

Permalink
Reorganise refs in watershed docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
jni committed Aug 25, 2016
1 parent 5b0ba4b commit d34f7ab
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions skimage/morphology/watershed.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def _compute_neighbors(image, structure, offset):

def watershed(image, markers, connectivity=1, offset=None, mask=None,
compactness=0):
"""Find watershed basins [1]_ [2]_ in `image` flooded from given `markers`.
"""Find watershed basins in `image` flooded from given `markers`.
Parameters
----------
Expand Down Expand Up @@ -172,10 +172,11 @@ def watershed(image, markers, connectivity=1, offset=None, mask=None,
Notes
-----
This function implements a watershed algorithm [1]_ that apportions pixels
into marked basins. The algorithm uses a priority queue to hold the pixels
with the metric for the priority queue being pixel value, then the time of
entry into the queue - this settles ties in favor of the closest marker.
This function implements a watershed algorithm [1]_ [2]_ that apportions
pixels into marked basins. The algorithm uses a priority queue to hold
the pixels with the metric for the priority queue being pixel value, then
the time of entry into the queue - this settles ties in favor of the
closest marker.
Some ideas taken from
Soille, "Automated Basin Delineation from Digital Elevation Models Using
Expand Down

0 comments on commit d34f7ab

Please sign in to comment.