91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

有多模板和單模板兩種方法,MATLAB實(shí)現(xiàn)。主要思想為K近鄰法。

資源截圖

代碼片段和文件信息

[namepath]=uigetfile(‘*.bmp‘);%打開一個(gè)當(dāng)前路徑下的bmp格式圖片,把名稱和路徑傳來
pathname=strcat(pathname);
I=imread(pathname);
b=rgb2gray(I);

%先判斷一一下輸入圖片是否是要求的像素值
a=[8?16?32?64?128?0];%當(dāng)為128時(shí),若不加0元素,同樣會(huì)報(bào)錯(cuò)。
[lengthwidth]=size(b);%注意要是灰度圖像,如果為真彩圖像,width會(huì)乘三,發(fā)生錯(cuò)誤
length=round(length);
width=round(width);
%length=34;
%width=23;
i=1;?
?m1=length-a(1);
?n1=width-a(1);??
while??m1~=0|n1~=0
???????m1=length-a(i);
???????n1=width-a(i);?
????????i=i+1;
??????if?i>6breakend
end
if?i>6
??????errordlg(‘請(qǐng)按要求輸入圖片‘‘輸入不符合要求‘‘on‘);
else?m=length;
????n=width;
end
??%把圖片顯示出來

b1=imnoise(b‘gaussian‘00.002);???%?對(duì)輸入圖像加上均值為0方差為0.002的高斯噪聲

b1Zoom=imresize(b1[240240]‘bilinear‘);
imshow(b1Zoom);

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2010-11-08?16:15??K近鄰法??模板?數(shù)字識(shí)別\
?????文件?????????826??2010-10-31?15:04??K近鄰法??模板?數(shù)字識(shí)別\daishibie.m
?????文件??????????29??2010-10-29?19:49??K近鄰法??模板?數(shù)字識(shí)別\GUI_clear.m
?????文件????????4460??2010-11-04?22:05??K近鄰法??模板?數(shù)字識(shí)別\index.m
?????文件????????1308??2010-11-04?22:24??K近鄰法??模板?數(shù)字識(shí)別\main1.m
?????文件????????1505??2010-11-04?21:35??K近鄰法??模板?數(shù)字識(shí)別\main2.m
?????目錄???????????0??2010-11-08?16:15??K近鄰法??模板?數(shù)字識(shí)別\單模板\
?????目錄???????????0??2010-11-08?16:15??K近鄰法??模板?數(shù)字識(shí)別\單模板\128\
?????文件???????50070??2010-10-30?19:46??K近鄰法??模板?數(shù)字識(shí)別\單模板\128\0.bmp
?????文件???????50070??2010-10-30?19:49??K近鄰法??模板?數(shù)字識(shí)別\單模板\128\1.bmp
?????文件???????50070??2010-10-30?19:51??K近鄰法??模板?數(shù)字識(shí)別\單模板\128\2.bmp
?????文件???????50070??2010-10-30?19:51??K近鄰法??模板?數(shù)字識(shí)別\單模板\128\3.bmp
?????文件???????50070??2010-10-30?19:53??K近鄰法??模板?數(shù)字識(shí)別\單模板\128\4.bmp
?????文件???????50070??2010-10-30?19:54??K近鄰法??模板?數(shù)字識(shí)別\單模板\128\5.bmp
?????文件???????50070??2010-10-30?19:57??K近鄰法??模板?數(shù)字識(shí)別\單模板\128\6.bmp
?????文件???????50070??2010-10-30?19:58??K近鄰法??模板?數(shù)字識(shí)別\單模板\128\7.bmp
?????文件???????50070??2010-10-30?19:58??K近鄰法??模板?數(shù)字識(shí)別\單模板\128\8.bmp
?????文件???????50070??2010-10-30?19:55??K近鄰法??模板?數(shù)字識(shí)別\單模板\128\9.bmp
?????目錄???????????0??2010-11-08?16:15??K近鄰法??模板?數(shù)字識(shí)別\單模板\16\
?????文件????????1686??2010-10-30?11:15??K近鄰法??模板?數(shù)字識(shí)別\單模板\16\0.bmp
?????文件????????1686??2010-10-30?11:16??K近鄰法??模板?數(shù)字識(shí)別\單模板\16\1.bmp
?????文件????????1686??2010-10-30?11:16??K近鄰法??模板?數(shù)字識(shí)別\單模板\16\2.bmp
?????文件????????1686??2010-10-30?11:17??K近鄰法??模板?數(shù)字識(shí)別\單模板\16\3.bmp
?????文件????????1686??2010-10-30?11:17??K近鄰法??模板?數(shù)字識(shí)別\單模板\16\4.bmp
?????文件????????1686??2010-10-30?11:18??K近鄰法??模板?數(shù)字識(shí)別\單模板\16\5.bmp
?????文件????????1686??2010-10-30?11:18??K近鄰法??模板?數(shù)字識(shí)別\單模板\16\6.bmp
?????文件????????1686??2010-10-30?11:19??K近鄰法??模板?數(shù)字識(shí)別\單模板\16\7.bmp
?????文件????????1686??2010-10-30?11:19??K近鄰法??模板?數(shù)字識(shí)別\單模板\16\8.bmp
?????文件????????1686??2010-10-30?11:19??K近鄰法??模板?數(shù)字識(shí)別\單模板\16\9.bmp
?????目錄???????????0??2010-11-08?16:15??K近鄰法??模板?數(shù)字識(shí)別\單模板\32\
?????文件????????3990??2010-10-30?16:26??K近鄰法??模板?數(shù)字識(shí)別\單模板\32\0.bmp
............此處省略539個(gè)文件信息

評(píng)論

共有 條評(píng)論

相關(guān)資源