I am trying to do edge detection using matlab. I have posted
code here. It does not give any error but it's not running it at
all. So please help me to fix it and also exaplin each line of this
code pls. Thanks!
i = imread('C:\Users\Amanda\Desktop");
I = rgb2gray(1i);
BW1 = edge(I,'prewitt');
BW2= edge(I,'sobel');
BW3= edge(I,'roberts');
subplot (2,2,1);
imshow(I);
title('original');
subplot(2,2,2);
imshow(BW1);
title('Prewitt');
subplot(2,2,3);
imshow(BW2);
title('Sobel');
subplot(2,2,4);
imshow(BW3);
title('Roberts');