shapeior.m

来自「显著区域检测。求的图像中感兴趣区域的位置」· M 代码 · 共 34 行

M
34
字号
% 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.% This file is part of the SaliencyToolbox - Copyright (C) 2006-2007% by Dirk B. Walther and the California Institute of Technology.% See the enclosed LICENSE.TXT document for the license agreement. % More information about this project is available at: % http://www.saliencytoolbox.netfunction wta = shapeIOR(wta,winner,params,shapeData)% is shape estimator map valid? if not, revert to diskIORif (max(shapeData.binaryMap.data(:)) == 0)  wta = diskIOR(wta,winner,params);  returnendampl = 0.1 * wta.sm.V(winner(1),winner(2));if isequal(size(shapeData.iorMask.data),size(wta.sm.V))  binMap = shapeData.iorMask.data;else  binMap = imresize(shapeData.iorMask.data,size(wta.sm.V),'nearest');endwta.sm.Ginh = wta.sm.Ginh + ampl * binMap;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?