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

资源简介

GBVS经典的显著性检测方法,可以与自己所做的显著性方法进行比较

资源截图

代码片段和文件信息

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  2016-06-25 12:17  gbvs\
     文件      264672  2012-12-03 10:10  gbvs\2007 Graph-based Visual Saliency .pdf
     文件     1334456  2012-12-03 10:16  gbvs\2012 PAMI Image signature highlighting sparse salient regions .pdf
     目录           0  2016-06-25 12:28  gbvs\gbvs\
     目录           0  2013-02-25 08:57  gbvs\gbvs\algsrc\
     文件        2668  2010-02-19 23:54  gbvs\gbvs\algsrc\connectMatrix.m
     文件        2137  2010-02-19 23:54  gbvs\gbvs\algsrc\distanceMatrix.m
     文件         942  2010-02-19 23:54  gbvs\gbvs\algsrc\formMapPyramid.m
     文件         110  2010-02-19 23:54  gbvs\gbvs\algsrc\getDims.m
     文件        1997  2010-02-19 23:54  gbvs\gbvs\algsrc\graphsalapply.m
     文件        1026  2010-02-19 23:54  gbvs\gbvs\algsrc\graphsalinit.m
     文件         104  2010-02-19 23:54  gbvs\gbvs\algsrc\indexmatrix.m
     文件        1808  2012-03-01 11:24  gbvs\gbvs\algsrc\initGBVS.m
     文件         945  2010-02-19 23:54  gbvs\gbvs\algsrc\makeLocationMap.m
     文件        1342  2010-02-19 23:54  gbvs\gbvs\algsrc\mexArrangeLinear.cc
     文件        6982  2010-02-19 23:54  gbvs\gbvs\algsrc\mexArrangeLinear.mexa64
     文件        5265  2010-02-19 23:54  gbvs\gbvs\algsrc\mexArrangeLinear.mexglx
     文件        8816  2010-03-02 17:47  gbvs\gbvs\algsrc\mexArrangeLinear.mexmaci
     文件        8736  2010-03-02 22:36  gbvs\gbvs\algsrc\mexArrangeLinear.mexmaci64
     文件        6144  2010-02-19 23:54  gbvs\gbvs\algsrc\mexArrangeLinear.mexw32
     文件        8192  2010-02-19 23:54  gbvs\gbvs\algsrc\mexArrangeLinear.mexw64
     文件        1836  2010-02-19 23:54  gbvs\gbvs\algsrc\mexAssignWeights.cc
     文件        7240  2010-02-19 23:54  gbvs\gbvs\algsrc\mexAssignWeights.mexa64
     文件        5325  2010-02-19 23:54  gbvs\gbvs\algsrc\mexAssignWeights.mexglx
     文件        8796  2010-03-02 17:47  gbvs\gbvs\algsrc\mexAssignWeights.mexmaci
     文件        8720  2010-03-02 22:36  gbvs\gbvs\algsrc\mexAssignWeights.mexmaci64
     文件        6144  2010-02-19 23:54  gbvs\gbvs\algsrc\mexAssignWeights.mexw32
     文件        7680  2010-02-19 23:54  gbvs\gbvs\algsrc\mexAssignWeights.mexw64
     文件         645  2010-02-19 23:54  gbvs\gbvs\algsrc\mexColumnNormalize.cc
     文件        6758  2010-02-19 23:54  gbvs\gbvs\algsrc\mexColumnNormalize.mexa64
     文件        4945  2010-02-19 23:54  gbvs\gbvs\algsrc\mexColumnNormalize.mexglx
............此处省略146个文件信息

评论

共有 条评论

相关资源