Grayscale Dilation and Erosion

Version 1.0.0.0 (5,28 KB) von Luigi Rosa
A very fast implementation.
12,1K Downloads
Aktualisiert 19. Nov 2003

Lizenz anzeigen

The zip file includes:
- readme.txt this file
- gdil.c ----> a c file which must be mex compiled
- gerod.c ---> a c file which must be mex compiled
- graydil.m --> the m function (dilation)
- grayero.m --> the m function (erosion)
- provatempo.m ---> many examplex of use

Grayscale erosion and dilation: a very fast implementation.

We have optimized execution time of grayscale erosion and dilation. Our functions take advantage of MATLAB's decomposition of structuring
elements.

graydil(im,se) to perform dilation
im is the input 2D matrix (uin8, uint16, uint32 or double)
se the structuring element (logical or strel)

grayero(im,se) to perform erosion
im is the input 2D matrix (uin8, uint16, uint32 or double)
se the structuring element (logical or strel)

Memory management is not optimized ( our routines can generate
overflow memory error) but execution time is 2, 3, 4 or 5 times
smaller than MATLAB's one.

Please contribute if you find this software useful.
Report bugs to luigi.rosa@tiscali.it

Zitieren als

Luigi Rosa (2024). Grayscale Dilation and Erosion (https://www.mathworks.com/matlabcentral/fileexchange/4163-grayscale-dilation-and-erosion), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R13
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.0.0