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.
0001 % makeGaussianPyramid - creates a Gaussian pyramid from map. 0002 % 0003 % pyr = makeGaussianPyramid(map,type) 0004 % Creates a Gaussian pyramid by blurring and subsampling 0005 % map repeatedly, as long as both width and height are 0006 % larger than 1. 0007 % type: 'dyadic' or 'sqrt2' 0008 % 0009 % pyr = makeGaussianPyramid(map,type,depth) 0010 % Creates at most depth levels. 0011 % 0012 % See also makeDyadicPyramid, makeSqrt2Pyramid, dataStructures. 0013 0014 % This file is part of the SaliencyToolbox - Copyright (C) 2006-2007 0015 % by Dirk B. Walther and the California Institute of Technology. 0016 % See the enclosed LICENSE.TXT document for the license agreement. 0017 % More information about this project is available at: 0018 % http://www.saliencytoolbox.net 0019 0020 function pyr = makeGaussianPyramid(map,type,varargin) 0021 0022 if (isempty(varargin)) depth = -1; 0023 else depth = varargin{1}; end 0024 0025 switch type 0026 case 'dyadic' 0027 pyr = makeDyadicPyramid(map,depth); 0028 case 'sqrt2' 0029 pyr = makeSqrt2Pyramid(map,depth); 0030 otherwise 0031 fatal(['Unknown pyramidType: ' type]); 0032 end