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

📄 ge_hdr_read.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 ge_hdr_read</title>  <meta name="keywords" content="ge_hdr_read">  <meta name="description" content="ge_hdr_read - Reads the header info from a GE LX2 or 5.X 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; ge_hdr_read.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_hdr_read</h1><h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2><div class="box"><strong>ge_hdr_read - Reads the header info from a GE LX2 or 5.X 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 [ ge ] = ge_hdr_read(imageFileName) </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_hdr_read - Reads the header info from a GE LX2 or 5.X file
 
 [ge,im_offset] = ge_hdr_read('imageFileName')

 ge is a struct with fields:
 
 ge.hdr.suite  - suite header
 ge.hdr.exam   - exam header
 ge.hdr.series - series header
 ge.hdr.image  - image header
 ge.hdr.pixel  - pixel header
 
 ge.img.offset  - the byte offset to the image data
 
 This function assumes the image file is big endian.  It can
 automatically determine LX2 format (SGI) and 5.X format (Sun);
 other formats fail.
 
 See also ge_vol_read</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)"><li><a href="ge_series_read.html" class="code" title="function [ ge, lastfile ] = ge_series_read(examPath, series)">ge_series_read</a>	ge_series_read - reads a volume of images from a GE series</li></ul><!-- crossreference --><h2><a name="_subfunctions"></a>SUBFUNCTIONS <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2><ul style="list-style-image:url(../matlabicon.gif)"><li><a href="#_sub1" class="code">function su_hdr = ge_readHeaderSuite(fid, byte_align)</a></li><li><a href="#_sub2" class="code">function ex_hdr = ge_readHeaderExam(fid, byte_align)</a></li><li><a href="#_sub3" class="code">function se_hdr = ge_readHeaderSeries(fid, byte_align)</a></li><li><a href="#_sub4" class="code">function im_hdr = ge_readHeaderImage(fid, byte_align)</a></li><li><a href="#_sub5" class="code">function ge = ge_readHeaderPixel(fid, byte_align, ge)</a></li></ul><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 [ ge ] = ge_hdr_read(imageFileName)</a>0002 0003 <span class="comment">% ge_hdr_read - Reads the header info from a GE LX2 or 5.X file</span>0004 <span class="comment">%</span>0005 <span class="comment">% [ge,im_offset] = ge_hdr_read('imageFileName')</span>0006 <span class="comment">%</span>0007 <span class="comment">% ge is a struct with fields:</span>0008 <span class="comment">%</span>0009 <span class="comment">% ge.hdr.suite  - suite header</span>0010 <span class="comment">% ge.hdr.exam   - exam header</span>0011 <span class="comment">% ge.hdr.series - series header</span>0012 <span class="comment">% ge.hdr.image  - image header</span>0013 <span class="comment">% ge.hdr.pixel  - pixel header</span>0014 <span class="comment">%</span>0015 <span class="comment">% ge.img.offset  - the byte offset to the image data</span>0016 <span class="comment">%</span>0017 <span class="comment">% This function assumes the image file is big endian.  It can</span>0018 <span class="comment">% automatically determine LX2 format (SGI) and 5.X format (Sun);</span>0019 <span class="comment">% other formats fail.</span>0020 <span class="comment">%</span>0021 <span class="comment">% See also ge_vol_read</span>0022 <span class="comment">%</span>0023 0024 0025 <span class="comment">% $Revision: 1.4 $ $Date: 2004/02/07 01:41:51 $</span>0026 0027 <span class="comment">% Souheil J. Inati  &lt;souheil.inati@nyu.edu&gt; at 03/2003</span>0028 <span class="comment">% Dartmouth College, May 2000</span>0029 <span class="comment">%</span>0030 <span class="comment">% Darren.Weber_at_radiology.ucsf.edu, March 2003</span>0031 <span class="comment">% - Substantially redesigned file handling and function</span>0032 <span class="comment">%   call structures for integration with mri_toolbox at</span>0033 <span class="comment">%   http://eeg.sf.net</span>0034 <span class="comment">% - Requested permission to distribute code under GPL licence</span>0035 <span class="comment">%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%</span>0036 0037 0038 <span class="comment">% DLW, found this note in an FSL list message:</span>0039 <span class="comment">%This is further confounded by the GE image format I.001 or I.MR</span>0040 <span class="comment">%formats where the data following the header is inverted (top of the</span>0041 <span class="comment">%image for bottom).</span>0042 0043 0044 0045 fprintf(<span class="string">'\nGE_HDR_READ\n'</span>); tic0046 0047 fprintf(<span class="string">'...reading %s\n'</span>,imageFileName);0048 

⌨️ 快捷键说明

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