winnertoimgcoords.m

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

M
32
字号
% winnerToImgCoords - converts winner location from map to image coordinates.%% winImgCo = winnerToImgCoords(winner,salParams)%    Converts the winner location from saliency map coordinates%    to image coordinates, based on the pyramid type and%    the map level specified in salParams.%% See also defaultLevelParams, evolveWTA.% 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 winImgCo = winnerToImgCoords(winner,params)if (params.useRandom)  winner = winner + rand(size(winner));endmLevel = params.levelParams.mapLevel - 1;switch params.pyramidType  case 'dyadic'    winImgCo = round((winner - 1) * 2^mLevel + 1);  case 'sqrt2'    winImgCo = round((winner - 1) * 2^(mLevel/2) + 1);  otherwise    fatal(['Unknown pyramidType: ' params.pyramidType]);end  

⌨️ 快捷键说明

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