combinemaps.m

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

M
27
字号
% combineMaps - returns the sum of a vector of maps.%% resultMap = combineMaps(maps,label)%   Adds the data fields in the maps vactor and returns%   the result as a map with label as the label.%% See also 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 result = combineMaps(maps,label)result = maps(1);result.label = label;lm = length(maps);result.data = zeros(size(maps(1).data));for m = 1:lm  result.data = result.data + maps(m).data;endresult.date = timeString;

⌨️ 快捷键说明

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