📄 makehuepyramid.m
字号:
% 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -