scipy.ndimage.

watershed_ift#

scipy.ndimage.watershed_ift(input, markers, structure=None, output=None)[源代码]#

使用图像森林变换算法从标记应用分水岭。

参数:
inputarray_like

输入。

markersarray_like

标记是每个分水岭内的点,构成处理的起点。负标记被视为背景标记,在其他标记之后处理。

structure结构元素,可选

可以提供定义对象连通性的结构元素。如果为 None,则生成一个连通性为一的方形元素。

outputndarray,可选

可以可选地提供一个输出数组。与输入具有相同的形状。

返回:
watershed_iftndarray

输出。与 input 具有相同的形状。

参考文献

[1]

A.X. Falcao, J. Stolfi and R. de Alencar Lotufo, “The image foresting transform: theory, algorithms, and applications”, Pattern Analysis and Machine Intelligence, vol. 26, pp. 19-29, 2004.