seg_inject_merge — EMPROOF inject op

• Data kinds: labels2d → labels2d

• Call: import fullseye as fs; fs.ledger.seg_inject_merge(labels, n: 'int' = 1, seed: 'int' = 0, min_area: 'int' = 3000, ignore_zero: 'bool' = True) -> 'np.ndarray' (to call the implementation directly, import emproof; emproof.seg_inject_merge(labels, n: 'int' = 1, seed: 'int' = 0, min_area: 'int' = 3000, ignore_zero: 'bool' = True) -> 'np.ndarray'; from the registry, opsemproof.get("seg_inject_merge"))

Usage

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

評価用に融合を仕込む: 隣接する大きなラベル対を `n` 組選び、片方の id をもう片方に書き換える。

`min_area` px 以上のラベルだけを候補にし(小さな断片の融合は弦が短くて検出できず、評価が

「仕込めない誤り」に引っ張られる)、乱数(`seed`)で対を選ぶ。同じラベルは 1 回しか使わない。

`n` 組取れなければ ValueError(黙って少ない数で返すと AUC の分母が変わる)。仕込んだ対は

`seg_label_changes(labels, out)["merge_before"]` で取り出せる。

>>> merged = seg_inject_merge(labels, n=1, seed=3)

>>> seg_label_changes(labels, merged)["merge_before"] # 吸われた id

Detailed usage guide

• emproof 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)

• poc_em_second_opinion — py -3.11 examples/poc_em_second_opinion.py

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

seg_membrane_chord_score · seg_boundary_membrane_gap · seg_inject_split · seg_label_changes

Same category (inject)

seg_inject_split · seg_label_changes


*Provenance: emproof.py — EMPROOF 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.