資源簡介
saliency detection on light field-cvpr 2014 code
代碼片段和文件信息
clear;
close?all;?
addpath(‘.\superpixel\‘);
addpath(‘.\LightfieldSaliency\‘);
%the?dir?of?all?focus?image
Dir_image=‘data\imgs\‘;
%the?dir?of?focus?stack?images?and?the?output?focusmaps
FocusStackDir.image=‘data\focus_imgs\‘;
FocusStackDir.result=‘result\focus_result\‘;
%uncommand?the?following?tow?lines?when?first?running?the?code
%?run(‘.\superpixel\SEGcode\edison_matlab_interface\compile_edison_wrapper.m‘)
%?run(‘.\superpixel\SEGcode\matlabPyrTools\MEX\compilePyrTools.m‘)
%get?image
image_list=dir([Dir_image?‘*‘?‘jpg‘]);
for?imNum=1:length(image_list)
????
????imNum
????im_dir=[Dir_image?image_list(imNum).name];?????
????img=imread(im_dir);
????
????%image?name?without?extention
????im_name=image_list(imNum).name;
????im_name=im_name(1:find(im_name==‘.‘)-1);
????
????%get?superpixel
????sp=superpixel(‘result\sp\‘im_nameimg);
????
????%light?field?saliency
????saliencyMap=LihgtFieldSaliency(im_nameFocusStackDirsp);
????
????%Save?result
????imwrite(saliencyMap[‘result\sal\‘?im_name?‘_LFS.png‘]);?
end
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????68679??2014-04-14?19:48??Code_LightFieldSaliency\data\focus_imgs\10__refocus_00.jpg
?????文件??????79053??2014-04-14?19:48??Code_LightFieldSaliency\data\focus_imgs\10__refocus_01.jpg
?????文件??????81642??2014-04-14?19:48??Code_LightFieldSaliency\data\focus_imgs\10__refocus_02.jpg
?????文件??????79755??2014-04-14?19:48??Code_LightFieldSaliency\data\focus_imgs\10__refocus_03.jpg
?????文件??????75750??2014-04-14?19:48??Code_LightFieldSaliency\data\focus_imgs\10__refocus_04.jpg
?????文件??????81157??2014-04-14?19:48??Code_LightFieldSaliency\data\focus_imgs\10__refocus_05.jpg
?????文件??????84650??2014-04-14?19:48??Code_LightFieldSaliency\data\focus_imgs\10__refocus_06.jpg
?????文件??????87594??2014-04-14?19:48??Code_LightFieldSaliency\data\focus_imgs\10__refocus_07.jpg
?????文件??????81333??2014-04-14?19:48??Code_LightFieldSaliency\data\focus_imgs\10__refocus_08.jpg
?????文件??????90064??2014-04-14?19:48??Code_LightFieldSaliency\data\focus_imgs\10__refocus_09.jpg
?????文件??????77063??2014-04-14?19:48??Code_LightFieldSaliency\data\focus_imgs\10__refocus_10.jpg
?????文件?????112662??2014-04-14?19:48??Code_LightFieldSaliency\data\focus_imgs\12__refocus_00.jpg
?????文件?????119784??2014-04-14?19:48??Code_LightFieldSaliency\data\focus_imgs\12__refocus_01.jpg
?????文件?????131975??2014-04-14?19:48??Code_LightFieldSaliency\data\focus_imgs\12__refocus_02.jpg
?????文件?????106455??2014-04-14?19:48??Code_LightFieldSaliency\data\focus_imgs\12__refocus_03.jpg
?????文件?????102838??2014-04-14?19:48??Code_LightFieldSaliency\data\focus_imgs\12__refocus_04.jpg
?????文件?????102520??2014-04-14?19:48??Code_LightFieldSaliency\data\focus_imgs\12__refocus_05.jpg
?????文件?????115496??2014-04-14?19:48??Code_LightFieldSaliency\data\focus_imgs\12__refocus_06.jpg
?????文件?????117434??2014-04-14?19:48??Code_LightFieldSaliency\data\focus_imgs\12__refocus_07.jpg
?????文件?????135004??2014-04-14?19:48??Code_LightFieldSaliency\data\focus_imgs\12__refocus_08.jpg
?????文件?????131787??2014-04-14?19:48??Code_LightFieldSaliency\data\focus_imgs\12__refocus_09.jpg
?????文件?????102288??2014-04-14?19:48??Code_LightFieldSaliency\data\focus_imgs\12__refocus_10.jpg
?????文件?????133498??2014-04-14?19:48??Code_LightFieldSaliency\data\focus_imgs\14__refocus_00.jpg
?????文件?????132887??2014-04-14?19:48??Code_LightFieldSaliency\data\focus_imgs\14__refocus_01.jpg
?????文件?????152599??2014-04-14?19:48??Code_LightFieldSaliency\data\focus_imgs\14__refocus_02.jpg
?????文件?????167067??2014-04-14?19:48??Code_LightFieldSaliency\data\focus_imgs\14__refocus_03.jpg
?????文件?????156664??2014-04-14?19:48??Code_LightFieldSaliency\data\focus_imgs\14__refocus_04.jpg
?????文件?????113547??2014-04-14?19:48??Code_LightFieldSaliency\data\focus_imgs\26__refocus_00.jpg
?????文件?????136081??2014-04-14?19:48??Code_LightFieldSaliency\data\focus_imgs\26__refocus_01.jpg
?????文件?????137392??2014-04-14?19:48??Code_LightFieldSaliency\data\focus_imgs\26__refocus_02.jpg
............此處省略577個文件信息
- 上一篇:基于最小二乘法的橢圓擬合程序
- 下一篇:機器學習正負樣本集(車牌3000+)
評論
共有 條評論