% 读取原图像 g0=imread('eight.tif'); figure(1) imshow(g0) ; %如图4-7所示 % 加入椒盐噪声 g1=imnoise(g0, 'salt and peppers', …
Prewitt算子 源代码
汇集 Prewitt算子 相关的电路原理图、PCB工程文件、单片机/FPGA源代码、数据手册与应用设计方案。
I1=imread('blood1.tif'); figure,imshow(I1) h1=fspecial('sobel'); I2=filter2(h1,I1); figure,imshow(I2) I3=conv2(I1,h1); figur…
I = imread('saturn.tif'); subplot(211);imshow(I);title('原图像'); H = fspecial('laplacian'); %应用Laplacian算子滤波锐化图像 laplacianH = f…
I1=imread('blood1.tif'); figure,imshow(I1) h1=fspecial('sobel'); I2=filter2(h1,I1); figure,imshow(I2) I3=conv2(I1,h1); figur…
%%% Sobel算子、Prewitt算子和高斯-拉普拉斯算子进行图像锐化的源程序。 %应用Sobel算子进行图像锐化 clear all; I1=imread('E:\MATLAB7\work\5-2\yuantu.bmp'); I1=double…
I=imread('eight.tif'); BW1=edge(I,'sobel'); BW2=edge(I,'roberts'); BW3=edge(I,'prewitt'); BW4=edge(I,'log'); BW5=edge(I,'cann…
程序代码说明 P0401:用Prewitt算子检测图像的边缘 P0402:用不同σ值的LoG算子检测图像的边缘 P0403:用Canny算子检测图像的边缘 P0404:图像的阈值分割 P0405:用水线阈值法分割图像 P04…
I = imread('saturn.tif'); subplot(211);imshow(I);title('原图像'); H = fspecial('laplacian'); %应用Laplacian算子滤波锐化图像 laplacianH = f…
% 读取原图像 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…