Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > ce1f17e7ec5e62f35dbe9f064c5f74d7 > files > 163

libtpcimgio-devel-1.5.10-4.fc15.i686.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>ecat63ml.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.4 -->
<div id="top">
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">ecat63ml.c File Reference</div>  </div>
</div>
<div class="contents">
<div class="textblock"><code>#include &lt;stdio.h&gt;</code><br/>
<code>#include &lt;stdlib.h&gt;</code><br/>
<code>#include &lt;math.h&gt;</code><br/>
<code>#include &lt;ctype.h&gt;</code><br/>
<code>#include &lt;string.h&gt;</code><br/>
<code>#include &lt;unistd.h&gt;</code><br/>
<code>#include &lt;time.h&gt;</code><br/>
<code>#include &lt;swap.h&gt;</code><br/>
<code>#include &quot;<a class="el" href="img_8h_source.html">include/img.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="ecat63_8h_source.html">include/ecat63.h</a>&quot;</code><br/>
</div><div class="textblock"><div class="dynheader">
Include dependency graph for ecat63ml.c:</div>
<div class="dyncontent">
<div class="center"><img src="ecat63ml_8c__incl.png" border="0" usemap="#ecat63ml_8c" alt=""/></div>
<map name="ecat63ml_8c" id="ecat63ml_8c">
<area shape="rect" id="node19" href="img_8h.html" title="include/img.h" alt="" coords="701,83,800,112"/><area shape="rect" id="node23" href="ecat63_8h.html" title="include/ecat63.h" alt="" coords="824,83,941,112"/></map>
</div>
</div>
<p><a href="ecat63ml_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ecat63ml_8c.html#a2477fe69c32ce33b443b9c0eaedae423">ecat63InitMatlist</a> (<a class="el" href="structMATRIXLIST.html">MATRIXLIST</a> *mlist)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ecat63ml_8c.html#a2d931d7e3d4e21159731b7c480c209b9">ecat63EmptyMatlist</a> (<a class="el" href="structMATRIXLIST.html">MATRIXLIST</a> *mlist)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ecat63ml_8c.html#a6cce9d0e541e82d56c9d162f16202179">ecat63ReadMatlist</a> (FILE *fp, <a class="el" href="structMATRIXLIST.html">MATRIXLIST</a> *ml)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ecat63ml_8c.html#aabc712142bcbc9e27d79a840e80212ae">ecat63PrintMatlist</a> (<a class="el" href="structMATRIXLIST.html">MATRIXLIST</a> *ml)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ecat63ml_8c.html#a01664c72df6a487a1de8d1da3bbc9983">ecat63Matenter</a> (FILE *fp, int matnum, int blkNr)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ecat63ml_8c.html#a7561756da60d9e38a1419da8ebf220fb">mat_numcod</a> (int frame, int plane, int gate, int data, int bed)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ecat63ml_8c.html#af566384e63f743897f71d8ee41b3b292">mat_numdoc</a> (int matnum, <a class="el" href="structMatval.html">Matval</a> *matval)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ecat63ml_8c.html#aa2765243cddea6955fe20e0a7d453b36">ecat63SortMatlistByPlane</a> (<a class="el" href="structMATRIXLIST.html">MATRIXLIST</a> *ml)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ecat63ml_8c.html#af88528086eaae0762fa9c551f3e55d92">ecat63SortMatlistByFrame</a> (<a class="el" href="structMATRIXLIST.html">MATRIXLIST</a> *ml)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ecat63ml_8c.html#ad1405b1c28549717097d834307abaa72">ecat63CheckMatlist</a> (<a class="el" href="structMATRIXLIST.html">MATRIXLIST</a> *ml)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ecat63ml_8c.html#a9dc9509d99d809410fc5904410562856">ecat63DeleteLateFrames</a> (<a class="el" href="structMATRIXLIST.html">MATRIXLIST</a> *ml, int frame_nr)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ecat63ml_8c.html#a8955edf44cdf0be247f73cbc7dd808c1">ecat63GetMatrixBlockSize</a> (<a class="el" href="structMATRIXLIST.html">MATRIXLIST</a> *mlist, int *blk_nr)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ecat63ml_8c.html#a231a6f12df0eeec69699a0d4f3aa4c42">ecat63GetPlaneAndFrameNr</a> (<a class="el" href="structMATRIXLIST.html">MATRIXLIST</a> *mlist, <a class="el" href="structecat63__mainheader.html">ECAT63_mainheader</a> *h, int *plane_nr, int *frame_nr)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ecat63ml_8c.html#a893d65a8344a7a475236f11b4471e9bd">ecat63GetNums</a> (<a class="el" href="structMATRIXLIST.html">MATRIXLIST</a> *ml, short int *num_planes, short int *num_frames, short int *num_gates, short int *num_bed_pos)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ecat63ml_8c.html#a39dccd7c874d89f8a84d57d86ce0e6b1">ecat63GatherMatlist</a> (<a class="el" href="structMATRIXLIST.html">MATRIXLIST</a> *ml, short int do_planes, short int do_frames, short int do_gates, short int do_beds)</td></tr>
</table>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="ad1405b1c28549717097d834307abaa72"></a><!-- doxytag: member="ecat63ml.c::ecat63CheckMatlist" ref="ad1405b1c28549717097d834307abaa72" args="(MATRIXLIST *ml)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ecat63CheckMatlist </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structMATRIXLIST.html">MATRIXLIST</a> *&#160;</td>
          <td class="paramname"><em>ml</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Checks that all matrixlist entries have read/write status.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">ml</td><td>matrix list </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>0 if ok, or 1 if an entry is marked as deleted or unfinished. </dd></dl>

