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

📄 computeallsaliencymaps.html

📁 显著区域检测。求的图像中感兴趣区域的位置
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"                "http://www.w3.org/TR/REC-html40/loose.dtd"><html><head>  <title>Description of computeAllSaliencyMaps</title>  <meta name="keywords" content="computeAllSaliencyMaps">  <meta name="description" content="computeAllSaliencyMaps - computes the saliency maps for many images.">  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">  <meta name="generator" content="m2html &copy; 2003 Guillaume Flandin">  <meta name="robots" content="index, follow">  <link type="text/css" rel="stylesheet" href="../m2html.css"></head><body><a name="_top"></a><div><a href="../index.html">Home</a> &gt;  <a href="#">mfiles</a> &gt; computeAllSaliencyMaps.m</div><!--<table width="100%"><tr><td align="left"><a href="../index.html"><img alt="<" border="0" src="../left.png">&nbsp;Master index</a></td><td align="right"><a href="index.html">Index for .\mfiles&nbsp;<img alt=">" border="0" src="../right.png"></a></td></tr></table>--><h1>computeAllSaliencyMaps</h1><h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2><div class="box"><strong>computeAllSaliencyMaps - computes the saliency maps for many images.</strong></div><h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2><div class="box"><strong>function computeAllSaliencyMaps(imageFile,salmapFile,salParams,fid) </strong></div><h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2><div class="fragment"><pre class="comment"> computeAllSaliencyMaps - computes the saliency maps for many images. computeAllSaliencyMaps(imageFile,salmapFile,salParams,log_fid)    Computes the saliency maps for all images in imageFile.    This function is useful for batch processing many images.    imageFile - the file name of a .mat file with a vector of image       structures called 'images'. imageFile is relative to DATA_DIR,       the locations of the actual image files are relative to       IMG_DIR.    salmapFile - the file name of the file where the saliency maps       should be saved, relative to DATA_DIR.    salParams - the parameters for computing the saliency maps.    log_fid - a file identifier to write logging information to              (0 for no log info, 1 for stdout). See also <a href="batchSaliency.html" class="code" title="function [salMaps,fixations] = batchSaliency(images,numFixations,params)">batchSaliency</a>, <a href="defaultSaliencyParams.html" class="code" title="function params = defaultSaliencyParams(varargin)">defaultSaliencyParams</a>, <a href="makeSaliencyMap.html" class="code" title="function [salmap, saliencyData] = makeSaliencyMap(img, salParams, varargin)">makeSaliencyMap</a>, <a href="initializeGlobal.html" class="code" title="function initializeGlobal(varargin)">initializeGlobal</a>.</pre></div><!-- crossreference --><h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>This function calls:<ul style="list-style-image:url(../matlabicon.gif)"><li><a href="declareGlobal.html" class="code" title="">declareGlobal</a>	declareGlobal - declares global variables.</li><li><a href="makeSaliencyMap.html" class="code" title="function [salmap, saliencyData] = makeSaliencyMap(img, salParams, varargin)">makeSaliencyMap</a>	makeSaliencyMap - creates a saliency map for an image.</li><li><a href="timeString.html" class="code" title="function s = timeString()">timeString</a>	timeString returns the current time and date in a convenient string format.</li></ul>This function is called by:<ul style="list-style-image:url(../matlabicon.gif)"></ul><!-- crossreference --><h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2><div class="fragment"><pre>0001 <span class="comment">% computeAllSaliencyMaps - computes the saliency maps for many images.</span>0002 <span class="comment">%</span>0003 <span class="comment">% computeAllSaliencyMaps(imageFile,salmapFile,salParams,log_fid)</span>0004 <span class="comment">%    Computes the saliency maps for all images in imageFile.</span>0005 <span class="comment">%    This function is useful for batch processing many images.</span>0006 <span class="comment">%</span>0007 <span class="comment">%    imageFile - the file name of a .mat file with a vector of image</span>0008 <span class="comment">%       structures called 'images'. imageFile is relative to DATA_DIR,</span>0009 <span class="comment">%       the locations of the actual image files are relative to</span>0010 <span class="comment">%       IMG_DIR.</span>0011 <span class="comment">%    salmapFile - the file name of the file where the saliency maps</span>0012 <span class="comment">%       should be saved, relative to DATA_DIR.</span>0013 <span class="comment">%    salParams - the parameters for computing the saliency maps.</span>0014 <span class="comment">%    log_fid - a file identifier to write logging information to</span>0015 <span class="comment">%              (0 for no log info, 1 for stdout).</span>0016 <span class="comment">%</span>0017 <span class="comment">% See also batchSaliency, defaultSaliencyParams, makeSaliencyMap, initializeGlobal.</span>0018 0019 <span class="comment">% This file is part of the SaliencyToolbox - Copyright (C) 2006-2007</span>0020 <span class="comment">% by Dirk B. Walther and the California Institute of Technology.</span>0021 <span class="comment">% See the enclosed LICENSE.TXT document for the license agreement.</span>0022 <span class="comment">% More information about this project is available at:</span>0023 <span class="comment">% http://www.saliencytoolbox.net</span>0024 0025 <a name="_sub0" href="#_subfunctions" class="code">function computeAllSaliencyMaps(imageFile,salmapFile,salParams,fid)</a>0026 0027 <a href="declareGlobal.html" class="code" title="">declareGlobal</a>;0028 0029 fprintf(fid,<span class="string">'Starting %s on %s at %s.\n'</span>,mfilename,imageFile,<a href="timeString.html" class="code" title="function s = timeString()">timeString</a>);0030 0031 tmp = load([DATA_DIR imageFile]);0032 names = fieldnames(tmp);0033 img = getfield(tmp,names{1});0034 numImg = length(img);0035 0036 <span class="keyword">for</span> i = 1:numImg0037   fprintf(fid,<span class="string">'Processing image %d of %d ...\n'</span>,i,numImg);0038   SaliencyMap(i) = <a href="makeSaliencyMap.html" class="code" title="function [salmap, saliencyData] = makeSaliencyMap(img, salParams, varargin)">makeSaliencyMap</a>(img(i),salParams);0039 <span class="keyword">end</span>0040 0041 save([DATA_DIR salmapFile],<span class="string">'SaliencyMap'</span>);0042 fprintf(fid,<span class="string">'Saved results in %s at %s.\n'</span>,salmapFile,<a href="timeString.html" class="code" title="function s = timeString()">timeString</a>);</pre></div><hr><address>Generated on Fri 07-Sep-2007 14:42:18 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/">m2html</a></strong> &copy; 2003</address></body></html>

⌨️ 快捷键说明

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