⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 displaymaps.m

📁 显著区域检测。求的图像中感兴趣区域的位置
💻 M
字号:
% displayMaps - displays a set of maps in the current figure.%% displayMaps(maps)%    Displays all maps in the array of maps (cell or normal array) %    in the current figure.%% displayMaps(maps,normalizeFlag)%    If normalizeFlag is 1, the maps are maximum-normalized,%    if it is 2, then the maps are max-normalized and scaled%    to the dimensions of map.origImage (default: 1).%% See also displayMap, displayPyramid, dataStructures, showImage% 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 displayMaps(maps,varargin)if (isempty(varargin)) normalizeFlag = 1;else normalizeFlag = varargin{1}; endnumMaps = numel(maps);subDims(1) = ceil(sqrt(numMaps));subDims(2) = ceil(numMaps / subDims(1));if iscell(maps)  sz = size(maps{1}.data);  if (sz(1) < sz(2))    w = min(subDims);    h = max(subDims);  else    w = max(subDims);    h = min(subDims);  end  if (numMaps == 1)    set(gcf,'Name',maps{1}.label);  end  for m = 1:numMaps    subplot(h,w,m);    displayMap(maps{m},normalizeFlag);  endelse  sz = size(maps(1).data);  if (sz(1) < sz(2))    w = min(subDims);    h = max(subDims);  else    w = max(subDims);    h = min(subDims);  end    if (numMaps == 1)    set(gcf,'Name',maps(1).label);  end  for m = 1:numMaps    subplot(h,w,m);    displayMap(maps(m),normalizeFlag);  endend

⌨️ 快捷键说明

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