morphology op• Data kinds: voxel → voxel
• 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")
3-D morphological gradient = dilation − erosion. Extracts boundaries and surfaces (an edge source in place of Sobel).
Local max − local min with the same SE (a cube of side length 2r+1 or a ball of radius r). The value is always 0 or more, 0 in uniform regions, and the step size at bright/dark boundaries (the larger r, the thicker the boundary; r=1 gives 2 voxel width). There is no direction information (use sobel3d if you need direction). Unlike sobel3d no gain correction is needed, and on a 2-valued volume the shell "boundary voxel = 1" comes out as is. se is "cube"/"ball" (anything else:
ValueError), device is effective only for cube+torch. Returns (D,H,W) float32 numpy.
Use: an edge source for match_chamfer_3d; an alternative surface extraction before passing to hough_plane_3d.
• 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.
• morphology_3d — py -3.11 examples_3d/morphology_3d.py
voxel as input)voxel_to_mips · voxel_to_mesh · signed_distance_field · to_points · sobel3d · hessian3d · curvature_maps · edt_jfa
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.