資源簡介
matlab數字圖像處理實驗指導書及源代碼,超棒的學習資料!!!
代碼片段和文件信息
clc;
fid=fopen(‘d:/img/fing_128.img‘‘r‘);
f=fread(fid[128128]‘uchar‘);
subplot(211);
imshow(f[0255]);
q=zeros(1256);
for?x=1:128
????for?y=1:128
????????q(f(xy)+1)=q(f(xy)+1)+1;
????end
end
s=q./(128*128);
X=0:255;
subplot(212);
bar(Xs‘);
figure;
t=zeros(1256);
t(1)=s(1);
for?i=2:256
????t(i)=t(i-1)+s(i);
end
subplot(211);
bar(Xt‘);
t0=floor(255*t+0.5);
subplot(212);
bar(Xt0‘);
figure;
t1=zeros(1256);
for?i=1:256
????t1(t0(i)+1)=s(i)+t1(t0(i)+1);
end
subplot(211);
bar(Xt1‘);
f1=zeros(128128)
for?x=1:128
????for?y=1:128
????????f1(xy)=t0(f(xy)+1);
????end
end
subplot(212);
imshow(f1[0255]);
????????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????682??2007-04-25?14:21??XIBAO.m
?????文件?????955904??2007-03-26?17:45??數字圖像處理實驗指導書.doc
?????文件????????412??2007-04-25?15:10??ruihua.m
?????文件????????955??2007-05-24?15:41??jiance.m
?????文件??????16384??2007-03-26?17:36??img\cell_128.img
?????文件??????16384??2007-03-26?17:36??img\fing_128.img
?????文件??????65536??2007-03-26?17:32??img\lena.img
?????文件????????692??2007-04-25?14:16??fing.m
?????文件????????708??2007-04-23?19:48??lena.m
?????文件????????746??2007-04-25?15:00??pinghua.m
?????文件????????633??2007-04-26?15:22??pinhua.m
?????文件????????770??2007-04-23?19:01??sanshi.m
?????目錄??????????0??2007-04-29?10:38??img
?????文件????????218??2007-01-22?19:53??www.pudn.com.txt
-----------?---------??----------?-----??----
??????????????1060024????????????????????14
- 上一篇:ISAR轉臺成像程序
- 下一篇:MATLAB小車跟蹤
評論
共有 條評論