A) Opening
B) Closing
C) Morphological Gradient
D) Top-hat Transformation
(A) Opening
Code
clear all;
close all;
a=imread(‘D:final printdip speechimages5.jpg’);
se=[1 1 1 1 1];
b=imerode(a,se);
c=imdilate(b,se);
subplot(1,2,1);
imshow(a);
title(‘Original Image’);
subplot(1,2,2);
imshow(c);
title(‘Opening of Image’);
Output Of An Opening Image
(B) Closing
Code
clear all;
close all;
a=imread(‘D:final printdip speechimages5.jpg’);
se =[1 1 1 1 1 1 1 1 1];
e=imdilate(a,se);
f=imerode(e,se);
subplot(1,2,1);
imshow(a);
title(‘Original Image’);
subplot(1,2,2);
imshow(f);
title(‘Closing of Image’);
Output Of An Closing Image
(C) Morphological gradient
Code
clear all;
close all;
a=imread(‘D:final printdip speechimages6.jpg’);
se=strel(‘square’,5);
b=imdilate(a,se);
c=imerode(a,se);
d=imsubtract(b,c);
subplot(2,2,1);
imshow(a);
title(‘original’);
subplot(2,2,2);
imshow(d);
title(‘Morphological Gradient image’);
Output Of An Morphological gradient
(D)Top Hat transformation CODING
Code
close all;
clear all;
a=imread(‘Jesus.jpg’);
d=a;
se=[1 1 1 1];
b=imdilate(a,se);
c=imerode(a,se);
[row col]=size(c);
for i=1:row
for j=1:col
d(i,j)=b(i,j)-c(i,j);
end
end
subplot(1,2,1);
imshow(a);
title(‘Original Image’);
subplot(1,2,2);
imshow(d);
title(‘Top Hat Trasnformed Image’);
Output Of An Top Hat transformation
If some one needs expert view about running a blog after that i propose him/her to visit this webpage, Keep up the good job.
This is a great tip particularly to those fresh to the blogosphere. Short but very precise information… Many thanks for sharing this one. A must read article!
Good day! This is my first comment here so I just wanted to give a quick shout out and tell you I genuinely enjoy reading your posts. Can you suggest any other blogs/websites/forums that deal with the same subjects? Thanks a ton!|
Hi, yes this article is in fact pleasant and I have learned lot of things from it regarding blogging. thanks.
We are a gaggle of volunteers and starting a brand new scheme in our community. Your site provided us with helpful info to work on. You have performed an impressive activity and our entire group can be thankful to you.
Pretty! This has been an extremely wonderful post. Many thanks for supplying this info.
Way cool! Some extremely valid points! I appreciate you writing this post plus the rest of the website is really good.