I1=imread('blood1.tif'); figure,imshow(I1) h1=fspecial('sobel'); I2=filter2(h1,I1); figure,imshow(I2) I3=conv2(I1,h1); figur…
sobel 源代码
使用扩展Sobel算子计算一阶、二阶、三阶或混合图像差分
/***************************************************************************** Copyright (c) 2006 Analog Devices, Inc. All Righ…
/***************************************************************************** Copyright (c) 2006 Analog Devices, Inc. All Righ…
I=imread('C:\Documents and Settings\lishurui\桌面\lena.bmp'); subplot(2,2,1); imshow(I); title('原始图像'); h1=fspecial('sobel'); I…
#include "bmp.h" ///////////////////////////////////////////////////////////////////////////// // // Menu // BMPMENU MENU D…
I = imread('01.bmp'); imshow(I) BW1 = edge(I,'sobel'); BW2 = edge(I,'canny'); imshow(BW1) figure, imshow(BW2)
I=imread('02.tif','tif'); J=filter2(fspecial('sobel'),I); K=mat2gray(J); imshow(I) figure,imshow(K)
%Part 1:Compare various edge detectors x=imread('fp.bmp'); e1=edge(x,'sobel'); e2=edge(x,'canny'); figure(1); subplot(1,2…
I1=imread('blood1.tif'); figure,imshow(I1) h1=fspecial('sobel'); I2=filter2(h1,I1); figure,imshow(I2) I3=conv2(I1,h1); figur…
f=imread('peppers.png'); % 读入图像 f=rgb2gray(f); % 灰度转换 f=im2double(f)…