bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / ndimage / _measurements / watershed_ift
function
scipy.ndimage._measurements:watershed_ift
source: build-install/usr/lib/python3.14/site-packages/scipy/ndimage/_measurements.py:1621
Signature
def watershed_ift(input, markers, structure = None, output = None)Summary
Apply watershed from markers using image foresting transform algorithm.
Parameters
input: array_likeInput.
markers: array_likeMarkers are points within each watershed that form the beginning of the process. Negative markers are considered background markers which are processed after the other markers.
structure: structure element, optionalA structuring element defining the connectivity of the object can be provided. If None, an element is generated with a squared connectivity equal to one.
output: ndarray, optionalAn output array can optionally be provided. The same shape as input.
Returns
watershed_ift: ndarrayOutput. Same shape as
input.
Aliases
scipy.ndimage.watershed_ift