代码搜索结果
找到约 10,000 项符合
B 的代码
b7.m
I = imread('saturn.tif');
J = imnoise(I,'gaussian', 0,0.005);
figure,imshow(J)
h = fspecial('gaussian');
K=filter2(h,J)/255;
figure,imshow(K)
b64.m
I = imread('ngc4024m.tif');
X = grayslice(I,16);
imshow(I)
figure, imshow(X,hot(16))
b56.m
I=imread('rice.tif');
imshow(I,20)
b25.m
%用原图像与压缩后的图像相减
I = imread('cameraman.tif');
I = double(I)/255;
%计算离散变换矩阵,返回结果为双精度型
T = dctmtx(8);
%实现图像的显示块操作
B = blkproc(I,[8 8],'P1*x*P2',T,T');
mask =[1 1 1 1 0 0 0 0
1 1 1 0 0 0
b47.m
I = imread('rice.tif');
BW = roicolor(I,150,200);
imshow(I);
figure;
imshow(BW)
b12.m
%对前面得到的cameraman.tif的二值化图像进行腐蚀操作
I=imread('cameraman.tif');
figure,imshow(I)
J=im2bw(I);
figure,imshow(J)
SE=eye(5);
BW1=erode(J,SE);
figure,imshow(BW1)
b2.m
%首先,显示原始图像
I1=imread('rice.tif');
figure,imshow(I1)
%原始图像如图9-2所示
%然后,选取阈值为0.2,对原始图像进行四叉树分解,并以灰度图的形式显示分解所得的稀疏矩阵。
S = qtdecomp(I1,0.2);
S2=full(S);
figure,imshow(S2)
%稀疏矩阵如图9-3所示
%最后,通过查看S2来了解四
b84.m
x=[3 4 5 6];
y=[2 3 4 5];
feather(x,y);
b15.m
I=imread('cameraman.tif');
figure,imshow(I)
J=im2bw(I);
figure,imshow(J)
BW1= bwmorph(J,'dilate');
figure,imshow(BW1)