• 大小: 1MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-11-14
  • 语言: 其他
  • 标签:

资源简介

Graph-Based Visual Saliency显著性检测代码

资源截图

代码片段和文件信息


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    %设定默

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       8690  2009-10-07 18:28  gbvs\gbvs.m

     文件        100  2008-06-26 04:29  gbvs\gbvs_install.m

     文件       7042  2008-11-03 18:27  gbvs\readme.txt

     文件       8708  2009-11-03 16:03  gbvs\gbvs.asv

     文件        182  2008-04-25 04:26  gbvs\util\areaROC.m

     文件        282  2007-07-09 17:03  gbvs\util\getBestRows.m

     文件       4308  2008-08-25 05:23  gbvs\util\getFeatureMaps.m

     文件        111  2007-07-09 17:03  gbvs\util\getIntelligentThresholds.m

     文件        931  2008-06-26 04:40  gbvs\util\heatmap_overlay.m

     文件         81  2007-07-09 17:03  gbvs\util\linearmap.m

     文件        765  2008-06-05 20:21  gbvs\util\makeFixationMask.m

     文件        630  2007-07-09 17:03  gbvs\util\mycombnk.m

     文件       1810  2008-06-25 20:51  gbvs\util\myContrast.cc

     文件       6656  2009-11-03 09:18  gbvs\util\myContrast.mexw32

     文件        296  2008-11-03 18:20  gbvs\util\myconv2.m

     文件        129  2007-07-09 17:03  gbvs\util\mygetrgb.m

     文件        490  2008-06-26 04:23  gbvs\util\mymessage.m

     文件         82  2008-11-03 18:20  gbvs\util\padImage.m

     文件        401  2008-11-03 18:20  gbvs\util\padImageVH.m

     文件       1848  2008-06-05 20:36  gbvs\util\rocSal.m

     文件        526  2008-06-05 20:19  gbvs\util\rocScoreSaliencyVsFixations.m

     文件        453  2008-08-25 04:31  gbvs\util\shiftImage.m

     文件         92  2008-06-26 04:37  gbvs\util\show_imgnmap.m

     文件        203  2009-11-03 09:14  gbvs\util\mypath.mat

     文件        501  2009-10-03 19:30  gbvs\util\mymessage.asv

     文件        384  2008-08-25 03:33  gbvs\util\featureChannels\C_color.m

     文件        234  2008-08-25 04:17  gbvs\util\featureChannels\F_flicker.m

     文件        218  2008-08-25 03:33  gbvs\util\featureChannels\I_intensity.m

     文件        655  2008-08-25 05:20  gbvs\util\featureChannels\M_motion.m

     文件        494  2008-11-03 18:22  gbvs\util\featureChannels\O_orientation.m

............此处省略72个文件信息

评论

共有 条评论