applyIOR - applies inhibition of return. wta = applyIOR(oldWTA,winner,saliencyParams) Applies inihibition of return to the winner-take-all network as specified in saliencyParams.IORtype. wta = applyIOR(oldWTA,winner,saliencyParams,shapeData) For saliencyParams.IORtype = 'shape', the shapeData from estimateShape are needed. See also diskIOR, shapeIOR, estimateShape, runSaliency, dataStructures.
0001 % applyIOR - applies inhibition of return. 0002 % 0003 % wta = applyIOR(oldWTA,winner,saliencyParams) 0004 % Applies inihibition of return to the winner-take-all 0005 % network as specified in saliencyParams.IORtype. 0006 % 0007 % wta = applyIOR(oldWTA,winner,saliencyParams,shapeData) 0008 % For saliencyParams.IORtype = 'shape', the shapeData 0009 % from estimateShape are needed. 0010 % 0011 % See also diskIOR, shapeIOR, estimateShape, runSaliency, dataStructures. 0012 0013 % This file is part of the SaliencyToolbox - Copyright (C) 2006-2008 0014 % by Dirk B. Walther and the California Institute of Technology. 0015 % See the enclosed LICENSE.TXT document for the license agreement. 0016 % More information about this project is available at: 0017 % http://www.saliencytoolbox.net 0018 0019 function wta = applyIOR(oldWTA,winner,params,varargin) 0020 0021 switch params.IORtype 0022 case 'None' 0023 wta = oldWTA; 0024 case 'disk' 0025 wta = diskIOR(oldWTA,winner,params); 0026 case 'shape' 0027 if (isempty(varargin)) 0028 error('shapeIOR requires shapeData as an additional argument!'); 0029 end 0030 if (isempty(varargin{1})) 0031 wta = diskIOR(oldWTA,winner,params); 0032 else 0033 wta = shapeIOR(oldWTA,winner,params,varargin{1}); 0034 end 0035 otherwise 0036 error(['Unknown IORtype: ' params.IORtype]); 0037 end 0038