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

📄 avw_view_hdr.html

📁 mri_toolbox是一个工具用来MRI. 来自于SourceForge, 我上传这个软件,希望能结识对医疗软件感兴趣的兄弟.
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<!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_view_hdr</title>  <meta name="keywords" content="avw_view_hdr">  <meta name="description" content="AVW_VIEW_HDR - View and modify Analyze header file">  <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_view_hdr.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_view_hdr</h1><h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2><div class="box"><strong>AVW_VIEW_HDR - View and modify Analyze header file</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_view_hdr(avw,parent) </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_VIEW_HDR - View and modify Analyze header file
 
 Useage: avw_view_hdr(avw [,parent])
 
 Input avw can be generated by avw_hdr_read or avw_img_read
 
 parent is an optional handle to the gui that calls this gui, 
 useful for updating the UserData field of the parent. The 
 avw structure may be returned to the parent, if possible.</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_view_hdr(avw,parent)</a>0002 0003 <span class="comment">% AVW_VIEW_HDR - View and modify Analyze header file</span>0004 <span class="comment">%</span>0005 <span class="comment">% Useage: avw_view_hdr(avw [,parent])</span>0006 <span class="comment">%</span>0007 <span class="comment">% Input avw can be generated by avw_hdr_read or avw_img_read</span>0008 <span class="comment">%</span>0009 <span class="comment">% parent is an optional handle to the gui that calls this gui,</span>0010 <span class="comment">% useful for updating the UserData field of the parent. The</span>0011 <span class="comment">% avw structure may be returned to the parent, if possible.</span>0012 <span class="comment">%</span>0013 0014 <span class="comment">% $Revision: 1.6 $ $Date: 2004/02/07 01:41:51 $</span>0015 0016 <span class="comment">% Licence:  GNU GPL, no express or implied warranties</span>0017 <span class="comment">% History:  06/2002, Darren.Weber@flinders.edu.au</span>0018 <span class="comment">%           01/2003, Darren.Weber@flinders.edu.au</span>0019 <span class="comment">%                    added parent GUI handling</span>0020 <span class="comment">%</span>0021 <span class="comment">%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</span>0022 0023 <span class="keyword">if</span> ~exist(<span class="string">'avw'</span>,<span class="string">'var'</span>),0024     msg = sprintf(<span class="string">'AVW_VIEW_HDR: No input avw - see help gui_avw\n'</span>);0025     error(msg);0026 <span class="keyword">end</span>0027 0028 0029 0030 <span class="comment">% GUI General Parameters</span>0031 GUIwidth  = 80;0032 GUIheight = 20;0033 GUI = figure(<span class="string">'Name'</span>,<span class="string">'AVWHDR'</span>,<span class="string">'Tag'</span>,<span class="string">'AVWHDR'</span>,<span class="string">'units'</span>,<span class="string">'characters'</span>,<span class="keyword">...</span>0034              <span class="string">'NumberTitle'</span>,<span class="string">'off'</span>,<span class="string">'HandleVisibility'</span>,<span class="string">'callback'</span>,<span class="keyword">...</span>0035              <span class="string">'MenuBar'</span>,<span class="string">'none'</span>,<span class="string">'Position'</span>,[1 1 GUIwidth GUIheight]);0036 movegui(GUI,<span class="string">'center'</span>);0037 0038 AVWHDR.gui = GUI;0039 0040 Font.FontName   = <span class="string">'Helvetica'</span>;0041 Font.FontUnits  = <span class="string">'Pixels'</span>;0042 Font.FontSize   = 12;0043 Font.FontWeight = <span class="string">'normal'</span>;0044 Font.FontAngle  = <span class="string">'normal'</span>;0045 0046 <span class="comment">%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</span>0047 <span class="comment">% Analyze header display and modification...</span>0048 Font.FontWeight = <span class="string">'bold'</span>;0049 0050 G.Tselectfield = uicontrol(<span class="string">'Parent'</span>,GUI,<span class="string">'Style'</span>,<span class="string">'text'</span>,<span class="string">'Units'</span>,<span class="string">'Normalized'</span>,Font, <span class="keyword">...</span>0051     <span class="string">'Position'</span>,[.01 .9 .49 .09],<span class="string">'String'</span>,<span class="string">'Select Header Fields'</span>,<span class="string">'HorizontalAlignment'</span>,<span class="string">'left'</span>);0052 G.Pselectfield = uicontrol(<span class="string">'Parent'</span>,GUI,<span class="string">'Style'</span>,<span class="string">'popup'</span>,<span class="string">'Units'</span>,<span class="string">'Normalized'</span>,Font,  <span class="keyword">...</span>0053     <span class="string">'Position'</span>,[.51 .9 .48 .09],<span class="keyword">...</span>0054     <span class="string">'String'</span>,{<span class="string">'Header Key'</span>,<span class="string">'Image Dimensions'</span>,<span class="string">'Data History (optional)'</span>},<span class="keyword">...</span>0055     <span class="string">'TooltipString'</span>,<span class="string">'Select Header Fields to Display'</span>,<span class="keyword">...</span>0056     <span class="string">'Callback'</span>,strcat(<span class="string">'AVWHDR = get(gcbf,''Userdata'');'</span>,<span class="keyword">...</span>0057     <span class="string">'field = get(AVWHDR.handles.Pselectfield,''Value'');'</span>,<span class="keyword">...</span>0058     <span class="string">'switch field, '</span>,<span class="keyword">...</span>0059     <span class="string">'case 1, '</span>,<span class="keyword">...</span>

⌨️ 快捷键说明

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