gaborfiltermap.m

来自「显著区域检测。求的图像中感兴趣区域的位置」· M 代码 · 共 36 行

M
36
字号
% gaborFilterMap - compute a gabor-filtered version of a map.%% result = gaborFilterMap(map,gaborParams,angle)%    Convolves the map data with a gabor filter with%    gaborParams at orientation angle.%%    gaborParams is a struct with the following fields:%       filterPeriod - the period of the filter in pixels%       elongation - the ratio of length versus width%       filterSize - the size of the filter in pixels%       stddev - the standard deviation of the Gaussian in pixels%% See also makeGaborFilter, makeOrientationPyramid, defaultSaliencyParams.% This file is part of the SaliencyToolbox - Copyright (C) 2006-2007% by Dirk B. Walther and the California Institute of Technology.% See the enclosed LICENSE.TXT document for the license agreement. % More information about this project is available at: % http://www.saliencytoolbox.netfunction resultMap = gaborFilterMap(map,gaborParams,angle)% create the filtersgf = makeGaborFilter(gaborParams, angle);% convolve the map with the filtersfor p = 1:length(gaborParams.phases)  fres(:,:,p) = mexConv2PreserveEnergy(map.data,gf(:,:,p));  endresultMap.origImage = map.origImage;resultMap.label = sprintf('Gabor%3.1f',angle);resultMap.data = sum(abs(fres),3);resultMap.date = timeString;resultMap.parameters.gaborParams = gaborParams;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?