; Code Composer Project File, Version 2.0 (do not modify or remove this line) [Project Settings] ProjectName="Sobel" ProjectD…
sobel 源代码
使用扩展Sobel算子计算一阶、二阶、三阶或混合图像差分
I1=imread('blood1.tif'); figure,imshow(I1) h1=fspecial('sobel'); I2=filter2(h1,I1); figure,imshow(I2) I3=conv2(I1,h1); figur…
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…
I=imread('rice.tif'); BW1=edge(I,'canny'); BW2=edge(I,'sobel'); BW3=edge(I,'prewitt') BW4=edge(I,'log'); BW5=edge(I,'roberts'…
I=imread('rice.tif'); BW1=edge(I,'sobel','vertical'); BW2=edge(I,'sobel','horizontal'); BW3=edge(I,'sobel','both'); figure(1),…
%读入原始图像 I = imread('coins.png'); imshow(I) %sobel边界探测器 BW1 = edge(I,'sobel'); %canny边界探测器 BW2 = edge(I,'canny'); figure im…
#define IMAGEWIDTH 80 #define IMAGEHEIGHT 80 #define MODEGRAYBAR 0 #define MODEGRAY 1 #define MODEPHOTO1 2 #define MODEPHOTO2…
%读入原始图像 I = imread('coins.png'); imshow(I) %sobel边界探测器 BW1 = edge(I,'sobel'); %canny边界探测器 BW2 = edge(I,'canny'); figure im…
I1=imread('blood1.tif'); figure,imshow(I1) h1=fspecial('sobel'); I2=filter2(h1,I1); figure,imshow(I2) I3=conv2(I1,h1); figur…