extract op• Data kinds: labels2d → mask
• Call: import fullseye as fs; fs.ledger.blob_boundaries(labels: 'Any') -> 'np.ndarray' (to call the implementation directly, import blob2d; blob2d.blob_boundaries(labels: 'Any') -> 'np.ndarray'; from the registry, opsblob.get("blob_boundaries"))
> This operator's description has not been translated yet. The original text follows as it is.
物体の輪郭(1 画素幅、bool)。隣り合う物体の境目も残る。
内側の縁を取る(自分と違うラベルに隣接する前景画素)ので、輪郭は必ず
物体の内部にある —— 外側を取ると隣の物体の画素を輪郭だと言うことになる。
手順: 3x3(8 近傍)のグレー収縮 `lo と膨張 hi` をラベル画像に掛け、
`(labels > 0) & ((lo != labels) | (hi != labels))`。「近傍に自分と違う番号
(背景 0 も含む)がある前景画素」= 内側 1 画素幅の縁。収縮だけだと番号の
小さい物体側の境目が消えるので、膨張も見て対称にしてある。
• `labels: 2-D の整数ラベル画像(blob_label` の出力)。bool / float / 負の
番号は `ValueError(blob_region` と同じ契約)。
• 返り値: `(H, W)` の bool。全物体の縁が 1 枚に重なる(物体ごとに分けたいなら
`blob_region` で抜いてから掛ける)。
• 画像の縁に接する物体は、scipy の既定(反射境界)で画像端の外を自分の値と
みなすため、画像端に沿った辺は縁として出ない。
• 1 画素幅の細い物体は全画素が縁になる。
`blob_features` の周長は別の係数法で測っており、この縁の画素数とは一致しない。
輪郭を折れ線として使うなら `annotate_outline_layout` が (x, y) の閉多角形を返す。
• 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.
• poc_gear_tooth_metrology — py -3.11 examples/poc_gear_tooth_metrology.py
mask as input)extract)*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.