Lenna = imread('lenna2.jpg');
SE3 = strel('square',3);
SE5 =
strel('square',5);
SE7
= strel('square',7);
ErodeLenna = imerode(Lenna,SE3);
subplot(2,3,1); imshow(ErodeLenna); ylabel('Eroded Image'); title('5x5');
ErodeLenna = imerode(Lenna,SE5);
subplot(2,3,2); imshow(ErodeLenna); title('5x5');
ErodeLenna = imerode(Lenna,SE7);
subplot(2,3,3); imshow(ErodeLenna);
title('7x7');
No comments:
Post a Comment