资源简介
关于gbvs算法的原版matlab代码,算法作者为大牛J. Harel
代码片段和文件信息
function [outmotionInfo] = gbvs(imgparamprevMotionInfo)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% This computes the GBVS map for an image and puts it in master_map. %
% %
% If this image is part of a video sequence motionInfo needs to be recycled in a %
% loop and information from the previous frame/image will be used if %
% “flicker“ or “motion“ channels are employed. %
% You need to initialize prevMotionInfo to [] for the first frame (see demo/flicker_motion_demo.m) %
% %
% input %
% - img can be a filename or image array (double or uint8 grayscale or rgb) %
% - (optional) param contains parameters for the algorithm (see makeGBVSParams.m) %
% %
% output structure ‘out‘. fields: %
% - master_map is the GBVS map for img. (.._resized is the same size as img) %
% - feat_maps contains the final individual feature maps normalized %
% - map_types contains a string description of each map in feat_map (resp. for each index) %
% - intermed_maps contains all the intermediate maps computed along the way (act. & norm.) %
% which are used to compute feat_maps which is then combined into master_map %
% - rawfeatmaps contains all the feature maps computed at the various scales %
% %
% Jonathan Harel Last Revised Aug 2008. jonharel@gmail.com %
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
if ( strcmp(class(img)‘char‘) == 1 ) img = imread(img); end
if ( strcmp(class(img)‘uint8‘) == 1 ) img = double(img)/255; end
if ( (size(img1) < 128) || (size(img2) < 128) )
fprintf(2‘GBVS Error: gbvs() meant to be used with images >= 128x128\n‘);
out = [];
return;
end
if ( (nargin == 1) || (~exist(‘param‘)) || isempty(param) ) param = makeGBVSParams; end
[grf
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-03-27 23:42 gbvs\
目录 0 2010-02-19 23:54 gbvs\demo\
文件 1693 2017-03-27 22:28 gbvs\demo\demonstration.m
目录 0 2018-03-13 15:46 __MACOSX\
目录 0 2018-03-13 15:46 __MACOSX\gbvs\
目录 0 2018-03-13 15:46 __MACOSX\gbvs\demo\
文件 212 2017-03-27 22:28 __MACOSX\gbvs\demo\._demonstration.m
文件 744 2017-03-27 22:35 gbvs\demo\flicker_motion_demo.m
文件 212 2017-03-27 22:35 __MACOSX\gbvs\demo\._flicker_motion_demo.m
文件 501 2010-02-19 23:54 gbvs\demo\simplest_demonstration.m
文件 212 2010-02-19 23:54 __MACOSX\gbvs\demo\._simplest_demonstration.m
文件 212 2010-02-19 23:54 __MACOSX\gbvs\._demo
目录 0 2017-04-14 00:23 gbvs\initcache\
文件 323369 2017-04-14 00:23 gbvs\initcache\29__32__m__2.mat
文件 1135590 2010-03-18 11:57 gbvs\initcache\40__38__m__2.mat
目录 0 2018-03-13 15:46 __MACOSX\gbvs\initcache\
文件 212 2010-03-18 11:57 __MACOSX\gbvs\initcache\._40__38__m__2.mat
文件 183556 2011-01-17 20:04 gbvs\initcache\32__24__m__2.mat
文件 212 2011-01-17 20:04 __MACOSX\gbvs\initcache\._32__24__m__2.mat
文件 60929 2010-03-18 12:19 gbvs\initcache\18__24__m__2.mat
文件 212 2010-03-18 12:19 __MACOSX\gbvs\initcache\._18__24__m__2.mat
文件 315222 2017-03-27 22:25 gbvs\initcache\32__29__m__2.mat
文件 207963 2010-03-18 12:19 gbvs\initcache\24__32__m__2.mat
文件 212 2010-03-18 12:19 __MACOSX\gbvs\initcache\._24__32__m__2.mat
文件 925911 2010-02-19 23:54 gbvs\initcache\35__40__m__2.mat
文件 212 2010-02-19 23:54 __MACOSX\gbvs\initcache\._35__40__m__2.mat
文件 374266 2010-03-18 12:33 gbvs\initcache\32__31__m__2.mat
文件 212 2010-03-18 12:33 __MACOSX\gbvs\initcache\._32__31__m__2.mat
文件 53317 2011-01-17 20:29 gbvs\initcache\24__18__m__2.mat
文件 212 2011-01-17 20:29 __MACOSX\gbvs\initcache\._24__18__m__2.mat
文件 272113 2011-01-17 19:39 gbvs\initcache\32__28__m__2.mat
............此处省略302个文件信息
- 上一篇:seislab 3.02
- 下一篇:蜂窝小区同频干扰的Matlab仿真
评论
共有 条评论