displaymap.m

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

M
47
字号
% displayMap - displays a map in the current axes.%% displayMap(map)%    Display map in the current axes object.%% displayMap(map,normalizeFlag)%    If normalizeFlag is 1, the map is maximum-normalized,%    if it is 2, then the map is max-normalized and scaled%    to the dimensions of map.origImage (default: 0 - no normalization).%% See also displayMaps, 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 displayMap(map,varargin)if isempty(varargin)  normalizeFlag = 0;else  normalizeFlag = varargin{1};endif isstruct(map)  img = map.data;  if (normalizeFlag == 2)    img = imresize(img,map.origImage.size(1:2),'bilinear');  endelse  img = map;endif (normalizeFlag >= 1)  img = 255*mat2gray(img);endimage(img);colormap(gray(255));axis image;if isstruct(map)  title(map.label);end

⌨️ 快捷键说明

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