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

📄 avw_binary.html

📁 mri_toolbox是一个工具用来MRI. 来自于SourceForge, 我上传这个软件,希望能结识对医疗软件感兴趣的兄弟.
💻 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 avw_binary</title>  <meta name="keywords" content="avw_binary">  <meta name="description" content="avw_binary - return 0 for avw.img <= thresh, 1 otherwise">  <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="index.html">mri_toolbox</a> &gt; avw_binary.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 mri_toolbox&nbsp;<img alt=">" border="0" src="../right.png"></a></td></tr></table>--><h1>avw_binary</h1><h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2><div class="box"><strong>avw_binary - return 0 for avw.img <= thresh, 1 otherwise</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 avw = avw_binary(avw,thresh) </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"> avw_binary - return 0 for avw.img &lt;= thresh, 1 otherwise

 Usage: avw = avw_binary(avw,thresh)

 avw is the Analyze volume returned by avw_read
 thresh is the threshold intensity value (default = 0)</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)"></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 <a name="_sub0" href="#_subfunctions" class="code">function avw = avw_binary(avw,thresh)</a>0002 0003 <span class="comment">% avw_binary - return 0 for avw.img &lt;= thresh, 1 otherwise</span>0004 <span class="comment">%</span>0005 <span class="comment">% Usage: avw = avw_binary(avw,thresh)</span>0006 <span class="comment">%</span>0007 <span class="comment">% avw is the Analyze volume returned by avw_read</span>0008 <span class="comment">% thresh is the threshold intensity value (default = 0)</span>0009 <span class="comment">%</span>0010 0011 0012 <span class="keyword">if</span> ~exist(<span class="string">'thresh'</span>,<span class="string">'var'</span>), thresh = 0; <span class="keyword">end</span>0013 <span class="keyword">if</span> isempty(thresh), thresh = 0; <span class="keyword">end</span>0014 0015 fprintf(<span class="string">'...binarising volume at %g threshold...'</span>,thresh); tic;0016 Vindex = find(avw.img &lt;= thresh);0017 avw.img(Vindex) = 0;0018 Vindex = find(avw.img);0019 avw.img(Vindex) = 1;0020 t = toc; fprintf(<span class="string">'done (%5.2f sec)\n'</span>,t);0021 0022 <span class="keyword">return</span></pre></div><hr><address>Generated on Fri 21-May-2004 12:38:21 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 + -