skimage 0.17.2

Parameters

Parameters

image : array of float

The flattened image pixels.

marker_locations : array of int

The raveled coordinates of the initial markers (aka seeds) for the watershed. NOTE: these should all point to nonzero entries in the output, or the algorithm will never terminate and blow up your memory!

structure : array of int

A list of coordinate offsets to compute the raveled coordinates of each neighbor from the raveled coordinates of the current pixel.

mask : array of int

An array of the same shape as :None:None:`image` where each pixel contains a nonzero value if it is to be considered for flooding with watershed, zero otherwise. NOTE: it is essential that the border pixels (those with neighbors falling outside the volume) are all set to zero, or segfaults could occur.

strides : array of int

An array representing the number of steps to move along each dimension. This is used in computing the Euclidean distance between raveled indices.

compactness : float

A value greater than 0 implements the compact watershed algorithm (see .py file).

output : array of int

The output array, which must already contain nonzero entries at all the seed locations.

wsl : bool

Parameter indicating whether the watershed line is calculated. If wsl is set to True, the watershed line is calculated.

Perform watershed algorithm using a raveled image and neighborhood.

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: None#None
type: <class 'builtin_function_or_method'>
Commit: