Matlab Intro - Image Filter Sobel

来源:互联网 发布:linux 驱动 培训 编辑:程序博客网 时间:2024/04/24 05:36


Note: It seems that it's not valid against jpg image.


I=imread('d:\Pict\tiff\spine.tif');
subplot(2, 2, 1); imshow(A);title('Original Image');
h = fspecial('sobel');
A = imfilter(I, h);
subplot(2, 2, 2); imshow(A);title('Horizontal Sobel');
B=edge(I, 'sobel', [], 'both');
subplot(2, 2, 3); imshow(B);title('Sobel');
C=edge(I, 'canny', [], 1);
subplot(2, 2, 4); imshow(C);title('Canny');


0 0
原创粉丝点击