資源簡介
論文<>的matlab代碼,已執行通過。
代碼片段和文件信息
function?[?img_out?]?=?Center_weight(?img_inyu_value?)
%UNtitleD?Summary?of?this?function?goes?here
%???Detailed?explanation?goes?here
img_in=mat2gray(img_in);
[hw]=size(img_in);
[rowcol]=find(img_in>yu_value);%找到所有大于閾值的點,記錄坐標
l=length(row);
a(1:)=row;
a(2:)=col;
for?i0=1:h
????for?j0=1:w
????????
??????for?i=1:l
????????c_store(i)=norm(a(:i)-[i0;j0]);
??????end
??????min_c(i0j0)=min(c_store);
??????
????end
end
???min_c_rang=mat2gray(min_c);
???img_out=img_in.*(1-min_c_rang);
end
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????52874??2009-01-07?20:27??context?aware?saliency?detection?副本\003.jpg
?????文件?????358658??2009-10-20?19:27??context?aware?saliency?detection?副本\bird.jpg
?????文件????????542??2014-03-21?00:25??context?aware?saliency?detection?副本\Center_weight.m
?????文件???????3351??2014-03-22?19:35??context?aware?saliency?detection?副本\distanceValueMap_search_onescale.m
?????文件???????4056??2014-03-23?13:52??context?aware?saliency?detection?副本\distanceValueMap_search_onescale_2.m
?????文件????????670??2014-03-20?00:50??context?aware?saliency?detection?副本\gaussianSmooth.m
?????文件???????1965??2014-03-20?15:31??context?aware?saliency?detection?副本\get4Scale.m
?????文件???????1552??2014-03-16?14:20??context?aware?saliency?detection?副本\Lab2RGB.m
?????文件???????1854??2014-09-11?16:36??context?aware?saliency?detection?副本\maintest1.asv
?????文件???????1854??2014-09-11?16:36??context?aware?saliency?detection?副本\maintest1.m
?????文件???????1430??2014-03-20?23:42??context?aware?saliency?detection?副本\pre_rgb2lab.m
?????文件???????1743??2014-03-16?14:17??context?aware?saliency?detection?副本\RGB2Lab.m
?????目錄??????????0??2014-09-11?16:28??context?aware?saliency?detection?副本
-----------?---------??----------?-----??----
???????????????430549????????????????????13
評論
共有 條評論