Saturday, June 2, 2012

Edge Detection matlab code


Edge Detection matlab code


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

































Canny Edge Detector:



3 comments:

  1. Nice post it is very useful for me.
    Each and every year we are providing Cheap and best students project at Madurai.

    ReplyDelete
  2. how to edge dectecting without using in built function of canny

    ReplyDelete
  3. how to edge dectecting without using in built function of canny

    ReplyDelete