makedyadicpyramid.m
来自「显著区域检测。求的图像中感兴趣区域的位置」· M 代码 · 共 49 行
M
49 行
% 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 + =
减小字号Ctrl + -
显示快捷键?