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-2008 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,levels) 0018 0019 allLevels = 1:length(intPyr.levels); 0020 if nargin < 4 0021 levels = allLevels; 0022 end 0023 0024 oriPyr.origImage = intPyr.origImage; 0025 oriPyr.label = sprintf('Gabor%3.1f',angle); 0026 oriPyr.type = intPyr.type; 0027 0028 for l = levels 0029 oriPyr.levels(l) = gaborFilterMap(intPyr.levels(l),gaborParams,angle); 0030 oriPyr.levels(l).label = sprintf('%s-%d',oriPyr.levels(l).label,l); 0031 end 0032 0033 for l = setdiff(allLevels,levels) 0034 oriPyr.levels(l) = emptyMap; 0035 oriPyr.levels(l).label = 'not computed'; 0036 end 0037 0038 oriPyr.date = timeString;