sobel 源代码

使用扩展Sobel算子计算一阶、二阶、三阶或混合图像差分

收录资源 192 份 全站深度检索
源码文件

%%% Sobel算子、Prewitt算子和高斯-拉普拉斯算子进行图像锐化的源程序。 %应用Sobel算子进行图像锐化 clear all; I1=imread('E:\MATLAB7\work\5-2\yuantu.bmp'); I1=double…

源码文件

%%%%%%%%%%%%%%%%%%%% 盲卷积滤波复原 %图像模糊化 I = imread('cameraman.tif'); figure;imshow(I);title('Original Image'); PSF = fspecial('mot…

源码文件

%ISOBEL Sobel edge detector % % is = ISOBEL(image) % % applies the Sobel edge detector, which is the norm of the vertical % and ho…

源码文件

ft = imread('tire.tif'); f=imnoise(ft,'gaussian', 0,0.01); ft=im2double(ft); f=im2double(f); h1=[1 2 1;2 4 2;1 2 1]./16; h2=[…

源码文件

数字图像的边缘检测是图像分割、目标区域的识别、区域形状提取等图像分析领域十分重要的基础,图像理解和分析的第一步往往就是边缘检测,目前它以成为机器视觉研究领域最活跃的课题之一,在工程应用中占有十分重要的地位。本文向读者简单介绍一下这个技术,并给出了在Visual…

源码文件

%读入原始图像 I = imread('coins.png'); imshow(I) %sobel边界探测器 BW1 = edge(I,'sobel'); %canny边界探测器 BW2 = edge(I,'canny'); figure im…

源码文件

I=imread('saturn.tif'); J=filter2(fspecial('sobel'),I); K=mat2gray(J); figure(1); imshow(I); figure(2); imshow(K);

源码文件

I=imread('rice.tif'); BW1=edge(I,'sobel'); BW2=edge(I,'canny'); imshow(BW1); figure,imshow(BW2)

源码文件

% 读取原图像 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…