4.83333

4.8 | 6 ratings Rate this file 41 Downloads (last 30 days) File Size: 5.28 KB File ID: #4163

Grayscale Dilation and Erosion

by Luigi Rosa

 

18 Nov 2003 (Updated 19 Nov 2003)

A very fast implementation.

| Watch this File

File Information
Description

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

Required Products Image Processing Toolbox
MATLAB release MATLAB 6.5 (R13)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (6)
18 Mar 2005 Len Russo  
05 Oct 2005 Mehdi Hussain

Very nice i got lot of idea thanks sir
sir if possible then send me "Iris Recognition" type material or article
i wll be waiting

26 Oct 2005 surya s

pretty fast, more than 3 times fold. By chance, do you have a version for binary images also?

15 May 2007 Tran Cong Binh

I very need this program to research

03 Aug 2008 kiran hidayat  
22 Dec 2009 Masoud

Fast and efficient..Great job

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
morphology Luigi Rosa 22 Oct 2008 07:09:36
segmentation Luigi Rosa 22 Oct 2008 07:09:36
grayscale dilation Luigi Rosa 22 Oct 2008 07:09:36
grayscale erosion Luigi Rosa 22 Oct 2008 07:09:36
image pro Luigi Rosa 22 Oct 2008 07:09:36
implementation Luigi Rosa 22 Oct 2008 07:09:36
fast Luigi Rosa 22 Oct 2008 07:09:36
grayscale dilation b vs 13 Feb 2009 06:17:47
fast pretty 16 Jun 2011 07:18:25

Contact us at files@mathworks.com