<p>Definition at line <a class="el" href="ecat63ml_8c_source.html#l00342">342</a> of file <a class="el" href="ecat63ml_8c_source.html">ecat63ml.c</a>.</p>

<p>References <a class="el" href="ecat63_8h_source.html#l00065">MATRIXLIST::matdir</a>, <a class="el" href="ecat63_8h_source.html#l00063">MATRIXLIST::matrixNr</a>, and <a class="el" href="ecat63_8h_source.html#l00059">MatDir::matstat</a>.</p>

</div>
</div>
<a class="anchor" id="a9dc9509d99d809410fc5904410562856"></a><!-- doxytag: member="ecat63ml.c::ecat63DeleteLateFrames" ref="a9dc9509d99d809410fc5904410562856" args="(MATRIXLIST *ml, int frame_nr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ecat63DeleteLateFrames </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structMATRIXLIST.html">MATRIXLIST</a> *&#160;</td>
          <td class="paramname"><em>ml</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>frame_nr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Mark deleted the frames after the specified frame number. This can be used to delete sum images from the end of dynamic ECAT images.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">ml</td><td>matrix list </td></tr>
    <tr><td class="paramname">frame_nr</td><td>last index not to be marked as deleted </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>number of deleted matrices. </dd></dl>

<p>Definition at line <a class="el" href="ecat63ml_8c_source.html#l00360">360</a> of file <a class="el" href="ecat63ml_8c_source.html">ecat63ml.c</a>.</p>

<p>References <a class="el" href="ecat63_8h_source.html#l00069">Matval::frame</a>, <a class="el" href="ecat63ml_8c_source.html#l00276">mat_numdoc()</a>, <a class="el" href="ecat63_8h_source.html#l00065">MATRIXLIST::matdir</a>, <a class="el" href="ecat63_8h_source.html#l00056">MatDir::matnum</a>, <a class="el" href="ecat63_8h_source.html#l00063">MATRIXLIST::matrixNr</a>, and <a class="el" href="ecat63_8h_source.html#l00059">MatDir::matstat</a>.</p>

<p>Referenced by <a class="el" href="img__e63_8c_source.html#l00077">ecat63ReadAllToImg()</a>, <a class="el" href="img__e63_8c_source.html#l00568">ecat63ReadPlaneToImg()</a>, and <a class="el" href="img__e63_8c_source.html#l01289">imgReadEcat63Header()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="ecat63ml_8c_a9dc9509d99d809410fc5904410562856_cgraph.png" border="0" usemap="#ecat63ml_8c_a9dc9509d99d809410fc5904410562856_cgraph" alt=""/></div>
<map name="ecat63ml_8c_a9dc9509d99d809410fc5904410562856_cgraph" id="ecat63ml_8c_a9dc9509d99d809410fc5904410562856_cgraph">
<area shape="rect" id="node3" href="ecat63ml_8c.html#af566384e63f743897f71d8ee41b3b292" title="mat_numdoc" alt="" coords="223,5,319,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a2d931d7e3d4e21159731b7c480c209b9"></a><!-- doxytag: member="ecat63ml.c::ecat63EmptyMatlist" ref="a2d931d7e3d4e21159731b7c480c209b9" args="(MATRIXLIST *mlist)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ecat63EmptyMatlist </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structMATRIXLIST.html">MATRIXLIST</a> *&#160;</td>
          <td class="paramname"><em>mlist</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Free memory allocated for ECAT matrix list</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">mlist</td><td>matrix list </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="ecat63ml_8c_source.html#l00080">80</a> of file <a class="el" href="ecat63ml_8c_source.html">ecat63ml.c</a>.</p>

<p>References <a class="el" href="ecat63_8h_source.html#l00065">MATRIXLIST::matdir</a>, <a class="el" href="ecat63_8h_source.html#l00063">MATRIXLIST::matrixNr</a>, and <a class="el" href="ecat63_8h_source.html#l00064">MATRIXLIST::matrixSpace</a>.</p>

<p>Referenced by <a class="el" href="img__e63_8c_source.html#l00886">ecat63AddImg()</a>, <a class="el" href="img__e63_8c_source.html#l00077">ecat63ReadAllToImg()</a>, <a class="el" href="ecat63ml_8c_source.html#l00097">ecat63ReadMatlist()</a>, <a class="el" href="img__e63_8c_source.html#l00568">ecat63ReadPlaneToImg()</a>, <a class="el" href="ecat63p_8c_source.html#l00296">ecat6PrintSubheader()</a>, <a class="el" href="img__e63_8c_source.html#l01464">imgReadEcat63Frame()</a>, and <a class="el" href="img__e63_8c_source.html#l01289">imgReadEcat63Header()</a>.</p>

