You are on page 1of 1

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] = thresh figure; imagesc(Bbw); colormap(gray); pause [Bbw2, thresh] = figure; colormap(gray); imagesc(Bbw2); pause; edge(Abw, 'canny');

edge(Abw, 'canny',[],2);

[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);

You might also like