Skip to content

MATLAB Program for Boundary Detection

MATLAB Program for Boundary Detection

Code

close all;
clear all;
BW1 = imread(‘DSC08386.jpg’);

subplot(1,2,1);
imshow(BW1)
title(‘original image’);

SE = strel(‘arbitrary’,eye(5));
BW2 = imerode(BW1,SE);
subplot(1,2,2);
imshow(BW1 – BW2)
title(‘Boundary Extracted’);

Output of Boundry Detection

Leave a Reply

Your email address will not be published. Required fields are marked *

error: Content is protected !!