代码搜索结果

找到约 10,000 项符合 B 的代码

b40.m

%下面仍以saturn.tif为例,加入椒盐噪声,并采用中值过滤器 I = imread('saturn.tif'); J = imnoise(I,'salt & pepper',0.02); K1 = medfilt2(J,[3,3]); figure,imshow(K1)

b93.m

Y=[3 1 2 8 7 5 5 3 4 9 3 2]; area(Y) grid on set(gca,'layer','top');

b81.m

[X,Y,Z]=peaks; [C,h]=contour(X,Y,Z,15,'r*'); clabel(C,h); title('具有15条轮廓线的peaks函数');

b58.m

RGB=imread('hr.jpg'); YCbCr=rgb2ycbcr(RGB); subplot(1,2,1); subimage(RGB); title('原图像'); subplot(1,2,2); subplot(1,2,2); subimage(YCbCr); title('变换后的图像');

b59.m

RGB=imread('hr.jpg'); YIQ=rgb2ntsc(RGB); I=YIQ(:,:,1); subplot(1,2,1); subimage(RGB); title('原图像'); subplot(1,2,2); subimage(I); title('变换后的图像');

b38.m

I = imread('saturn.tif'); J = imnoise(I,'salt & pepper',0.02); domain=[0 0 1 0 0; 0 0 1 0 0; 1 1 1 1 1; 0 0 1 0 0; 0 0 1 0 0]; K1= ordfilt2(J,5,domain); figure,imsh

b22.m

%在MATLAB中调用J = wiener2(I,[m n],noise)函数 I = imread('saturn.tif'); J = imnoise(I,' gaussian', 0,0.005); K1 = wiener2(J,[5,5]); figure,imshow(K1)

b37.m

I1=imread('blood1.tif'); figure,imshow(I1) h1=fspecial('sobel'); I2=filter2(h1,I1); figure,imshow(I2) I3=conv2(I1,h1); figure,imshow(I3) h2=fspecial('prewitt'); I4=filter2(h2,I1); figure,imsh

b35.m

I1=imread('blood1.tif'); figure,imshow(I1) f=double(I1); g=fft2(f);%傅里叶变换 g=fftshift(g);%转换数据矩阵 [N1,N2]=size(g); n=2; d0=5; n1=fix(N1/2); n2=fix(N2/2); for i=1:N1 for j=1:N2