morph_blackhat3d — 3D morphology op

Data kinds: voxelvoxel

Call: import fullseye as fs; fs.ledger.morph_blackhat3d(vol, r=1, device='cpu', se='cube') (to call the implementation directly, import match3d; match3d.morph_blackhat3d(vol, r=1, device='cpu', se='cube'); from the registry, ops3d.get("morph_blackhat3d"))

GPU: this op has a GPU path (device="cuda")

Usage

3-D black-hat = closing − vol. Extracts the dark structures and holes smaller than the structuring element.

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

`morph_close3d(vol, r, ...) − vol(float32)。値は 0 以上で、SE(一辺 2r+1` の cube か

半径 r の ball)より小さい暗い穴・亀裂・隙間だけがその深さで残り、大きな暗領域と背景は

0 になる。占有 voxel なら「SE で埋まる空洞 = 1」。`r` は検出したい穴の半径より大きく取る。

`se は "cube"/"ball"(他は ValueError)、device` は cube+torch のときだけ有効。

返り値 `(D,H,W) float32 numpy。明るい構造を取るなら morph_tophat3d`。

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.

Runnable examples (verified samples that actually call this op)

diff_featurespy -3.11 examples_3d/diff_features.py

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

voxel_to_mips · voxel_to_mesh · signed_distance_field · to_points · sobel3d · hessian3d · curvature_maps · edt_jfa

Same category (morphology)

morph_dilate3d · morph_erode3d · morph_open3d · morph_close3d · morph_gradient3d · morph_tophat3d


*Provenance: match3d.py — 3D 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.