cd e:\matlab\images\
ls
A = imread('mckeldin1.jpg');
imagesc(A);
pause;

truesize;
size(A)

Abw= rgb2gray(A);
imagesc(Abw);
colormap(gray);
pause
%imshow(edge(Abw, 'canny', [],1);

[Bbw, thresh] =  edge(Abw, 'canny');
thresh


figure;
imagesc(Bbw);
colormap(gray);
pause
[Bbw2, thresh] =  edge(Abw, 'canny',[],2);
figure;
colormap(gray);
imagesc(Bbw2);
pause;

[Bbw3, thresh] =  edge(Abw, 'canny',[],3);
figure;
colormap(gray);
imagesc(Bbw3); thresh

pause

figure;
G= fspecial('gaussian',[6 6],1)
imagesc(conv2(Abw, G));
colormap(gray);
pause
G= fspecial('gaussian',[9 9],2)
imagesc(conv2(Abw, G));
colormap(gray);