morph_gradient3d — 3D morphology op

Data kinds: voxelvoxel

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

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

Usage

3-D morphological gradient = dilation − erosion. Extracts boundaries and surfaces (an edge source in place of Sobel).

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

同じ SE(一辺 `2r+1` の cube か半径 r の ball)での局所 max − 局所 min。値は常に 0 以上、

一様な領域で 0、明暗の境界で段差の大きさ(`r が大きいほど境界が太い。r=1` で 2 voxel

幅)。方向情報は無い(方向が要るなら `sobel3d)。sobel3d` と違い利得の補正が要らず、

2 値 volume では「境界 voxel = 1」の殻がそのまま出る。`se` は "cube"/"ball"(他は

ValueError)、`device は cube+torch のときだけ有効。返り値 (D,H,W)` float32 numpy。

用途: `match_chamfer_3d 用のエッジ源、hough_plane_3d` に渡す前の表面抽出の代替。

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_erode3d · morph_open3d · morph_close3d · 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.