资源简介
gbvs 显著区域提取算法 matlab编写,可以直接运行
代码片段和文件信息
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 2012-07-24 09:30 gbvs\
目录 0 2012-07-24 09:13 gbvs\algsrc\
文件 2668 2010-02-20 07:54 gbvs\algsrc\connectMatrix.m
文件 2137 2010-02-20 07:54 gbvs\algsrc\distanceMatrix.m
文件 942 2010-02-20 07:54 gbvs\algsrc\formMapPyramid.m
文件 110 2010-02-20 07:54 gbvs\algsrc\getDims.m
文件 1997 2010-02-20 07:54 gbvs\algsrc\graphsalapply.m
文件 1026 2010-02-20 07:54 gbvs\algsrc\graphsalinit.m
文件 104 2010-02-20 07:54 gbvs\algsrc\indexmatrix.m
文件 1772 2012-07-24 09:13 gbvs\algsrc\initGBVS.m
文件 945 2010-02-20 07:54 gbvs\algsrc\makeLocationMap.m
文件 1342 2010-02-20 07:54 gbvs\algsrc\mexArrangeLinear.cc
文件 6982 2010-02-20 07:54 gbvs\algsrc\mexArrangeLinear.mexa64
文件 5265 2010-02-20 07:54 gbvs\algsrc\mexArrangeLinear.mexglx
文件 8816 2010-03-03 01:47 gbvs\algsrc\mexArrangeLinear.mexmaci
文件 8736 2010-03-03 06:36 gbvs\algsrc\mexArrangeLinear.mexmaci64
文件 6144 2010-02-20 07:54 gbvs\algsrc\mexArrangeLinear.mexw32
文件 8192 2010-02-20 07:54 gbvs\algsrc\mexArrangeLinear.mexw64
文件 1836 2010-02-20 07:54 gbvs\algsrc\mexAssignWeights.cc
文件 7240 2010-02-20 07:54 gbvs\algsrc\mexAssignWeights.mexa64
文件 5325 2010-02-20 07:54 gbvs\algsrc\mexAssignWeights.mexglx
文件 8796 2010-03-03 01:47 gbvs\algsrc\mexAssignWeights.mexmaci
文件 8720 2010-03-03 06:36 gbvs\algsrc\mexAssignWeights.mexmaci64
文件 6144 2010-02-20 07:54 gbvs\algsrc\mexAssignWeights.mexw32
文件 7680 2010-02-20 07:54 gbvs\algsrc\mexAssignWeights.mexw64
文件 645 2010-02-20 07:54 gbvs\algsrc\mexColumnNormalize.cc
文件 6758 2010-02-20 07:54 gbvs\algsrc\mexColumnNormalize.mexa64
文件 4945 2010-02-20 07:54 gbvs\algsrc\mexColumnNormalize.mexglx
文件 8780 2010-03-03 01:47 gbvs\algsrc\mexColumnNormalize.mexmaci
文件 8704 2010-03-03 06:36 gbvs\algsrc\mexColumnNormalize.mexmaci64
文件 6144 2010-02-20 07:54 gbvs\algsrc\mexColumnNormalize.mexw32
............此处省略127个文件信息
评论
共有 条评论