📄 defaultsaliencyparams.m
字号:
% defaultSaliencyParams - returns a default salParams structure.%% params = defaultSaliencyParams% Returns a default structure with saliency parameters.%% params = defaultSaliencyParams(pyramidType)% Initializes parameters for a particular pyramidType:% 'dyadic' - pyramids with downsampling by a factor of 2 (default)% 'sqrt2' - pyramids with downsampling by a factor of sqrt(2)% This makes a difference for the levels for the computation of the% center-surround differences.%% params = defaultSaliencyParams(...,imgSize)% Initializes params.foaSize to 1/6*min(w,h) (default: -1).% This is only important for params.IORtype='disk'.%% See also runSaliency, makeSaliencyMap, estimateShape, applyIOR, % removeColorFeatures, winnerToImgCoords, dataStructures.% 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 params = defaultSaliencyParams(varargin)% this is only important for IORtype='disk'.params.foaSize = -1;% one of: 'dyadic','sqrt2'params.pyramidType = 'dyadic';% scan the argumentsfor i = 1:length(varargin) switch class(varargin{i}) case 'double' params.foaSize = round(max(varargin{i}(1:2)) / 6); case 'char' params.pyramidType = varargin{i}; otherwise fatal(['Unknown data type for this function: ' class(varargin{i})]); endend% a cell array with a combination of: % 'Color','Intensities','Orientations','Hue','Skin','TopDown'params.features = {'Color','Intensities','Orientations'};% the weights in the same order as params.featuresparams.weights = [1 1 1];% one of: 'shape','disk','None'params.IORtype = 'shape';% one of: 'None','shapeSM','shapeCM','shapeFM','shapePyr'%params.shapeMode = 'shapePyr';params.shapeMode = 'shapeFM';% the pyramid level parametersparams.levelParams = defaultLevelParams(params.pyramidType);% one of: 'None','LocalMax','Iterative'params.normtype = 'Iterative';% number of iterations for Iterative normalizationparams.numIter = 3;% 1 for using random jitter in converting from saliency map % coordinates to image coordinates,% 0 for not using random jitterparams.useRandom = 1;% one of: 'Fast','LTU'params.segmentComputeType = 'Fast';params.smOutputRange = 1e-9;params.noiseAmpl = 1e-17;params.noiseConst = 1e-14;% parameters for the gabor filters for orientation mapsparams.gaborParams = defaultGaborParams;% angles (in degrees) for orientation mapsparams.oriAngles = [0 45 90 135];% visualizationMode: 'Contour', 'ContrastModulate', or 'None'params.visualizationStyle = 'Contour';
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -