initializewta.m

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

M
40
字号
% initializeWTA - intitializes a winner-take-all network.%% wta = initializeWTA(saliencyMap,saliencyParams)%    Initializes a winner-take-all network of leaky %    integrate and fire neurons with the current%    inputs to the neurons set proportional to the%    values of the saliencyMap.%% See also evolveWTA, defaultLeakyIntFire, runSaliency,%          defaultSaliencyParams, dataStructures.% 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 = initializeWTA(salmap,salParams)wta.sm = defaultLeakyIntFire;wta.sm.C = 5e-8;wta.sm.Einh = 0;wta.sm.Eexc = 0;wta.sm.Gleak = 1e-7;wta.sm.Ginh = zeros(size(salmap.data));wta.sm.GinhDecay = 0.9999;wta.sm.DoesFire = 0;wta.sm.I = salmap.data * salParams.smOutputRange + ...           salParams.noiseAmpl * rand(size(salmap.data)) + ...           salParams.noiseConst;debugMsg('salmap input into WTA',wta.sm.I);wta.sm.V = zeros(size(salmap.data));wta.exc = defaultLeakyIntFire;wta.exc.I = zeros(size(salmap.data));wta.exc.V = zeros(size(salmap.data));wta.exc.Ginh = 1e-2;wta.inhib = defaultLeakyIntFire;

⌨️ 快捷键说明

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