emptymap.m

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

M
36
字号
% emptyMap - creates an empty map.
%
% map = emptyMap(mapSize,label)
%    Creates a map with a data field of zeros(mapSize) with the given
%    label.
%
% map = emptyMap(mapSize)
%    Leaves the label field empty.
%
% map = emptyMap
%    Leaves the data field empty.
%
% 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.net

function map = emptyMap(mapSize,label)

map.origImage = [];
if (nargin >= 2)
  map.label = label;
else
  map.label = '';
end
if (nargin >= 1)
  map.data = zeros(mapSize);
else
  map.data = [];
end
map.date = timeString;
map.parameters = [];

⌨️ 快捷键说明

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