Aim: To perform edge detection of an image
Equipments:
Operating System: - Windows XP
Software: - Matlab 7.5, Image Processing Toolbox.
Program:
clc;0000
close all;
clear all;
f=imread('trees.tif');
subplot(1,2,1);
imshow(f);title('original image');
BW1=edge(f,'sobel');
BW2=edge(f,'canny');
subplot(1,2,2);
imshow(BW1);title('sobel edge detector image');
figure,subplot(1,2,1);imshow(f);title('original image');
subplot(1,2,2);
imshow(BW2);title('canny edge detector image');
Result:
Sobel Edge Detector
1 comments:
mujhe iska result chahiye matlab code ka
Post a Comment