\\ MATLAB program to study the various morphological operation on binary image.\\
clc;
clear all;
close all:
I=imread(C:\aish.bmp);
figure
imshow(I)
title('original image');
I=im2bw(I);
figure
imshow(I);
title('binary image');
a=bwmorph(I,'dilate');
figure
imshow(a)
title('dilation');
b=bwmorph(I,'erode');
figure
imshow(b)
title('erosion');
c=bwmorph(I,'open');
figure
imshow(c)
title('binary opening');
d=bwmorph(I,'close');
Keine Kommentare:
Kommentar veröffentlichen