Home > SaliencyToolbox > makeHuePyramid.m

makeHuePyramid

PURPOSE ^

makeHuePyramid - creates a hue distance pyramid.

SYNOPSIS ^

function huePyr = makeHuePyramid(image,type,hueParams,varargin)

DESCRIPTION ^

 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.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % makeHuePyramid - creates a hue distance pyramid.
0002 %
0003 % huePyr = makeHuePyramid(image,type,hueParams)
0004 %    Creates a Gaussian Pyramid from a hue distance map.
0005 %       image: Image structure of a color image.
0006 %       type: 'dyadic' or 'sqrt2'.
0007 %       hueParams: contains the parameters for the target hue.
0008 %
0009 % huePyr = makeHuePyramid(image,type,hueParams,label)
0010 %    Assign a label to the pyramid (default: 'Hue').
0011 %
0012 % See also hueDistance, skinHueParams, makeFeaturePyramids,
0013 %          dataStructures.
0014 
0015 % This file is part of the SaliencyToolbox - Copyright (C) 2006-2013
0016 % by Dirk B. Walther and the California Institute of Technology.
0017 % See the enclosed LICENSE.TXT document for the license agreement.
0018 % More information about this project is available at:
0019 % http://www.saliencytoolbox.net
0020 
0021 function huePyr = makeHuePyramid(image,type,hueParams,varargin)
0022 
0023 declareGlobal;
0024 
0025 im = loadImage(image);
0026 
0027 map.origImage = image;
0028 
0029 if isempty(varargin)
0030   map.label = 'Hue';
0031 else
0032   map.label = varargin{1};
0033 end
0034 
0035 map.data = hueDistance(im,hueParams);
0036 map.date = clock;
0037 map.parameters.hueParams = hueParams;
0038 
0039 huePyr = makeGaussianPyramid(map,type);

Generated on Thu 18-Jul-2013 06:10:46 by m2html © 2005