3D structuring element (sphere)

Version 1.1.0.0 (1,77 KB) von Luke Xie
strel3d creates a sphere as a 3D structuring element, which is important for 3D datasets
998 Downloads
Aktualisiert 29. Sep 2014

Lizenz anzeigen

STREL3D creates a 3D sphere as a structuring element. Three-dimensional structuring elements are much better for morphological reconstruction and operations of 3D datasets. Otherwise the traditional MATLAB "strel" function will only operate on a slice-by-slice approach. This function uses the aribtrary neighborhood for "strel."

Usage:
se=STREL3D(sesize)

Arguments:
sesize - desired diameter size of a sphere (any positive integer)

Returns:
the structuring element as a strel class (can be used directly for imopen, imclose, imerode, etc)

Examples:
se=strel3d(1)
se=strel3d(2)
se=strel3d(5)

2014/09/26 - LX
2014/09/27 - simplification by Jan Simon

Zitieren als

Luke Xie (2026). 3D structuring element (sphere) (https://de.mathworks.com/matlabcentral/fileexchange/47937-3d-structuring-element-sphere), MATLAB Central File Exchange. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R2012b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Version Veröffentlicht Versionshinweise
1.1.0.0

includes simplification suggested by Jan Simon

1.0.0.0