shapeIOR - applies shape-based inhibition of return. wta = shapeIOR(wta,winner,saliencyParams,shapeData) Applies shape-based inhibition of return to the wta winner-take-all network at the winner location, based on the settings in saliencyParams and on the shape information in shapeData. See also estimateShape, applyIOR, diskIOR, defaultSaliencyParams.
0001 % shapeIOR - applies shape-based inhibition of return. 0002 % 0003 % wta = shapeIOR(wta,winner,saliencyParams,shapeData) 0004 % Applies shape-based inhibition of return to the wta 0005 % winner-take-all network at the winner location, 0006 % based on the settings in saliencyParams and on the 0007 % shape information in shapeData. 0008 % 0009 % See also estimateShape, applyIOR, diskIOR, defaultSaliencyParams. 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 wta = shapeIOR(wta,winner,params,shapeData) 0018 0019 % is shape estimator map valid? if not, revert to diskIOR 0020 if (max(shapeData.binaryMap.data(:)) == 0) 0021 wta = diskIOR(wta,winner,params); 0022 return 0023 end 0024 0025 ampl = 0.1 * wta.sm.V(winner(1),winner(2)); 0026 0027 if isequal(size(shapeData.iorMask.data),size(wta.sm.V)) 0028 binMap = shapeData.iorMask.data; 0029 else 0030 binMap = imresize(shapeData.iorMask.data,size(wta.sm.V),'nearest'); 0031 end 0032 0033 wta.sm.Ginh = wta.sm.Ginh + ampl * binMap;