makegaussianpyramid.m

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

M
33
字号
% makeGaussianPyramid - creates a Gaussian pyramid from map.%% pyr = makeGaussianPyramid(map,type)%    Creates a Gaussian pyramid by blurring and subsampling %    map repeatedly, as long as both width and height are %    larger than 1.%       type: 'dyadic' or 'sqrt2'%% pyr = makeGaussianPyramid(map,type,depth)%    Creates at most depth levels.%% See also makeDyadicPyramid, makeSqrt2Pyramid, 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 pyr = makeGaussianPyramid(map,type,varargin)if (isempty(varargin)) depth = -1;else depth = varargin{1}; endswitch type  case 'dyadic'    pyr = makeDyadicPyramid(map,depth);  case 'sqrt2'    pyr = makeSqrt2Pyramid(map,depth);  otherwise    fatal(['Unknown pyramidType: ' type]);end

⌨️ 快捷键说明

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