資源簡介
本源代碼實現的功能:圖片庫中有若干張圖像,現輸入一張圖片想要在圖片庫中找到并輸出與輸入圖片類似的圖片

代碼片段和文件信息
function?CBIR_featurecalc()
%?EE6850?HW3?Content-based?Image?Retrieval
%?CBIR_featurecalc()?---?feature?calculation?
%?input:
%?output:
%???Feature?vectors?of?each?image
%???????saved?as?a?struct?in?.mat?file:?imgname.feature_name
%???????current?supported?features:?
%?some?global?constants
DEBUG?=?0;
imgdir?=?‘F:\圖像檢索20130802035\images2\‘;
fetdir?=?‘F:\圖像檢索20130802035\feature\‘;
imgno?=?1:655;
imgsuffix?=?‘.jpg‘;
%?read?each?image?calculate?the?feature?struct
for?i=imgno
????imgrgb=imread([imgdirnum2str(i)imgsuffix]);
????if?DEBUG
????????imshow(imgrgb);
????end
????
????feature.wavelet=wavelet(imgrgb);
?
????save([fetdirnum2str(i)‘.mat‘]?‘feature‘);
end
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2015-05-06?20:11??圖像檢索\
?????文件?????????710??2013-12-29?01:14??圖像檢索\CBIR_featurecalc.m
?????文件?????????388??2013-12-29?01:29??圖像檢索\CBIR_L2dist.asv
?????文件?????????388??2013-12-29?01:34??圖像檢索\CBIR_L2dist.m
?????文件????????1122??2013-12-26?12:22??圖像檢索\CBIR_Query1.asv
?????文件?????????971??2013-12-29?01:15??圖像檢索\CBIR_Query1.m
?????目錄???????????0??2015-05-06?20:11??圖像檢索\feature\
?????文件?????????429??2013-12-26?13:13??圖像檢索\feature\1.mat
?????文件?????????429??2013-12-26?13:13??圖像檢索\feature\10.mat
?????文件?????????427??2013-12-26?13:13??圖像檢索\feature\100.mat
?????文件?????????428??2013-12-26?13:13??圖像檢索\feature\101.mat
?????文件?????????426??2013-12-26?13:13??圖像檢索\feature\102.mat
?????文件?????????426??2013-12-26?13:13??圖像檢索\feature\103.mat
?????文件?????????427??2013-12-26?13:13??圖像檢索\feature\104.mat
?????文件?????????427??2013-12-26?13:13??圖像檢索\feature\105.mat
?????文件?????????427??2013-12-26?13:13??圖像檢索\feature\106.mat
?????文件?????????427??2013-12-26?13:13??圖像檢索\feature\107.mat
?????文件?????????427??2013-12-26?13:13??圖像檢索\feature\108.mat
?????文件?????????427??2013-12-26?13:13??圖像檢索\feature\109.mat
?????文件?????????425??2013-12-26?13:13??圖像檢索\feature\11.mat
?????文件?????????428??2013-12-26?13:13??圖像檢索\feature\110.mat
?????文件?????????427??2013-12-26?13:13??圖像檢索\feature\111.mat
?????文件?????????427??2013-12-26?13:13??圖像檢索\feature\112.mat
?????文件?????????429??2013-12-26?13:13??圖像檢索\feature\113.mat
?????文件?????????428??2013-12-26?13:13??圖像檢索\feature\114.mat
?????文件?????????427??2013-12-26?13:13??圖像檢索\feature\115.mat
?????文件?????????427??2013-12-26?13:13??圖像檢索\feature\116.mat
?????文件?????????427??2013-12-26?13:13??圖像檢索\feature\117.mat
?????文件?????????427??2013-12-26?13:13??圖像檢索\feature\118.mat
?????文件?????????424??2013-12-26?13:13??圖像檢索\feature\119.mat
?????文件?????????427??2013-12-26?13:13??圖像檢索\feature\12.mat
............此處省略1291個文件信息
評論
共有 條評論