morph_hat — MV morphology op

• Data kinds: mask × mask → mask

• Call: import fullseye as fs; fs.ledger.morph_hat(region, se) (to call the implementation directly, import mvmorph; mvmorph.morph_hat(region, se); from the registry, opsmv.get("morph_hat"))

• HALCON equivalent: morph_hat (the HALCON reference is a useful guide to its meaning and parameters)

• GPU: none (CPU reference implementation only)

Usage

Return the union of the pixels removed by opening and the pixels added by closing.

> The detailed description below is the original text — the summary and the headings are translated.

画像の外は背景と見なす。空の入力(region が 0 要素)は ValueError。

Args:

region: 2-D の領域。

se: 構造要素(奇数辺の bool 配列)。

Returns:

region と同じ形の bool 配列。

Detailed usage guide

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

• machine_vision_tour — py -3.11 examples/machine_vision_tour.py

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

hit_or_miss_golay · hit_or_miss_seq · thickening_hit_miss · thickening_golay · thickening_seq · morph_skiz · opening_seg · update_bg_esti

Same category (morphology)

golay_elements · hit_or_miss_golay · hit_or_miss_seq · thickening_hit_miss · thickening_golay · thickening_seq · morph_skiz · opening_seg


*Provenance: mvmorph.py — MV 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.