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

📄 ge_hdr2avw.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 ge_hdr2avw</title>  <meta name="keywords" content="ge_hdr2avw">  <meta name="description" content="ge_hdr2avw - extract Analyze header from ge struct">  <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; ge_hdr2avw.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>ge_hdr2avw</h1><h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2><div class="box"><strong>ge_hdr2avw - extract Analyze header from ge struct</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 ] = ge_hdr2avw(ge) </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"> ge_hdr2avw - extract Analyze header from ge struct
 
 [avw] = ge_hdr2avw(ge)
 
 ge is a struct obtained from ge_hdr_read
 
 avw.hdr contains the Analyze header fields.
 
 There is no reorientation of the volume dimensions 
 in this function, whereas ge_series2avw does 
 reorient the data and corresponding header 
 fields.
 
 see also <a href="ge_series2avw.html" class="code" title="function [ avw ] = ge_series2avw(examPath,seriesPath)">ge_series2avw</a>, <a href="ge_series_read.html" class="code" title="function [ ge, lastfile ] = ge_series_read(examPath, series)">ge_series_read</a>, <a href="ge_hdr_read.html" class="code" title="function [ ge ] = ge_hdr_read(imageFileName)">ge_hdr_read</a>,          <a href="avw_hdr_write.html" class="code" title="function avw_hdr_write(avw, fileprefix, machine)">avw_hdr_write</a>, <a href="avw_hdr_read.html" class="code" title="function [ avw, machine ] = avw_hdr_read(fileprefix, machine)">avw_hdr_read</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="avw_hdr_make.html" class="code" title="function [ avw ] = avw_hdr_make">avw_hdr_make</a>	AVW_HDR_MAKE - Create Analyze format data header (avw.hdr)</li></ul>This function is called by:<ul style="list-style-image:url(../matlabicon.gif)"><li><a href="ge_series2avw.html" class="code" title="function [ avw ] = ge_series2avw(examPath,seriesPath)">ge_series2avw</a>	ge_series2avw - converts a GE series to Analyze</li></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 ] = ge_hdr2avw(ge)</a>0002 0003 <span class="comment">% ge_hdr2avw - extract Analyze header from ge struct</span>0004 <span class="comment">%</span>0005 <span class="comment">% [avw] = ge_hdr2avw(ge)</span>0006 <span class="comment">%</span>0007 <span class="comment">% ge is a struct obtained from ge_hdr_read</span>0008 <span class="comment">%</span>0009 <span class="comment">% avw.hdr contains the Analyze header fields.</span>0010 <span class="comment">%</span>0011 <span class="comment">% There is no reorientation of the volume dimensions</span>0012 <span class="comment">% in this function, whereas ge_series2avw does</span>0013 <span class="comment">% reorient the data and corresponding header</span>0014 <span class="comment">% fields.</span>0015 <span class="comment">%</span>0016 <span class="comment">% see also ge_series2avw, ge_series_read, ge_hdr_read,</span>0017 <span class="comment">%          avw_hdr_write, avw_hdr_read</span>0018 <span class="comment">%</span>0019 0020 0021 <span class="comment">% $Revision: 1.4 $ $Date: 2004/02/07 01:41:51 $</span>0022 0023 <span class="comment">% Souheil J. Inati  &lt;souheil.inati@nyu.edu&gt; at 03/2003</span>0024 <span class="comment">% Dartmouth College, May 2000</span>0025 <span class="comment">%</span>0026 <span class="comment">% Darren.Weber@flinders.edu.au, March 2003</span>0027 <span class="comment">% - Substantially redesigned file handling and function</span>0028 <span class="comment">%   call structures for integration with mri_toolbox at</span>0029 <span class="comment">%   http://eeg.sf.net</span>0030 <span class="comment">% - Requested permission to distribute code under GPL licence</span>0031 <span class="comment">%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</span>0032 0033 <span class="comment">% Initialize the ANALYZE header</span>0034 avw = <a href="avw_hdr_make.html" class="code" title="function [ avw ] = avw_hdr_make">avw_hdr_make</a>;0035 0036 version = <span class="string">'[$Revision: 1.4 $]'</span>;0037 fprintf(<span class="string">'\nGE_HDR2AVW [v%s]\n'</span>,version(12:16)); tic0038 0039 <span class="comment">% Assign the GE image parameters</span>0040 avw.hdr.dime.datatype = 4;0041 avw.hdr.dime.bitpix = ge.hdr.image.screenformat; <span class="comment">% usually 16 bits</span>0042 avw.hdr.dime.glmax = 65535;0043 avw.hdr.dime.dim(1) =  4;                   <span class="comment">% Dimensions (always 4?)</span>0044 avw.hdr.dime.dim(2) =  ge.hdr.image.imatrix_X; <span class="comment">% X Voxels</span>0045 avw.hdr.dime.dim(3) =  ge.hdr.image.imatrix_Y; <span class="comment">% Y Voxels</span>0046 avw.hdr.dime.dim(4) =  ge.hdr.image.slquant;   <span class="comment">% Z Voxels</span>0047 avw.hdr.dime.dim(5) =  1;                   <span class="comment">% Time Points</span>0048 avw.hdr.dime.pixdim(2) = ge.hdr.image.pixsize_X;                       <span class="comment">% X Voxel Size</span>0049 avw.hdr.dime.pixdim(3) = ge.hdr.image.pixsize_Y;                       <span class="comment">% Y Voxel Size</span>0050 avw.hdr.dime.pixdim(4) = ge.hdr.image.slthick + ge.hdr.image.scanspacing; <span class="comment">% Z Voxel Size</span>0051 0052 t=toc; fprintf(<span class="string">'...done (%5.2f sec).\n'</span>,t);0053 0054 <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 + -