Lab 7
Lab 7
Hints
To construct the filter use the function fspecial(sobel) to get the filters Gx and Gy
To apply the filter use one of the 3 functions i. filter2() ii. imfilter() iii. conv2() 2. Using the image cameraman.tif apply Canny edge detection algorithm: a. Using thresholds [0.5 0.9] and sigma = 1 b. Using thresholds [0.04 0.1] and sigma = 1 (BONUS) c. Using thresholds [0.04 0.1] and sigma = 3 (BONUS)
Computer Engineering Dept. Faculty of Engineering Cairo University Digital Image Processing Lab
Original Image
Sobel Edges