</div>
</div>
<a class="anchor" id="a39dccd7c874d89f8a84d57d86ce0e6b1"></a><!-- doxytag: member="ecat63ml.c::ecat63GatherMatlist" ref="a39dccd7c874d89f8a84d57d86ce0e6b1" args="(MATRIXLIST *ml, short int do_planes, short int do_frames, short int do_gates, short int do_beds)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ecat63GatherMatlist </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structMATRIXLIST.html">MATRIXLIST</a> *&#160;</td>
          <td class="paramname"><em>ml</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">short int&#160;</td>
          <td class="paramname"><em>do_planes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">short int&#160;</td>
          <td class="paramname"><em>do_frames</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">short int&#160;</td>
          <td class="paramname"><em>do_gates</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">short int&#160;</td>
          <td class="paramname"><em>do_beds</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Matrix numbers in ECAT 6.3 matrix list are edited, when necessary, so that plane, frame, gate and/or bed numbers are continuous, starting from one (planes, frames and gates) or from zero (beds). List order is not changed.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">ml</td><td>ECAT 6.3 matrix list, where the matrix numbers will be edited </td></tr>
    <tr><td class="paramname">do_planes</td><td>Plane numbers are gathered together (1) or not (0) </td></tr>
    <tr><td class="paramname">do_frames</td><td>Frame numbers are gathered together (1) or not (0) </td></tr>
    <tr><td class="paramname">do_gates</td><td>Gate numbers are gathered together (1) or not (0) </td></tr>
    <tr><td class="paramname">do_beds</td><td>Bed numbers are gathered together (1) or not (0) </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>0 if successful, 1 if invalid input, 3 failed to allocate memory </dd></dl>

<p>Definition at line <a class="el" href="ecat63ml_8c_source.html#l00519">519</a> of file <a class="el" href="ecat63ml_8c_source.html">ecat63ml.c</a>.</p>

<p>References <a class="el" href="ecat63_8h_source.html#l00069">Matval::bed</a>, <a class="el" href="ecat63_8h_source.html#l00069">Matval::frame</a>, <a class="el" href="ecat63_8h_source.html#l00069">Matval::gate</a>, <a class="el" href="ecat63ml_8c_source.html#l00266">mat_numcod()</a>, <a class="el" href="ecat63ml_8c_source.html#l00276">mat_numdoc()</a>, <a class="el" href="ecat63_8h_source.html#l00065">MATRIXLIST::matdir</a>, <a class="el" href="ecat63_8h_source.html#l00056">MatDir::matnum</a>, <a class="el" href="ecat63_8h_source.html#l00063">MATRIXLIST::matrixNr</a>, and <a class="el" href="ecat63_8h_source.html#l00069">Matval::plane</a>.</p>

