gbvs算法的matlab代码


关于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
‘);
    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  gbvsdemo
     文件        1693  2017-03-27 22:28  gbvsdemodemonstration.m
     目录           0  2018-03-13 15:46  __MACOSX
     目录           0  2018-03-13 15:46  __MACOSXgbvs
     目录           0  2018-03-13 15:46  __MACOSXgbvsdemo
     文件         212  2017-03-27 22:28  __MACOSXgbvsdemo._demonstration.m
     文件         744  2017-03-27 22:35  gbvsdemoflicker_motion_demo.m
     文件         212  2017-03-27 22:35  __MACOSXgbvsdemo._flicker_motion_demo.m
     文件         501  2010-02-19 23:54  gbvsdemosimplest_demonstration.m
     文件         212  2010-02-19 23:54  __MACOSXgbvsdemo._simplest_demonstration.m
     文件         212  2010-02-19 23:54  __MACOSXgbvs._demo
     目录           0  2017-04-14 00:23  gbvsinitcache
     文件      323369  2017-04-14 00:23  gbvsinitcache29__32__m__2.mat
     文件     1135590  2010-03-18 11:57  gbvsinitcache40__38__m__2.mat
     目录           0  2018-03-13 15:46  __MACOSXgbvsinitcache
     文件         212  2010-03-18 11:57  __MACOSXgbvsinitcache._40__38__m__2.mat
     文件      183556  2011-01-17 20:04  gbvsinitcache32__24__m__2.mat
     文件         212  2011-01-17 20:04  __MACOSXgbvsinitcache._32__24__m__2.mat
     文件       60929  2010-03-18 12:19  gbvsinitcache18__24__m__2.mat
     文件         212  2010-03-18 12:19  __MACOSXgbvsinitcache._18__24__m__2.mat
     文件      315222  2017-03-27 22:25  gbvsinitcache32__29__m__2.mat
     文件      207963  2010-03-18 12:19  gbvsinitcache24__32__m__2.mat
     文件         212  2010-03-18 12:19  __MACOSXgbvsinitcache._24__32__m__2.mat
     文件      925911  2010-02-19 23:54  gbvsinitcache35__40__m__2.mat
     文件         212  2010-02-19 23:54  __MACOSXgbvsinitcache._35__40__m__2.mat
     文件      374266  2010-03-18 12:33  gbvsinitcache32__31__m__2.mat
     文件         212  2010-03-18 12:33  __MACOSXgbvsinitcache._32__31__m__2.mat
     文件       53317  2011-01-17 20:29  gbvsinitcache24__18__m__2.mat
     文件         212  2011-01-17 20:29  __MACOSXgbvsinitcache._24__18__m__2.mat
     文件      272113  2011-01-17 19:39  gbvsinitcache32__28__m__2.mat
............此处省略302个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)