morph_erode3d — 3D morphology op

Data kinds: voxelvoxel

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

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

Usage

3-D greyscale erosion (the local min over the structuring element). Shrinks the bright regions. se is the same as for dilate.

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

一辺 `2r+1` の cube か半径 r の ball の中で最小値を取る。境界の外は +∞ 扱い(画像内の

値だけで min。torch 経路は `-max_pool3d(-v)、scipy 経路は cval=+inf`)ので、端で 0 に

落ちることはない。`r=0 は恒等。se が "cube"/"ball" 以外なら ValueError。device` は

cube+torch のときだけ効く。返り値 `(D,H,W)` float32 numpy。

2 値 volume では「SE が丸ごと入る voxel だけ残す」= 細い構造・薄い殻の除去。

後段: `morph_dilate3d と組で opening/closing、vol − erosion` で内側境界。

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)

morphology_3dpy -3.11 examples_3d/morphology_3d.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_open3d · morph_close3d · morph_gradient3d · morph_tophat3d · morph_blackhat3d


*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.