Problems with Matlab Projects? You may face many Problems, but do not worry we are ready to solve your Problems. All you need to do is just leave your Comments. We will assure you that you will find a solution to your project along with future tips. On Request we will Mail you Matlab Codes for Registered Members of this site only, at free service...Follow Me.

Dilation and Erosion Matlab code


Aim: To perform dilation & erosion of an image

Equipments:

Operating System: -     Windows XP
Software: -                   Matlab 7.5, Image Processing Toolbox.


Program:

close all;
clear all;
clc;
f=imread('cameraman.tif');
level=graythresh(f);
f1=im2bw(f,level);
s=[0 1 0; 1 1 1 ; 0 1 0];
f2=imdilate(f1,s);
subplot(1,3,1);imshow(f);title('original image');
subplot(1,3,2);imshow(f1);title('binary image');
subplot(1,3,3);imshow(f2);title('dilated image');


Results:

Dilation

































Erosion



1 comments:

Unknown said...

thank uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu

Post a Comment

Recent Comments

Popular Matlab Topics

Share your knowledge - help others

Crazy over Matlab Projects ? - Join Now - Follow Me

Sites U Missed to Visit ?

Related Posts Plugin for WordPress, Blogger...

Latest Articles

Special Search For Matlab Projects

MATLAB PROJECTS

counter

Bharadwaj. Powered by Blogger.