資源簡介
本資源是清華大學程明明在2011年CVPR上發表的一篇關于視覺顯著性的代碼,資源包括原文及matlab版本的代碼。
代碼片段和文件信息
clear?all;
address?=?‘E:\Programs\清華大學改進性實驗\‘;
srcpath?=?strcat(address?‘src\‘);
resultpath?=?strcat(address‘result\‘);
files?=?dir(‘E:\Programs\清華大學改進性實驗\src\*.jpg‘);
leng?=?length(files);
??
for?in?=?1?:?leng
????
????pic?=?strcat(srcpath?files(in1).name);
????orpic?=?imread(pic);????
????
????[row?column?nn]?=?size(orpic);
????
%???生成調色板pallet(colornumber)
????pallet?=?zeros(row*column2);
????w?=?[12*12121];
????idx?=?uint32(1);
????SUM?=?uint32(0);
????RGBSUM?=?zeros(rowcolumn);
????for?i?=?1?:?row
???????for?j?=?1?:?column
???????????a1?=?floor((double(orpic(ij1))/255)*(12-0.0001))*w(3);
???????????a2?=?floor((double(orpic(ij2))/255)*(12-0.0001))*w(2);
???????????a3?=?floor((double(orpic(ij3))/255)*(12-0.0001))*w(1);
???????????SUM?=?int
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????6783??2012-02-27?17:10??GetHC.m
?????文件????15692210??2011-11-16?17:12??Global?Contrast?ba
評論
共有 條評論