wap to obtain edges using edge detection operator
clear all;
close all;
i=imread('cameraman.tif');
subplot(1,3,1);
imshow(i);
title('Normal');
j=edge(i,'Sobel');
subplot(1,3,2);
imshow(j);
title('Sobel');
k=edge(j,'Prewitt');
subplot(1,3,3);
imshow(k);
title('Prewitt');
O/p