makehuepyramid.m

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

M
40
字号
% makeHuePyramid - creates a hue distance pyramid.%% huePyr = makeHuePyramid(image,type,hueParams)%    Creates a Gaussian Pyramid from a hue distance map.%       image: Image structure of a color image.%       type: 'dyadic' or 'sqrt2'.%       hueParams: contains the parameters for the target hue.%% huePyr = makeHuePyramid(image,type,hueParams,label)%    Assign a label to the pyramid (default: 'Hue').%% See also hueDistance, skinHueParams, makeFeaturePyramids, %          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 huePyr = makeHuePyramid(image,type,hueParams,varargin)declareGlobal;im = loadImage(image);map.origImage = image;if isempty(varargin)  map.label = 'Hue';else  map.label = varargin{1};endmap.data = hueDistance(im,hueParams);map.date = timeString;map.parameters.hueParams = hueParams;huePyr = makeGaussianPyramid(map,type);

⌨️ 快捷键说明

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