Home > mfiles > makeIntensityPyramid.m

makeIntensityPyramid

PURPOSE ^

makeIntensityPyramid - creates an intensity pyramid.

SYNOPSIS ^

function intPyr = makeIntensityPyramid(image,type)

DESCRIPTION ^

 makeIntensityPyramid - creates an intensity pyramid.

 intPyr = makeIntensityPyramid(image,type)
    Creates an intensity pyramid from image.
       image: an Image structure for the input image.
       type: 'dyadic' or 'sqrt2'

 See also makeFeaturePyramids, makeGaussianPyramid, dataStructures.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % makeIntensityPyramid - creates an intensity pyramid.
0002 %
0003 % intPyr = makeIntensityPyramid(image,type)
0004 %    Creates an intensity pyramid from image.
0005 %       image: an Image structure for the input image.
0006 %       type: 'dyadic' or 'sqrt2'
0007 %
0008 % See also makeFeaturePyramids, makeGaussianPyramid, dataStructures.
0009 
0010 % This file is part of the SaliencyToolbox - Copyright (C) 2006-2007
0011 % by Dirk B. Walther and the California Institute of Technology.
0012 % See the enclosed LICENSE.TXT document for the license agreement.
0013 % More information about this project is available at:
0014 % http://www.saliencytoolbox.net
0015 
0016 function intPyr = makeIntensityPyramid(image,type)
0017 
0018 declareGlobal;
0019 
0020 im = loadImage(image);
0021 
0022 map.origImage = image;
0023 map.label = 'Intensity';
0024 map.data = mean(im,3);
0025 map.date = timeString;
0026 
0027 intPyr = makeGaussianPyramid(map,type);

Generated on Fri 07-Sep-2007 14:42:18 by m2html © 2003