<p>Referenced by <a class="el" href="img__e63_8c_source.html#l01464">imgReadEcat63Frame()</a>, and <a class="el" href="img__e63_8c_source.html#l01289">imgReadEcat63Header()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="ecat63ml_8c_a39dccd7c874d89f8a84d57d86ce0e6b1_cgraph.png" border="0" usemap="#ecat63ml_8c_a39dccd7c874d89f8a84d57d86ce0e6b1_cgraph" alt=""/></div>
<map name="ecat63ml_8c_a39dccd7c874d89f8a84d57d86ce0e6b1_cgraph" id="ecat63ml_8c_a39dccd7c874d89f8a84d57d86ce0e6b1_cgraph">
<area shape="rect" id="node3" href="ecat63ml_8c.html#a7561756da60d9e38a1419da8ebf220fb" title="mat_numcod" alt="" coords="193,5,289,35"/><area shape="rect" id="node5" href="ecat63ml_8c.html#af566384e63f743897f71d8ee41b3b292" title="mat_numdoc" alt="" coords="193,59,289,88"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a8955edf44cdf0be247f73cbc7dd808c1"></a><!-- doxytag: member="ecat63ml.c::ecat63GetMatrixBlockSize" ref="a8955edf44cdf0be247f73cbc7dd808c1" args="(MATRIXLIST *mlist, int *blk_nr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ecat63GetMatrixBlockSize </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structMATRIXLIST.html">MATRIXLIST</a> *&#160;</td>
          <td class="paramname"><em>mlist</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>blk_nr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Calculate the size of one data matrix in ECAT 6.3 file matrix list, and check that the size is same in all matrices.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">mlist</td><td>Ecat 6.3 matrix list; note that this list is here sorted by planes </td></tr>
    <tr><td class="paramname">blk_nr</td><td>Number of blocks will be put here; NULL if not needed </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>errstatus, which is STATUS_OK (0) when call was successful, and &gt;0 in case of an error. </dd></dl>

<p>Definition at line <a class="el" href="ecat63ml_8c_source.html#l00382">382</a> of file <a class="el" href="ecat63ml_8c_source.html">ecat63ml.c</a>.</p>

<p>References <a class="el" href="ecat63_8h_source.html#l00058">MatDir::endblk</a>, <a class="el" href="ecat63_8h_source.html#l00065">MATRIXLIST::matdir</a>, <a class="el" href="ecat63_8h_source.html#l00063">MATRIXLIST::matrixNr</a>, <a class="el" href="img_8h_source.html#l00118">STATUS_FAULT</a>, <a class="el" href="img_8h_source.html#l00118">STATUS_OK</a>, <a class="el" href="img_8h_source.html#l00120">STATUS_VARMATSIZE</a>, and <a class="el" href="ecat63_8h_source.html#l00057">MatDir::strtblk</a>.</p>

<p>Referenced by <a class="el" href="img__e63_8c_source.html#l01464">imgReadEcat63Frame()</a>, and <a class="el" href="img__e63_8c_source.html#l01289">imgReadEcat63Header()</a>.</p>

</div>
</div>
<a class="anchor" id="a893d65a8344a7a475236f11b4471e9bd"></a><!-- doxytag: member="ecat63ml.c::ecat63GetNums" ref="a893d65a8344a7a475236f11b4471e9bd" args="(MATRIXLIST *ml, short int *num_planes, short int *num_frames, short int *num_gates, short int *num_bed_pos)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ecat63GetNums </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structMATRIXLIST.html">MATRIXLIST</a> *&#160;</td>
          <td class="paramname"><em>ml</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">short int *&#160;</td>
          <td class="paramname"><em>num_planes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">short int *&#160;</td>
          <td class="paramname"><em>num_frames</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">short int *&#160;</td>
          <td class="paramname"><em>num_gates</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">short int *&#160;</td>
          <td class="paramname"><em>num_bed_pos</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Read the maximum plane, frame, gate and bed number from matrixlist.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">ml</td><td>Pointer to matrixlist </td></tr>
    <tr><td class="paramname">num_planes</td><td>number of planes will be put here; NULL if not needed </td></tr>
    <tr><td class="paramname">num_frames</td><td>number of frames will be put here; NULL if not needed </td></tr>
    <tr><td class="paramname">num_gates</td><td>number of gates will be put here; NULL if not needed </td></tr>
    <tr><td class="paramname">num_bed_pos</td><td>number of gates will be put here; NULL if not needed </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>0 if successful, 1 no matrix list, 2 invalid matrix number, 3 failed to allocate memory </dd></dl>

<p>Definition at line <a class="el" href="ecat63ml_8c_source.html#l00462">462</a> of file <a class="el" href="ecat63ml_8c_source.html">ecat63ml.c</a>.</p>

<p>References <a class="el" href="ecat63_8h_source.html#l00069">Matval::bed</a>, <a class="el" href="ecat63_8h_source.html#l00069">Matval::frame</a>, <a class="el" href="ecat63_8h_source.html#l00069">Matval::gate</a>, <a class="el" href="ecat63ml_8c_source.html#l00276">mat_numdoc()</a>, <a class="el" href="ecat63_8h_source.html#l00065">MATRIXLIST::matdir</a>, <a class="el" href="ecat63_8h_source.html#l00056">MatDir::matnum</a>, <a class="el" href="ecat63_8h_source.html#l00063">MATRIXLIST::matrixNr</a>, and <a class="el" href="ecat63_8h_source.html#l00069">Matval::plane</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="ecat63ml_8c_a893d65a8344a7a475236f11b4471e9bd_cgraph.png" border="0" usemap="#ecat63ml_8c_a893d65a8344a7a475236f11b4471e9bd_cgraph" alt=""/></div>
<map name="ecat63ml_8c_a893d65a8344a7a475236f11b4471e9bd_cgraph" id="ecat63ml_8c_a893d65a8344a7a475236f11b4471e9bd_cgraph">
<area shape="rect" id="node3" href="ecat63ml_8c.html#af566384e63f743897f71d8ee41b3b292" title="mat_numdoc" alt="" coords="172,5,268,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a231a6f12df0eeec69699a0d4f3aa4c42"></a><!-- doxytag: member="ecat63ml.c::ecat63GetPlaneAndFrameNr" ref="a231a6f12df0eeec69699a0d4f3aa4c42" args="(MATRIXLIST *mlist, ECAT63_mainheader *h, int *plane_nr, int *frame_nr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ecat63GetPlaneAndFrameNr </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structMATRIXLIST.html">MATRIXLIST</a> *&#160;</td>
          <td class="paramname"><em>mlist</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structecat63__mainheader.html">ECAT63_mainheader</a> *&#160;</td>
          <td class="paramname"><em>h</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>plane_nr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>frame_nr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Calculate the number of planes and frames/gates from ECAT 6.3 matrix list. Check that all planes have equal nr of frames/gates, that frames/gates are sequentally numbered. This routines sorts the matrix list by planes.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">mlist</td><td>Ecat 6.3 matrix list; note that this list is here sorted by planes </td></tr>
    <tr><td class="paramname">h</td><td>Ecat 6.3 mainheader </td></tr>
    <tr><td class="paramname">plane_nr</td><td>Number of planes will be put here; NULL if not needed </td></tr>
    <tr><td class="paramname">frame_nr</td><td>Number of frames/gates will be put here; NULL if not needed </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>errstatus, which is STATUS_OK (0) when call was successful, and &gt;0 in case of an error. </dd></dl>

<p>Definition at line <a class="el" href="ecat63ml_8c_source.html#l00414">414</a> of file <a class="el" href="ecat63ml_8c_source.html">ecat63ml.c</a>.</p>

<p>References <a class="el" href="ecat63ml_8c_source.html#l00291">ecat63SortMatlistByPlane()</a>, <a class="el" href="ecat63_8h_source.html#l00069">Matval::frame</a>, <a class="el" href="ecat63_8h_source.html#l00069">Matval::gate</a>, <a class="el" href="ecat63ml_8c_source.html#l00276">mat_numdoc()</a>, <a class="el" href="ecat63_8h_source.html#l00065">MATRIXLIST::matdir</a>, <a class="el" href="ecat63_8h_source.html#l00056">MatDir::matnum</a>, <a class="el" href="ecat63_8h_source.html#l00063">MATRIXLIST::matrixNr</a>, <a class="el" href="ecat63_8h_source.html#l00059">MatDir::matstat</a>, <a class="el" href="ecat63_8h_source.html#l00097">ecat63_mainheader::num_frames</a>, <a class="el" href="ecat63_8h_source.html#l00097">ecat63_mainheader::num_gates</a>, <a class="el" href="ecat63_8h_source.html#l00069">Matval::plane</a>, <a class="el" href="img_8h_source.html#l00118">STATUS_FAULT</a>, <a class="el" href="img_8h_source.html#l00119">STATUS_MISSINGMATRIX</a>, and <a class="el" href="img_8h_source.html#l00118">STATUS_OK</a>.</p>

<p>Referenced by <a class="el" href="img__e63_8c_source.html#l01289">imgReadEcat63Header()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="ecat63ml_8c_a231a6f12df0eeec69699a0d4f3aa4c42_cgraph.png" border="0" usemap="#ecat63ml_8c_a231a6f12df0eeec69699a0d4f3aa4c42_cgraph" alt=""/></div>
<map name="ecat63ml_8c_a231a6f12df0eeec69699a0d4f3aa4c42_cgraph" id="ecat63ml_8c_a231a6f12df0eeec69699a0d4f3aa4c42_cgraph">
<area shape="rect" id="node3" href="ecat63ml_8c.html#aa2765243cddea6955fe20e0a7d453b36" title="ecat63SortMatlistByPlane" alt="" coords="243,5,416,35"/><area shape="rect" id="node5" href="ecat63ml_8c.html#af566384e63f743897f71d8ee41b3b292" title="mat_numdoc" alt="" coords="465,32,561,61"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a2477fe69c32ce33b443b9c0eaedae423"></a><!-- doxytag: member="ecat63ml.c::ecat63InitMatlist" ref="a2477fe69c32ce33b443b9c0eaedae423" args="(MATRIXLIST *mlist)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ecat63InitMatlist </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structMATRIXLIST.html">MATRIXLIST</a> *&#160;</td>
          <td class="paramname"><em>mlist</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Initiate ECAT matrix list. Call this once before first use.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">mlist</td><td>matrix list </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="ecat63ml_8c_source.html#l00069">69</a> of file <a class="el" href="ecat63ml_8c_source.html">ecat63ml.c</a>.</p>

<p>References <a class="el" href="ecat63_8h_source.html#l00065">MATRIXLIST::matdir</a>, <a class="el" href="ecat63_8h_source.html#l00063">MATRIXLIST::matrixNr</a>, and <a class="el" href="ecat63_8h_source.html#l00064">MATRIXLIST::matrixSpace</a>.</p>

<p>Referenced by <a class="el" href="img__e63_8c_source.html#l00886">ecat63AddImg()</a>, <a class="el" href="img__e63_8c_source.html#l00077">ecat63ReadAllToImg()</a>, <a class="el" href="img__e63_8c_source.html#l00568">ecat63ReadPlaneToImg()</a>, <a class="el" href="ecat63p_8c_source.html#l00296">ecat6PrintSubheader()</a>, <a class="el" href="img__e63_8c_source.html#l01464">imgReadEcat63Frame()</a>, and <a class="el" href="img__e63_8c_source.html#l01289">imgReadEcat63Header()</a>.</p>

</div>
</div>
<a class="anchor" id="a01664c72df6a487a1de8d1da3bbc9983"></a><!-- doxytag: member="ecat63ml.c::ecat63Matenter" ref="a01664c72df6a487a1de8d1da3bbc9983" args="(FILE *fp, int matnum, int blkNr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ecat63Matenter </td>
          <td>(</td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>fp</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>matnum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>blkNr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Prepare matrix list for additional matrix data and Directory records are written in big endian byte order. Set block_nr to the number of data blocks excluding header;</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">fp</td><td>file pointer </td></tr>
    <tr><td class="paramname">matnum</td><td>matrix number [1..number of matrixes] </td></tr>
    <tr><td class="paramname">blkNr</td><td>matrix block number [ &gt;= 1] </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>block number for matrix header, or 0 in case of an error. </dd></dl>

<p>Definition at line <a class="el" href="ecat63ml_8c_source.html#l00186">186</a> of file <a class="el" href="ecat63ml_8c_source.html">ecat63ml.c</a>.</p>

<p>References <a class="el" href="ecat63_8h_source.html#l00052">ECAT63_TEST</a>, <a class="el" href="ecat63_8h_source.html#l00027">MatBLKSIZE</a>, and <a class="el" href="ecat63_8h_source.html#l00028">MatFirstDirBlk</a>.</p>

<p>Referenced by <a class="el" href="ecat63w_8c_source.html#l00576">ecat63WriteAttn()</a>, <a class="el" href="ecat63w_8c_source.html#l00429">ecat63WriteImage()</a>, <a class="el" href="ecat63w_8c_source.html#l00700">ecat63WriteImageMatrix()</a>, <a class="el" href="ecat63w_8c_source.html#l00527">ecat63WriteNorm()</a>, <a class="el" href="ecat63w_8c_source.html#l00478">ecat63WriteScan()</a>, and <a class="el" href="ecat63w_8c_source.html#l00784">ecat63WriteScanMatrix()</a>.</p>

</div>
</div>
<a class="anchor" id="aabc712142bcbc9e27d79a840e80212ae"></a><!-- doxytag: member="ecat63ml.c::ecat63PrintMatlist" ref="aabc712142bcbc9e27d79a840e80212ae" args="(MATRIXLIST *ml)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ecat63PrintMatlist </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structMATRIXLIST.html">MATRIXLIST</a> *&#160;</td>
          <td class="paramname"><em>ml</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Print ECAT matrix list on stdout.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">ml</td><td>matrix list </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="ecat63ml_8c_source.html#l00160">160</a> of file <a class="el" href="ecat63ml_8c_source.html">ecat63ml.c</a>.</p>

<p>References <a class="el" href="ecat63_8h_source.html#l00069">Matval::bed</a>, <a class="el" href="ecat63_8h_source.html#l00058">MatDir::endblk</a>, <a class="el" href="ecat63_8h_source.html#l00069">Matval::frame</a>, <a class="el" href="ecat63_8h_source.html#l00069">Matval::gate</a>, <a class="el" href="ecat63ml_8c_source.html#l00276">mat_numdoc()</a>, <a class="el" href="ecat63_8h_source.html#l00065">MATRIXLIST::matdir</a>, <a class="el" href="ecat63_8h_source.html#l00056">MatDir::matnum</a>, <a class="el" href="ecat63_8h_source.html#l00063">MATRIXLIST::matrixNr</a>, <a class="el" href="ecat63_8h_source.html#l00069">Matval::plane</a>, and <a class="el" href="ecat63_8h_source.html#l00057">MatDir::strtblk</a>.</p>

<p>Referenced by <a class="el" href="img__e63_8c_source.html#l00077">ecat63ReadAllToImg()</a>, and <a class="el" href="ecat63p_8c_source.html#l00296">ecat6PrintSubheader()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="ecat63ml_8c_aabc712142bcbc9e27d79a840e80212ae_cgraph.png" border="0" usemap="#ecat63ml_8c_aabc712142bcbc9e27d79a840e80212ae_cgraph" alt=""/></div>
<map name="ecat63ml_8c_aabc712142bcbc9e27d79a840e80212ae_cgraph" id="ecat63ml_8c_aabc712142bcbc9e27d79a840e80212ae_cgraph">
<area shape="rect" id="node3" href="ecat63ml_8c.html#af566384e63f743897f71d8ee41b3b292" title="mat_numdoc" alt="" coords="183,5,279,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a6cce9d0e541e82d56c9d162f16202179"></a><!-- doxytag: member="ecat63ml.c::ecat63ReadMatlist" ref="a6cce9d0e541e82d56c9d162f16202179" args="(FILE *fp, MATRIXLIST *ml)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ecat63ReadMatlist </td>
          <td>(</td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>fp</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structMATRIXLIST.html">MATRIXLIST</a> *&#160;</td>
          <td class="paramname"><em>ml</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Read ECAT matrix list. Matrix list must be initiated (once) before calling this.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">fp</td><td>file pointer </td></tr>
    <tr><td class="paramname">ml</td><td>matrix list </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns 0 if ok, 1 if invalid input, 2 first matrix is not found, 3 if failed to read matrix, 4 failed to allocate memory, 5 other error </dd></dl>

<p>Definition at line <a class="el" href="ecat63ml_8c_source.html#l00097">97</a> of file <a class="el" href="ecat63ml_8c_source.html">ecat63ml.c</a>.</p>

<p>References <a class="el" href="ecat63_8h_source.html#l00052">ECAT63_TEST</a>, <a class="el" href="ecat63ml_8c_source.html#l00080">ecat63EmptyMatlist()</a>, <a class="el" href="ecat63_8h_source.html#l00058">MatDir::endblk</a>, <a class="el" href="ecat63_8h_source.html#l00027">MatBLKSIZE</a>, <a class="el" href="ecat63_8h_source.html#l00065">MATRIXLIST::matdir</a>, <a class="el" href="ecat63_8h_source.html#l00028">MatFirstDirBlk</a>, <a class="el" href="ecat63_8h_source.html#l00056">MatDir::matnum</a>, <a class="el" href="ecat63_8h_source.html#l00063">MATRIXLIST::matrixNr</a>, <a class="el" href="ecat63_8h_source.html#l00064">MATRIXLIST::matrixSpace</a>, <a class="el" href="ecat63_8h_source.html#l00059">MatDir::matstat</a>, and <a class="el" href="ecat63_8h_source.html#l00057">MatDir::strtblk</a>.</p>

<p>Referenced by <a class="el" href="img__e63_8c_source.html#l00886">ecat63AddImg()</a>, <a class="el" href="img__e63_8c_source.html#l00077">ecat63ReadAllToImg()</a>, <a class="el" href="img__e63_8c_source.html#l00568">ecat63ReadPlaneToImg()</a>, <a class="el" href="ecat63p_8c_source.html#l00296">ecat6PrintSubheader()</a>, <a class="el" href="img__e63_8c_source.html#l01464">imgReadEcat63Frame()</a>, and <a class="el" href="img__e63_8c_source.html#l01289">imgReadEcat63Header()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="ecat63ml_8c_a6cce9d0e541e82d56c9d162f16202179_cgraph.png" border="0" usemap="#ecat63ml_8c_a6cce9d0e541e82d56c9d162f16202179_cgraph" alt=""/></div>
<map name="ecat63ml_8c_a6cce9d0e541e82d56c9d162f16202179_cgraph" id="ecat63ml_8c_a6cce9d0e541e82d56c9d162f16202179_cgraph">
<area shape="rect" id="node3" href="ecat63ml_8c.html#a2d931d7e3d4e21159731b7c480c209b9" title="ecat63EmptyMatlist" alt="" coords="184,5,323,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="af88528086eaae0762fa9c551f3e55d92"></a><!-- doxytag: member="ecat63ml.c::ecat63SortMatlistByFrame" ref="af88528086eaae0762fa9c551f3e55d92" args="(MATRIXLIST *ml)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ecat63SortMatlistByFrame </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structMATRIXLIST.html">MATRIXLIST</a> *&#160;</td>
          <td class="paramname"><em>ml</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Sort matrixlist by frame and plane. Bubble sorting algorithm.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">ml</td><td>matrix list </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="ecat63ml_8c_source.html#l00316">316</a> of file <a class="el" href="ecat63ml_8c_source.html">ecat63ml.c</a>.</p>

<p>References <a class="el" href="ecat63_8h_source.html#l00069">Matval::frame</a>, <a class="el" href="ecat63ml_8c_source.html#l00276">mat_numdoc()</a>, <a class="el" href="ecat63_8h_source.html#l00065">MATRIXLIST::matdir</a>, <a class="el" href="ecat63_8h_source.html#l00056">MatDir::matnum</a>, <a class="el" href="ecat63_8h_source.html#l00063">MATRIXLIST::matrixNr</a>, and <a class="el" href="ecat63_8h_source.html#l00069">Matval::plane</a>.</p>

<p>Referenced by <a class="el" href="img__e63_8c_source.html#l01464">imgReadEcat63Frame()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="ecat63ml_8c_af88528086eaae0762fa9c551f3e55d92_cgraph.png" border="0" usemap="#ecat63ml_8c_af88528086eaae0762fa9c551f3e55d92_cgraph" alt=""/></div>
<map name="ecat63ml_8c_af88528086eaae0762fa9c551f3e55d92_cgraph" id="ecat63ml_8c_af88528086eaae0762fa9c551f3e55d92_cgraph">
<area shape="rect" id="node3" href="ecat63ml_8c.html#af566384e63f743897f71d8ee41b3b292" title="mat_numdoc" alt="" coords="233,5,329,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="aa2765243cddea6955fe20e0a7d453b36"></a><!-- doxytag: member="ecat63ml.c::ecat63SortMatlistByPlane" ref="aa2765243cddea6955fe20e0a7d453b36" args="(MATRIXLIST *ml)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ecat63SortMatlistByPlane </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structMATRIXLIST.html">MATRIXLIST</a> *&#160;</td>
          <td class="paramname"><em>ml</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Sort matrixlist by plane and frame. Bubble sorting algorithm.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">ml</td><td>marix list. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="ecat63ml_8c_source.html#l00291">291</a> of file <a class="el" href="ecat63ml_8c_source.html">ecat63ml.c</a>.</p>

<p>References <a class="el" href="ecat63_8h_source.html#l00069">Matval::frame</a>, <a class="el" href="ecat63ml_8c_source.html#l00276">mat_numdoc()</a>, <a class="el" href="ecat63_8h_source.html#l00065">MATRIXLIST::matdir</a>, <a class="el" href="ecat63_8h_source.html#l00056">MatDir::matnum</a>, <a class="el" href="ecat63_8h_source.html#l00063">MATRIXLIST::matrixNr</a>, and <a class="el" href="ecat63_8h_source.html#l00069">Matval::plane</a>.</p>

<p>Referenced by <a class="el" href="ecat63ml_8c_source.html#l00414">ecat63GetPlaneAndFrameNr()</a>, and <a class="el" href="img__e63_8c_source.html#l01289">imgReadEcat63Header()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="ecat63ml_8c_aa2765243cddea6955fe20e0a7d453b36_cgraph.png" border="0" usemap="#ecat63ml_8c_aa2765243cddea6955fe20e0a7d453b36_cgraph" alt=""/></div>
<map name="ecat63ml_8c_aa2765243cddea6955fe20e0a7d453b36_cgraph" id="ecat63ml_8c_aa2765243cddea6955fe20e0a7d453b36_cgraph">
<area shape="rect" id="node3" href="ecat63ml_8c.html#af566384e63f743897f71d8ee41b3b292" title="mat_numdoc" alt="" coords="228,5,324,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a7561756da60d9e38a1419da8ebf220fb"></a><!-- doxytag: member="ecat63ml.c::mat_numcod" ref="a7561756da60d9e38a1419da8ebf220fb" args="(int frame, int plane, int gate, int data, int bed)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int mat_numcod </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>frame</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>plane</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>gate</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>bed</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the matrix identifier</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">frame</td><td>frame number [0..4096] </td></tr>
    <tr><td class="paramname">plane</td><td>plane number [0..256] </td></tr>
    <tr><td class="paramname">gate</td><td>gate number [0..64] </td></tr>
    <tr><td class="paramname">data</td><td>data number [0..8] </td></tr>
    <tr><td class="paramname">bed</td><td>bed position [0..16] </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>matrix indentifier coding </dd></dl>

<p>Definition at line <a class="el" href="ecat63ml_8c_source.html#l00266">266</a> of file <a class="el" href="ecat63ml_8c_source.html">ecat63ml.c</a>.</p>

<p>Referenced by <a class="el" href="img__e63_8c_source.html#l00886">ecat63AddImg()</a>, <a class="el" href="ecat63ml_8c_source.html#l00519">ecat63GatherMatlist()</a>, <a class="el" href="img__e63_8c_source.html#l00374">ecat63WriteAllImg()</a>, and <a class="el" href="img__e63_8c_source.html#l01656">imgWriteEcat63Frame()</a>.</p>

</div>
</div>
<a class="anchor" id="af566384e63f743897f71d8ee41b3b292"></a><!-- doxytag: member="ecat63ml.c::mat_numdoc" ref="af566384e63f743897f71d8ee41b3b292" args="(int matnum, Matval *matval)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void mat_numdoc </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>matnum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structMatval.html">Matval</a> *&#160;</td>
          <td class="paramname"><em>matval</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Conversion of matrix identifier to numerical values</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">matnum</td><td>matrix identifier coding </td></tr>
    <tr><td class="paramname">matval</td><td>target matrix value structure </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="ecat63ml_8c_source.html#l00276">276</a> of file <a class="el" href="ecat63ml_8c_source.html">ecat63ml.c</a>.</p>

<p>References <a class="el" href="ecat63_8h_source.html#l00069">Matval::bed</a>, <a class="el" href="ecat63_8h_source.html#l00069">Matval::data</a>, <a class="el" href="ecat63_8h_source.html#l00069">Matval::frame</a>, <a class="el" href="ecat63_8h_source.html#l00069">Matval::gate</a>, and <a class="el" href="ecat63_8h_source.html#l00069">Matval::plane</a>.</p>

<p>Referenced by <a class="el" href="img__e63_8c_source.html#l00886">ecat63AddImg()</a>, <a class="el" href="ecat63ml_8c_source.html#l00360">ecat63DeleteLateFrames()</a>, <a class="el" href="ecat63ml_8c_source.html#l00519">ecat63GatherMatlist()</a>, <a class="el" href="ecat63ml_8c_source.html#l00462">ecat63GetNums()</a>, <a class="el" href="ecat63ml_8c_source.html#l00414">ecat63GetPlaneAndFrameNr()</a>, <a class="el" href="ecat63ml_8c_source.html#l00160">ecat63PrintMatlist()</a>, <a class="el" href="img__e63_8c_source.html#l00077">ecat63ReadAllToImg()</a>, <a class="el" href="img__e63_8c_source.html#l00568">ecat63ReadPlaneToImg()</a>, <a class="el" href="ecat63ml_8c_source.html#l00316">ecat63SortMatlistByFrame()</a>, <a class="el" href="ecat63ml_8c_source.html#l00291">ecat63SortMatlistByPlane()</a>, <a class="el" href="ecat63p_8c_source.html#l00296">ecat6PrintSubheader()</a>, and <a class="el" href="img__e63_8c_source.html#l01464">imgReadEcat63Frame()</a>.</p>

</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Mon Aug 8 2011 by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>