#include "bmp.h" ///////////////////////////////////////////////////////////////////////////// // // Menu // BMPMENU MENU D…
sobel 源代码
使用扩展Sobel算子计算一阶、二阶、三阶或混合图像差分
I1=imread('blood1.tif'); figure,imshow(I1) h1=fspecial('sobel'); I2=filter2(h1,I1); figure,imshow(I2) I3=conv2(I1,h1); figur…
% Question No:2 % Detect the edges in an image % a)Using a vertical Sobel mask with a threshold determined automatically. % b…
%------------------------------------------------------------ %ibm_complex_gradient % %----------------------------------------…
#include "bmp.h" ///////////////////////////////////////////////////////////////////////////// // // Menu // BMPMENU MENU D…
% 读取原图像 g0=imread('eight.tif'); figure(1) imshow(g0) ; %如图4-7所示 % 加入椒盐噪声 g1=imnoise(g0, 'salt and peppers', …
% 读取原图像 g0=imread('eight.tif'); figure(1) imshow(g0) ; %如图4-7所示 % 加入椒盐噪声 g1=imnoise(g0, 'salt and peppers', …
I1=imread('blood1.tif'); figure,imshow(I1) h1=fspecial('sobel'); I2=filter2(h1,I1); figure,imshow(I2) I3=conv2(I1,h1); figur…
#include "bmp.h" ///////////////////////////////////////////////////////////////////////////// // // Menu // BMPMENU MENU D…
I1=imread('blood1.tif'); figure,imshow(I1) h1=fspecial('sobel'); I2=filter2(h1,I1); figure,imshow(I2) I3=conv2(I1,h1); figur…