Human Face Recognition
|Utility of sobel and canny for edge detection|
MATLAB Program 8
%utility of sobel and canny for edge detection
I = imread('eight.tif');
J = imnoise(I,'salt & pepper',0.02);
BW1 = edge(I,'sobel',0.03);
BW2 = edge(I,'canny');
First of all alphabet image “eight.tif” is read twice in variables I & J then two matrices are formed BW1 & BW2 . Then edge(BW1,’canny’) function forms the sharp edges of two alphabets noise is inserted in one of them by using imnoise() function. Three parameters are passed through this function. First one is the variable where the picture is saved in which noise is to be inserted, second one is the type of noise, third one is parameter. Sobel is used to detect blunt edges.In case of Sobel() a threshold is passed.
Want To Know more with
Contact for more learning: webmaster@freehost7com
The contents of this webpage are copyrighted © 2005-2008 www.freehost7.com
All Rights Reserved.