watershed_vol — SEGMENTATION watershed3d op

• Data kinds: voxel → labels

• Call: import fullseye as fs; fs.ledger.watershed_vol(binary, markers: 'Optional[np.ndarray]' = None, min_distance: 'float' = 1.0, method: 'str' = 'auto') -> 'np.ndarray' (to call the implementation directly, import watershed3d; watershed3d.watershed_vol(binary, markers: 'Optional[np.ndarray]' = None, min_distance: 'float' = 1.0, method: 'str' = 'auto') -> 'np.ndarray'; from the registry, opssegmentation.get("watershed_vol"))

Usage

> This operator's description has not been translated yet. The original text follows as it is.

距離変換シードの分水嶺で 3D 前景を物体ごとのラベルに分割する(公開 op の薄い合成)。

連結成分では 1 個に融合する接触/僅かな重なりを割るのが目的。EDT は

:func:volops.vol_distance_transform、skimage 分水嶺は :func:volops.vol_watershed に

委譲し、本モジュールは (A) skimage 不在時の純 scipy フォールバックと、シード自動生成の

グルーだけを足す。`markers を省略すると距離変換の局所極大(min_distance` NMS)を

自動シードにする。

Parameters

----------

binary : array_like

bool または 0/1 の 3D 前景ボリューム。

markers : ndarray or None

シードを外部指定する場合の int ラベル配列(binary と同形状、0=無し, 1..n=シード)。

None なら距離変換の極大から自動生成する。

min_distance : float

`markers=None` のときのシード最小間隔(voxel)。

method : {"auto", "skimage", "scipy"}

バックエンド選択。"skimage" 指定で不在なら fail-closed(ImportError)。

Returns

-------

labels : ndarray(int32)

binary と同形状。背景 0、各物体に 1..k のラベル(前景を過不足なく被覆)。

Raises

------

ValueError

形状不正・退化入力・不正 method のとき(fail-closed)。

Detailed usage guide

• halcon_segmentation family guide

References (sample data, literature)

• Sample-data catalog (download URLs / licences) — 2-D uses skimage.data (BSD/public domain) plus synthetic images; 3-D lists download URLs for real data sources (Stanford, PDS, …).

• Operator provenance and references — the sources of the research/methods this op family came from.

• The canonical algorithm (author, year) and its uses are named in the family usage guide above.

Runnable examples (verified samples that actually call this op)

• watershed3d_tour — py -3.11 examples/watershed3d_tour.py

Ops the type connects to (they accept labels as input)

—

Same category (watershed3d)

distance_peaks · separate_touching


*Provenance: watershed3d.py — SEGMENTATION operator registry. This per-op note is generated by tools/opdocs.py md (do not hand-edit).*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.