blob_distance — BLOB split op

Data kinds: maskimage2d

Call: import blob2d; blob2d.blob_distance(region: 'Any', spacing: 'float' = 1.0) -> 'np.ndarray' (or opsblob.get("blob_distance"))

Usage

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

前景の各画素からいちばん近い背景までの距離。単位は `spacing` 倍。

`scipy.ndimage.distance_transform_edt` そのもの。**わざわざ口を作った

理由**は、進化 op の `distance_transform` が最大値で正規化して返すため

(`poc_cell_counting` の実測: 出力の最大が常に 1.0)、**画素単位の距離が

取れない**こと。分水嶺の種を作るには絶対値が要る。

Examples

--------

>>> import numpy as np

>>> m = np.zeros((21, 21), bool); m[5:16, 5:16] = True

>>> float(blob_distance(m).max()) # 11x11 の正方形の中心まで

6.0

Detailed usage guide

blob_analysis 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)

• (none yet)

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

blob_seeds · blob_split · blob_overlay

Same category (split)

blob_seeds · blob_split


*Provenance: blob2d.py — BLOB 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.