代码搜索结果
找到约 8,819 项符合
RGB 的代码
xscg.m
kk=imread('ziji4.jpg');
X=rgb2gray(kk);
X=double(X);
[c,s]=wavedec2(X,2,'db4');
siz=s(size(s,1),:);
ca1=appcoef2(c,s,'db4',1);
a1=upcoef2('a',ca1,'db4',1,siz);
chd1=detcoef2('h',c,s,1);
hd1=
danch.m
kk=imread('ziji3.jpg');
X=rgb2gray(kk);
X=double(X);
sX=size(X);
[cA1,cH1,cV1,cD1]=dwt2(X,'db4');
A0=idwt2(cA1,cH1,cV1,cD1,'db4',sX);
ans=max(max(abs(X-A0)))
figure(1);
subplot(121);
im
duoch.m
kk=imread('ziji1.jpg');
X=rgb2gray(kk);
X=double(X);
[c,s]=wavedec2(X,2,'sym5');
a1=wrcoef2('a',c,s,'sym5',1);
a2=wrcoef2('a',c,s,'sym5',2);
hd2=wrcoef2('h',c,s,'sym5',2);
vd2=wrcoef2('v',c,s,'
s091.m
% 灰度图像JPEG 压缩 s091
I91=imread('1.jpg');
I910=rgb2gray(I91);
I911=im2double(I910);
T=dctmtx(8);
B=blkproc(I911,[8,8],'P1*x*P2',T,T');
Mask=[1 1 1 1 0 0 0 0
1 1 1 0 0 0
s055.m
% 度图像在两指定灰度范围间的凸性映射 s055
clear;
I55=imread('1.jpg');
I550=rgb2gray(I55);
I551=imadjust(I550,[0.11 0.91],[0 1],2.7);
subplot(2,2,1),imshow(I550);
subplot(2,2,2),imhist(I550);
subplot(2,2,3),ims
s047.m
% 灰度图像对数变换 s047
I47=imread('1.jpg');
I470=rgb2gray(I47);
I471=im2double(I470);
[m,n]=size(I470);
q=1/log10(50);
for i=1:m
for j=1:n
I472(i,j)=q*log10(1+49*I471(i,j));
end
s051.m
% 灰度图像位面切分 s051
a=imread('1.jpg');
a=rgb2gray(a);
s=im2double(a);
[m,n]=size(a);
for i=1:m
for j=1:n
s0=fix(s(i,j)*256);
r7(i,j)=bitget(s0,8);
r6(i,j)=bitget(s0,7);
r5(i,j)=bitget(s0,6);
r
s037.m
% 位宽uint16转换为uint8 s037
I37=imread('1.jpg');
I370=rgb2gray(I37);
I371=im2uint16(I370);
I372=im2uint8(I371);
I371(1:5,1:5),I372(1:5,1:5)
s043.m
% 灰度图像取反 s043
I43=imread('1.jpg');
I430=rgb2gray(I43);
I431=im2double(I430);
[m,n]=size(I430);
for i=1:m
for j=1:n
I432(i,j)=1-I431(i,j);
end
end
I433=im2uint8(I432);
imsho
s009.m
%灰度图像调整幅度分辨率 s009
clear;
I9=imread('1.jpg');
I90=rgb2gray(I9);
subplot(2,4,1),imshow(I90,256);
subplot(2,4,2),imshow(I90,128);
subplot(2,4,3),imshow(I90,64);
subplot(2,4,4),imshow(I90,32);
su