其他分享
首页 > 其他分享> > canny边缘检测来自geekgeek网站

canny边缘检测来自geekgeek网站

作者:互联网

% importing the image
I = imread(‘graytestimg\11.bmp’);
% subplot(2, 4, 1),
% imshow(I);
% title(‘Gray Scale Image’);

% % Sobel Edge Detection
% J = edge(I, ‘Sobel’);
% subplot(2, 4, 2),
% imshow(J);
% title(‘Sobel’);
%
% % Prewitt Edge detection
% K = edge(I, ‘Prewitt’);
% subplot(2, 4, 3),
% imshow(K);
% title(‘Prewitt’);
%
% % Robert Edge Detection
% L = edge(I, ‘Roberts’);
% subplot(2, 4, 4),
% imshow(L);
% title(‘Robert’);
%
% % Log Edge Detection
% M = edge(I, ‘log’);
% subplot(2, 4, 5),
% imshow(M);
% title(‘Log’);
%
% % Zerocross Edge Detection
% M = edge(I, ‘zerocross’);
% subplot(2, 4, 6),
% imshow(M);
% title(‘Zerocross’);

% Canny Edge Detection
% N = edge(I, ‘canny_old’);
N=edge(I,‘canny_old’,[0,0.25],1.5);
% subplot(2, 4, 7),
imshow(N);
imwrite(N,‘edgemap.jpg’);
% title(‘Canny’);

标签:subplot,title,geekgeek,检测,imshow,Detection,edge,canny,Edge
来源: https://blog.csdn.net/ZYYYYYYY123/article/details/120917744