I=imread('eight.tif'); imshow(I) ; J1=imnoise(I,'gaussian',0,0.02); % 叠加均值为0,方差为0.02的高斯噪声,可以用 % localvar代替,如图3-17(b)所示 figure,imshow (J1); J2=imnoise(I
http://www.codebf.com/read/15711/536112
I=imread('Saturn.tif'); imshow(I); J1=imnoise(I,'salt & pepper'); % 叠加椒盐噪声 figure,imshow(J1); f=double(J1); % 数据类型转换,MATLAB不支持图像的无符号整型的计算 g=fft2(f); % 傅立叶变换 g=fftshift(g); % 转换数
http://www.codebf.com/read/15711/536113
I=imread('eight.tif'); imshow(I) ; J2=imnoise(I,'salt & pepper',0.04); % 叠加密度为0.04的椒盐噪声。 % 如图3-17(c)所示。 figure,imshow(J2); I_Filter1=medfilt2(J2,[3
http://www.codebf.com/read/15711/536115
[I,map]=imread('blood1.tif'); imshow(I,map); H2=[-1 -1 -1;-1 -9 -1;-1 -1 -1]; J1=filter2(H2,I); % 高通滤波 figure,imshow(J1,map); I=double(I); M=[1 1 1;1 1 1;1 1 1]/9; J2=filter2(M,I)
http://www.codebf.com/read/15711/536117
I=imread('cameraman.tif'); % MATLAB自带的图像,如图3-3所示 imshow(I); clear;close all I=imread('cameraman.tif'); imshow(I); I=im2double(I); T=dctmtx(8); B=blkproc(I,[8 8], 'P1*x*P2',T,T'); Ma
http://www.codebf.com/read/15711/536118
I=imread('rice.tif'); imshow(I); figure,imhist(I); J=imadjust(I,[0.15 0.9], [0 1]); figure,imshow(J); figure,imhist(J);
http://www.codebf.com/read/15711/536119
I=imread('pout.tif'); % 读取MATLAB自带的potu.tif图像 imshow(I); figure,imhist(I); [J,T]=histeq(I,64); % 图像灰度扩展到0~255,但是只有64个灰度级 figure,imshow(J); figure,imhist(J); figure,plot((0:255)/255,T)
http://www.codebf.com/read/15711/536121
[I,map]=imread('eight.tif'); figure,imshow(I);title('original') J1=imnoise(I,'gaussian',0,0.02); % 受高斯噪声干扰,结果如图3-17(b)所示 M4=[0 1 0; 1 0 1; 0 1 0]; M4=M4/4; % 4邻域平均滤波 I_filter1=fil
http://www.codebf.com/read/15711/536122
[I,map]=imread('eight.tif'); figure,imshow(I);title('original') J1=imnoise(I,'gaussian',0,0.02); % 受高斯噪声干扰,结果如图3-17(b)所示 [K noise]=wiener2(J1, [5 5]); figure,imshow(K); % 结果如图3-20所示
http://www.codebf.com/read/15711/536123
[I,map]=imread('3-22.jpg'); imshow(I,map); I=double(I); [Gx,Gy]=gradient(I); % 计算梯度 G=sqrt(Gx.*Gx+Gy.*Gy); % 注意是矩阵点乘 J1=G; figure,imshow(J1,map); % 第一种图像增强 J2=I;
http://www.codebf.com/read/15711/536124
虫虫下载站 半导体技术网 电子研发网 源码地带 电源技术网 单片机技术网 医疗电子技术 嵌入式系统与单片机