📄 makedyadicpyramid.m
字号:
% makeDyadicPyramid - creates a dyadic Gaussian pyramid.%% pyr = makeDyadicPyramid(map)% Creates a Gaussian pyramid by blurring and subsampling % map by a factor of 2 repeatedly, as long as both width % and height are larger than 1.%% pyr = makeDyadicPyramid(map,depth)% Creates at most depth levels.%% See also mexGaussianSubsample, makeGaussianPyramid, 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 = makeDyadicPyramid(map,varargin)if (isempty(varargin)) depth = -1;else depth = varargin{1}; endlab = map.label;pyr.origImage = map.origImage;pyr.label = lab;pyr.type = 'dyadic';map.label = [lab '-1'];map.parameters.type = 'dyadic';pyr.levels(1) = map;n = 1;while (min(size(pyr.levels(n).data)) > 1) if ((depth > 0) & (n >= depth)) break; end n = n + 1; newMap = []; newMap.origImage = map.origImage; newMap.label = sprintf('%s-%d',lab,n); newMap.data = mexGaussianSubsample(pyr.levels(n-1).data); newMap.date = timeString; newMap.parameters.type = 'dyadic'; pyr.levels(n) = newMap;endpyr.date = timeString;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -