makeOrientationPyramid - creates an orientation pyramid. oriPyr = makeOrientationPyramid(intPyr,gaborParams,angle) Creates an orientation pyramid from a given intensity pyramid with Gabor filters defined in gaborParams and at the orientation given by angle (in degrees, 0 is horizontal). See also gaborFilterMap, makeFeaturePyramids, makeIntensityPyramid, dataStructures.
0001 % makeOrientationPyramid - creates an orientation pyramid. 0002 % 0003 % oriPyr = makeOrientationPyramid(intPyr,gaborParams,angle) 0004 % Creates an orientation pyramid from a given intensity 0005 % pyramid with Gabor filters defined in gaborParams and 0006 % at the orientation given by angle (in degrees, 0 is horizontal). 0007 % 0008 % See also gaborFilterMap, makeFeaturePyramids, makeIntensityPyramid, 0009 % dataStructures. 0010 0011 % This file is part of the SaliencyToolbox - Copyright (C) 2006-2007 0012 % by Dirk B. Walther and the California Institute of Technology. 0013 % See the enclosed LICENSE.TXT document for the license agreement. 0014 % More information about this project is available at: 0015 % http://www.saliencytoolbox.net 0016 0017 function oriPyr = makeOrientationPyramid(intPyr,gaborParams,angle) 0018 0019 oriPyr.origImage = intPyr.origImage; 0020 oriPyr.label = sprintf('Gabor%3.1f',angle); 0021 oriPyr.type = intPyr.type; 0022 0023 for l=1:length(intPyr.levels) 0024 oriPyr.levels(l) = gaborFilterMap(intPyr.levels(l),gaborParams,angle); 0025 oriPyr.levels(l).label = sprintf('%s-%d',oriPyr.levels(l).label,l); 0026 end 0027 0028 oriPyr.date = timeString;