Sophie

Sophie

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

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>libtpcimgio.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="#define-members">Defines</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">libtpcimgio.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;time.h&gt;</code><br/>
<code>#include &lt;string.h&gt;</code><br/>
<code>#include &lt;ctype.h&gt;</code><br/>
<code>#include &quot;libtpcmisc.h&quot;</code><br/>
<code>#include &quot;<a class="el" href="imgio_8h_source.html">include/imgio.h</a>&quot;</code><br/>
</div><div class="textblock"><div class="dynheader">
Include dependency graph for libtpcimgio.c:</div>
<div class="dyncontent">
<div class="center"><img src="libtpcimgio_8c__incl.png" border="0" usemap="#libtpcimgio_8c" alt=""/></div>
<map name="libtpcimgio_8c" id="libtpcimgio_8c">
<area shape="rect" id="node17" href="imgio_8h.html" title="include/imgio.h" alt="" coords="1004,83,1113,112"/><area shape="rect" id="node19" href="img_8h.html" title="img.h" alt="" coords="797,315,851,344"/><area shape="rect" id="node23" href="analyze_8h.html" title="analyze.h" alt="" coords="1061,237,1139,267"/><area shape="rect" id="node25" href="imgdecay_8h.html" title="imgdecay.h" alt="" coords="760,160,848,189"/><area shape="rect" id="node28" href="sif_8h.html" title="sif.h" alt="" coords="357,160,403,189"/><area shape="rect" id="node40" href="ecat63_8h.html" title="ecat63.h" alt="" coords="1163,237,1235,267"/><area shape="rect" id="node42" href="imgfile_8h.html" title="imgfile.h" alt="" coords="1024,160,1093,189"/><area shape="rect" id="node45" href="ecat7_8h.html" title="ecat7.h" alt="" coords="992,315,1056,344"/><area shape="rect" id="node49" href="imgunit_8h.html" title="imgunit.h" alt="" coords="912,237,987,267"/><area shape="rect" id="node54" href="vol_8h.html" title="vol.h" alt="" coords="1269,160,1320,189"/><area shape="rect" id="node57" href="interfile_8h.html" title="interfile.h" alt="" coords="1344,160,1419,189"/><area shape="rect" id="node59" href="imgmax_8h.html" title="imgmax.h" alt="" coords="872,160,949,189"/><area shape="rect" id="node62" href="micropet_8h.html" title="micropet.h" alt="" coords="1443,160,1525,189"/><area shape="rect" id="node64" href="libtpcimgiov_8h.html" title="libtpcimgiov.h" alt="" coords="1549,160,1651,189"/></map>
</div>
</div>
<p><a href="libtpcimgio_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="define-members"></a>
Defines</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="libtpcimgio_8c.html#a6e43beaa714b1bf01ce2271440786e38">LIB_NAME</a>&#160;&#160;&#160;&quot;libtpcimgio&quot;</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="libtpcimgio_8c.html#a4b75e63d1b1c0cfccf7cb67b1bd3473a">IMG_IO</a>&#160;&#160;&#160;1</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="libtpcimgio_8c.html#aa711c07892c4d12c4cedc049aba6879a">POLARMAP_IO</a>&#160;&#160;&#160;2</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="libtpcimgio_8c.html#a2c63ae95fe7c6106ae1ec9c283afa486">MODULE</a>&#160;&#160;&#160;3</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="libtpcimgio_8c.html#ac7129ccaa762fa4c6b07733faa0a16e0">MAXVAL</a>&#160;&#160;&#160;100000;</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="libtpcimgio_8c.html#ab42f20ec3af13685562ed55fa78ec56f">TEST_WITH_FILENAME</a>(filename, desired_length, error_value)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="libtpcimgio_8c.html#a16df5312f2ac87531396bbd9a04d6391">TEST_WITH_FORMAT</a>(filename, desired_format, error_value)</td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="libtpcimgio_8c.html#ab6d116735b7a9745316016b76c554e33">test_create_img</a> (<a class="el" href="structIMG.html">IMG</a> *img, int dim_x, int dim_y, int dim_z, int dim_t)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="libtpcimgio_8c.html#a5b4d1ec2556a3ffaef12dcaaf415a180">test_create_polarmap</a> (<a class="el" href="structIMG.html">IMG</a> *img, int num_rings, int *sectors_per_ring, float *ring_position, short int *ring_angle, short int start_angle)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="libtpcimgio_8c.html#a01a527ea52f46ff680d8cdeeb44b30b6">test_img_io</a> (<a class="el" href="structIMG.html">IMG</a> *img)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="libtpcimgio_8c.html#a5396e2e228d56b4efb2719be80f23ce1">test_polarmap_io</a> (<a class="el" href="structIMG.html">IMG</a> *img)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="libtpcimgio_8c.html#a5bacbe3c748e18b113fa41a7ebd4b7f6">test_modules</a> (<a class="el" href="structIMG.html">IMG</a> *img)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="libtpcimgio_8c.html#ae5ad5cbeccaedc03a48d3c7eaa803e79">print_usage</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="libtpcimgio_8c.html#a0ddf1224851353fc92bfbff6f499fa97">main</a> (int argc, char *argv[])</td></tr>
<tr><td colspan="2"><h2><a name="var-members"></a>
Variables</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="libtpcimgio_8c.html#ab848ce91ba14d3dc5c87d0b42f3a1c0d">VERBOSE</a> = 0</td></tr>
</table>
<hr/><h2>Define Documentation</h2>
<a class="anchor" id="a4b75e63d1b1c0cfccf7cb67b1bd3473a"></a><!-- doxytag: member="libtpcimgio.c::IMG_IO" ref="a4b75e63d1b1c0cfccf7cb67b1bd3473a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define IMG_IO&#160;&#160;&#160;1</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Serial numbers for function names. </p>

<p>Definition at line <a class="el" href="libtpcimgio_8c_source.html#l00048">48</a> of file <a class="el" href="libtpcimgio_8c_source.html">libtpcimgio.c</a>.</p>

<p>Referenced by <a class="el" href="libtpcimgio_8c_source.html#l00085">main()</a>.</p>

</div>
</div>
<a class="anchor" id="a6e43beaa714b1bf01ce2271440786e38"></a><!-- doxytag: member="libtpcimgio.c::LIB_NAME" ref="a6e43beaa714b1bf01ce2271440786e38" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LIB_NAME&#160;&#160;&#160;&quot;libtpcimgio&quot;</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Copyright (c) 2004-2008 by Turku PET Centre</p>
<p>File: <a class="el" href="libtpcimgio_8c.html">libtpcimgio.c</a></p>
<p>Purpose: methods for testing functions in the library libtpcimgio, and for printing out libtpcimgio information, such as Readme, History and build information.</p>
<p>NOTICE! This program should always have the same version with the library.</p>
<p>Version:</p>
<p>2005-02-22 1.0.0 Jarkko Johansson 2005-04-26 1.1.0 Jarkko Johansson 2005-08-01 1.1.1 Jarkko Johansson 2005-11-21 1.1.3 Vesa Oikonen 2005-12-12 1.1.4 Vesa Oikonen 2006-10-31 1.1.5 Vesa Oikonen 2006-12-28 1.1.6 Vesa Oikonen 2007-02-02 1.2.0 Vesa Oikonen Added basic test functions for image i/o. 2007-02-11 1.2.1 VO 2007-02-27 1.2.2 VO 2007-03-13 1.2.3 VO 2007-03-14 1.2.4 VO 2007-03-25 1.2.5 VO 2007-04-03 1.3.0 VO Added test function for polar map img i/o. 2007-17-07 Harri Merisaari Modified for optional ANSi compatibility 2007-09-10 1.3.2 VO 2007-09-10 1.3.3 VO 2007-09-11 1.3.4 VO 2007-09-12 1.3.5 VO 2008-07-07 1.3.6 VO 2008-07-11 1.3.7 VO Later: see <a class="el" href="libtpcimgiov_8c.html">libtpcimgiov.c</a>. Library name. </p>

<p>Definition at line <a class="el" href="libtpcimgio_8c_source.html#l00045">45</a> of file <a class="el" href="libtpcimgio_8c_source.html">libtpcimgio.c</a>.</p>

<p>Referenced by <a class="el" href="libtpcimgio_8c_source.html#l00513">print_usage()</a>.</p>

</div>
</div>
<a class="anchor" id="ac7129ccaa762fa4c6b07733faa0a16e0"></a><!-- doxytag: member="libtpcimgio.c::MAXVAL" ref="ac7129ccaa762fa4c6b07733faa0a16e0" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MAXVAL&#160;&#160;&#160;100000;</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="libtpcimgio_8c_source.html#l00064">64</a> of file <a class="el" href="libtpcimgio_8c_source.html">libtpcimgio.c</a>.</p>

</div>
</div>
<a class="anchor" id="a2c63ae95fe7c6106ae1ec9c283afa486"></a><!-- doxytag: member="libtpcimgio.c::MODULE" ref="a2c63ae95fe7c6106ae1ec9c283afa486" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MODULE&#160;&#160;&#160;3</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="libtpcimgio_8c_source.html#l00050">50</a> of file <a class="el" href="libtpcimgio_8c_source.html">libtpcimgio.c</a>.</p>

<p>Referenced by <a class="el" href="libtpcimgio_8c_source.html#l00085">main()</a>.</p>

</div>
</div>
<a class="anchor" id="aa711c07892c4d12c4cedc049aba6879a"></a><!-- doxytag: member="libtpcimgio.c::POLARMAP_IO" ref="aa711c07892c4d12c4cedc049aba6879a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define POLARMAP_IO&#160;&#160;&#160;2</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="libtpcimgio_8c_source.html#l00049">49</a> of file <a class="el" href="libtpcimgio_8c_source.html">libtpcimgio.c</a>.</p>

<p>Referenced by <a class="el" href="libtpcimgio_8c_source.html#l00085">main()</a>.</p>

</div>
</div>
<a class="anchor" id="ab42f20ec3af13685562ed55fa78ec56f"></a><!-- doxytag: member="libtpcimgio.c::TEST_WITH_FILENAME" ref="ab42f20ec3af13685562ed55fa78ec56f" args="(filename, desired_length, error_value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TEST_WITH_FILENAME</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">filename, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">desired_length, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">error_value&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<b>Value:</b><div class="fragment"><pre class="fragment">sprintf(test_str,filename); \
  <a class="code" href="analyze_8c.html#a78fdd5d5b299585ba8546b2071154d3a">anaRemoveFNameExtension</a>(test_str); \
  i = 0; \
  <span class="keywordflow">while</span>(test_str[i] != 0) i++; \
  <span class="keywordflow">if</span>(i != desired_length) <span class="keywordflow">return</span>(error_value); \
  memset(test_str,0,256); \
  \
</pre></div>
<p>Referenced by <a class="el" href="libtpcimgio_8c_source.html#l00415">test_modules()</a>.</p>

</div>
</div>
<a class="anchor" id="a16df5312f2ac87531396bbd9a04d6391"></a><!-- doxytag: member="libtpcimgio.c::TEST_WITH_FORMAT" ref="a16df5312f2ac87531396bbd9a04d6391" args="(filename, desired_format, error_value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TEST_WITH_FORMAT</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">filename, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">desired_format, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">error_value&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<b>Value:</b><div class="fragment"><pre class="fragment">img-&gt;_fileFormat = <a class="code" href="img_8h.html#a3aea8253aaffd2e73cf8641661f6a459">IMG_UNKNOWN</a>; \
        sprintf(test_str,filename); \
  <a class="code" href="imgfile_8c.html#abe83b47e7d8d600d579c581b6e7209bd">imgFormatFromFName</a>(img, test_str); \
  <span class="keywordflow">if</span>(img-&gt;_fileFormat != desired_format) <span class="keywordflow">return</span>(error_value); \
  memset(test_str,0,256); \
  \
</pre></div>
<p>Referenced by <a class="el" href="libtpcimgio_8c_source.html#l00415">test_modules()</a>.</p>

</div>
</div>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="a0ddf1224851353fc92bfbff6f499fa97"></a><!-- doxytag: member="libtpcimgio.c::main" ref="a0ddf1224851353fc92bfbff6f499fa97" args="(int argc, char *argv[])" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int main </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>argc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>argv</em>[]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Main function. For retrieval of library information and for testing.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">argc</td><td>number of arguments </td></tr>
    <tr><td class="paramname">argv</td><td>array of pointers to string arguments </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>0 in case of successfull execution </dd></dl>

<p>Definition at line <a class="el" href="libtpcimgio_8c_source.html#l00085">85</a> of file <a class="el" href="libtpcimgio_8c_source.html">libtpcimgio.c</a>.</p>

<p>References <a class="el" href="libtpcimgio_8c_source.html#l00048">IMG_IO</a>, <a class="el" href="img_8c_source.html#l00216">imgEmpty()</a>, <a class="el" href="img_8c_source.html#l00163">imgInit()</a>, <a class="el" href="libtpcimgiov_8c_source.html#l00442">libtpcimgio_print_build()</a>, <a class="el" href="libtpcimgiov_8c_source.html#l00431">libtpcimgio_print_dhistory()</a>, <a class="el" href="libtpcimgiov_8c_source.html#l00419">libtpcimgio_print_dreadme()</a>, <a class="el" href="libtpcimgiov_8c_source.html#l00242">libtpcimgio_print_history()</a>, <a class="el" href="libtpcimgiov_8c_source.html#l00135">libtpcimgio_print_readme()</a>, <a class="el" href="libtpcimgio_8c_source.html#l00050">MODULE</a>, <a class="el" href="libtpcimgio_8c_source.html#l00049">POLARMAP_IO</a>, <a class="el" href="libtpcimgio_8c_source.html#l00513">print_usage()</a>, <a class="el" href="libtpcimgio_8c_source.html#l00206">test_create_img()</a>, <a class="el" href="libtpcimgio_8c_source.html#l00252">test_create_polarmap()</a>, <a class="el" href="libtpcimgio_8c_source.html#l00313">test_img_io()</a>, <a class="el" href="libtpcimgio_8c_source.html#l00415">test_modules()</a>, <a class="el" href="libtpcimgio_8c_source.html#l00387">test_polarmap_io()</a>, and <a class="el" href="libtpcimgio_8c_source.html#l00076">VERBOSE</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="libtpcimgio_8c_a0ddf1224851353fc92bfbff6f499fa97_cgraph.png" border="0" usemap="#libtpcimgio_8c_a0ddf1224851353fc92bfbff6f499fa97_cgraph" alt=""/></div>
<map name="libtpcimgio_8c_a0ddf1224851353fc92bfbff6f499fa97_cgraph" id="libtpcimgio_8c_a0ddf1224851353fc92bfbff6f499fa97_cgraph">
<area shape="rect" id="node3" href="img_8c.html#ada573d4b40da77be4455bb9fab9a3033" title="imgEmpty" alt="" coords="987,748,1067,777"/><area shape="rect" id="node7" href="img_8c.html#af95041292a0f9e4a82a10b49a074a95c" title="imgInit" alt="" coords="379,1607,440,1636"/><area shape="rect" id="node10" href="libtpcimgiov_8c.html#a3ee9432f65c33193d153468266bef355" title="libtpcimgio_print_build" alt="" coords="335,1660,484,1689"/><area shape="rect" id="node12" href="libtpcimgiov_8c.html#a5f7ec7f96ae79f904d9a9ee39547d882" title="libtpcimgio_print_dhistory" alt="" coords="107,1645,275,1675"/><area shape="rect" id="node14" href="libtpcimgiov_8c.html#a682fd6f66a0e2f8fc42e41aa018de033" title="libtpcimgio_print_history" alt="" coords="328,1713,491,1743"/><area shape="rect" id="node16" href="libtpcimgiov_8c.html#afa515b684fc8ea2485f7975efb18b3b2" title="libtpcimgio_print_dreadme" alt="" coords="104,1749,277,1779"/><area shape="rect" id="node18" href="libtpcimgiov_8c.html#a4fc496fbea253de8e22f94f9535554de" title="libtpcimgio_print_readme" alt="" coords="327,1779,492,1808"/><area shape="rect" id="node22" href="libtpcimgio_8c.html#ae5ad5cbeccaedc03a48d3c7eaa803e79" title="print_usage" alt="" coords="147,1541,235,1571"/><area shape="rect" id="node25" href="libtpcimgio_8c.html#ab6d116735b7a9745316016b76c554e33" title="test_create_img" alt="" coords="133,931,248,960"/><area shape="rect" id="node31" href="libtpcimgio_8c.html#a5b4d1ec2556a3ffaef12dcaaf415a180" title="test_create_polarmap" alt="" coords="117,1075,264,1104"/><area shape="rect" id="node34" href="libtpcimgio_8c.html#a01a527ea52f46ff680d8cdeeb44b30b6" title="test_img_io" alt="" coords="147,1437,235,1467"/><area shape="rect" id="node124" href="libtpcimgio_8c.html#a5bacbe3c748e18b113fa41a7ebd4b7f6" title="test_modules" alt="" coords="564,1421,663,1451"/><area shape="rect" id="node128" href="libtpcimgio_8c.html#a5396e2e228d56b4efb2719be80f23ce1" title="test_polarmap_io" alt="" coords="131,1243,251,1272"/><area shape="rect" id="node5" href="img_8c.html#ad124d2d496934d677156cc8779a1e567" title="imgSetStatus" alt="" coords="1152,1212,1253,1241"/><area shape="rect" id="node27" href="img_8c.html#a9b2670da9c7685e6d53058cdf1db1199" title="imgAllocate" alt="" coords="772,800,863,829"/><area shape="rect" id="node36" href="imgmax_8c.html#a8b30b11486bc0e17aae81bc54e23cc16" title="imgAbsMax" alt="" coords="364,1396,455,1425"/><area shape="rect" id="node39" href="imgmax_8c.html#a4230e721a2c8767cfebe73d48c0d910d" title="imgFrameMinMax" alt="" coords="347,1449,472,1479"/><area shape="rect" id="node42" href="imgmax_8c.html#ac6376848cceb07fb6518fa886fd617da" title="imgMax" alt="" coords="376,1503,443,1532"/><area shape="rect" id="node44" href="imgmax_8c.html#a97c48d1ed44d81b2d96ce1a139b99009" title="imgMinMax" alt="" coords="983,1552,1071,1581"/><area shape="rect" id="node46" href="imgfile_8c.html#a25e72562a72da715d4557ed9728ff6e1" title="imgRead" alt="" coords="372,1060,447,1089"/><area shape="rect" id="node103" href="imgfile_8c.html#ad8d06e4d0a57aa2db0b30488a0ce9543" title="imgWrite" alt="" coords="576,1293,651,1323"/><area shape="rect" id="node48" href="analyze_8c.html#a962221ab7adb0bed2050284912d473ca" title="anaExists" alt="" coords="777,955,857,984"/><area shape="rect" id="node50" href="img__e63_8c.html#af743a62694374d314fc164f3b4ce942f" title="ecat63ReadAllToImg" alt="" coords="541,435,685,464"/><area shape="rect" id="node66" href="ecat63r_8c.html#af904c6b26259c4f280cdc18f92aeeae5" title="ecat63ReadMainheader" alt="" coords="739,696,896,725"/><area shape="rect" id="node80" href="ecat7p_8c.html#af7076f45a7f4d8c4a339e5e7d60b0f46" title="ecat7filetype" alt="" coords="565,1008,661,1037"/><area shape="rect" id="node82" href="ecat7r_8c.html#a7d6241dd7a472a4f2aaf3eb16dc03dc1" title="ecat7ReadMainheader" alt="" coords="741,1008,893,1037"/><area shape="rect" id="node84" href="img__e7_8c.html#a4b25c303088592c0518bf26df1d20aec" title="imgEcat7Supported" alt="" coords="749,1061,885,1091"/><area shape="rect" id="node86" href="img__ana_8c.html#aefc54f0812e16d43a17edcdc342be35b" title="imgReadAnalyze" alt="" coords="553,904,673,933"/><area shape="rect" id="node91" href="img__e7_8c.html#a7d6df1a1fa3b56a9bfdf901eb348da4c" title="imgReadEcat7" alt="" coords="560,1216,667,1245"/><area shape="rect" id="node101" href="img_8c.html#a2af7a83f855fdb5de24325614912ae5e" title="imgStatus" alt="" coords="573,1112,653,1141"/><area shape="rect" id="node52" href="ecat63ml_8c.html#a9dc9509d99d809410fc5904410562856" title="ecat63DeleteLateFrames" alt="" coords="733,541,901,571"/><area shape="rect" id="node54" href="ecat63ml_8c.html#a2d931d7e3d4e21159731b7c480c209b9" title="ecat63EmptyMatlist" alt="" coords="957,91,1096,120"/><area shape="rect" id="node56" href="ecat63ml_8c.html#a2477fe69c32ce33b443b9c0eaedae423" title="ecat63InitMatlist" alt="" coords="759,168,876,197"/><area shape="rect" id="node58" href="ecat63p_8c.html#a129d5f8c3d6135b9934cebc54d27bc47" title="ecat63PrintMainheader" alt="" coords="949,852,1104,881"/><area shape="rect" id="node60" href="ecat63ml_8c.html#aabc712142bcbc9e27d79a840e80212ae" title="ecat63PrintMatlist" alt="" coords="755,221,880,251"/><area shape="rect" id="node62" href="ecat63r_8c.html#ac9c08bd1e03ddc4f4a8c83a5ea198e05" title="ecat63ReadAttnheader" alt="" coords="740,275,895,304"/><area shape="rect" id="node64" href="ecat63r_8c.html#adc36293804c18dd15771c61500841b7c" title="ecat63ReadImageheader" alt="" coords="735,328,900,357"/><area shape="rect" id="node68" href="ecat63r_8c.html#a7f3456ddf0f774026d462df66bf1210b" title="ecat63ReadMatdata" alt="" coords="748,381,887,411"/><area shape="rect" id="node70" href="ecat63ml_8c.html#a6cce9d0e541e82d56c9d162f16202179" title="ecat63ReadMatlist" alt="" coords="752,64,883,93"/><area shape="rect" id="node73" href="ecat63r_8c.html#a6a169297491f0f8a734247467cfb2b89" title="ecat63ReadNormheader" alt="" coords="736,435,899,464"/><area shape="rect" id="node75" href="ecat63r_8c.html#a811c9c52c52f1c749ee6cb0f7a51f884" title="ecat63ReadScanheader" alt="" coords="737,488,897,517"/><area shape="rect" id="node96" href="img__e7_8c.html#a13c42900c44b97ed1b759d7ca6348ab6" title="imgGetEcat7MHeader" alt="" coords="743,1421,892,1451"/><area shape="rect" id="node98" href="imgunit_8c.html#affce8dc83e60543c59d5b85678899db9" title="imgUnitFromEcat7" alt="" coords="961,1423,1092,1452"/><area shape="rect" id="node105" href="img__e63_8c.html#a443e0885c38b074c760a5b9a88554ce3" title="ecat63WriteAllImg" alt="" coords="753,1165,881,1195"/><area shape="rect" id="node108" href="imgfile_8c.html#abe83b47e7d8d600d579c581b6e7209bd" title="imgFormatFromFName" alt="" coords="739,1528,896,1557"/><area shape="rect" id="node111" href="img__e7_8c.html#a0e91bf23b5a578c06992c27f6e65e460" title="imgWrite2DEcat7" alt="" coords="964,1316,1089,1345"/><area shape="rect" id="node114" href="img__ana_8c.html#a380113542ddd5040b383221f1377d86f" title="imgWriteAnalyze" alt="" coords="757,1475,877,1504"/><area shape="rect" id="node118" href="img__e7_8c.html#a16fee12c445b0de04d5252f28fe48ae6" title="imgWriteEcat7" alt="" coords="973,1369,1080,1399"/><area shape="rect" id="node121" href="img__e7_8c.html#aabd4fa9a9594482278362ff653d92a5c" title="imgWritePolarmap" alt="" coords="963,1212,1091,1241"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ae5ad5cbeccaedc03a48d3c7eaa803e79"></a><!-- doxytag: member="libtpcimgio.c::print_usage" ref="ae5ad5cbeccaedc03a48d3c7eaa803e79" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void print_usage </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Function for printing the usage information of the libtpcimgio test program. </p>

<p>Definition at line <a class="el" href="libtpcimgio_8c_source.html#l00513">513</a> of file <a class="el" href="libtpcimgio_8c_source.html">libtpcimgio.c</a>.</p>

<p>References <a class="el" href="libtpcimgio_8c_source.html#l00045">LIB_NAME</a>, and <a class="el" href="libtpcimgiov_8c_source.html#l00442">libtpcimgio_print_build()</a>.</p>

<p>Referenced by <a class="el" href="libtpcimgio_8c_source.html#l00085">main()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="libtpcimgio_8c_ae5ad5cbeccaedc03a48d3c7eaa803e79_cgraph.png" border="0" usemap="#libtpcimgio_8c_ae5ad5cbeccaedc03a48d3c7eaa803e79_cgraph" alt=""/></div>
<map name="libtpcimgio_8c_ae5ad5cbeccaedc03a48d3c7eaa803e79_cgraph" id="libtpcimgio_8c_ae5ad5cbeccaedc03a48d3c7eaa803e79_cgraph">
<area shape="rect" id="node3" href="libtpcimgiov_8c.html#a3ee9432f65c33193d153468266bef355" title="libtpcimgio_print_build" alt="" coords="145,5,295,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ab6d116735b7a9745316016b76c554e33"></a><!-- doxytag: member="libtpcimgio.c::test_create_img" ref="ab6d116735b7a9745316016b76c554e33" args="(IMG *img, int dim_x, int dim_y, int dim_z, int dim_t)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int test_create_img </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structIMG.html">IMG</a> *&#160;</td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>dim_x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>dim_y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>dim_z</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>dim_t</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Create <a class="el" href="structIMG.html">IMG</a> for testing purposis.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">img</td><td>Pointer to an initiated but not allocated <a class="el" href="structIMG.html">IMG</a> </td></tr>
    <tr><td class="paramname">dim_x</td><td>X dimension (nr of columns) </td></tr>
    <tr><td class="paramname">dim_y</td><td>Y dimension (nr of rows) </td></tr>
    <tr><td class="paramname">dim_z</td><td>Z dimension (nr of planes) </td></tr>
    <tr><td class="paramname">dim_t</td><td>time dimension (nr of time frames, or gates) </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>0 if <a class="el" href="structIMG.html">IMG</a> could be created, or nonzero in case of error. </dd></dl>

<p>Definition at line <a class="el" href="libtpcimgio_8c_source.html#l00206">206</a> of file <a class="el" href="libtpcimgio_8c_source.html">libtpcimgio.c</a>.</p>

<p>References <a class="el" href="img_8h_source.html#l00314">IMG::decayCorrFactor</a>, <a class="el" href="img_8h_source.html#l00259">IMG::dimt</a>, <a class="el" href="img_8h_source.html#l00261">IMG::dimx</a>, <a class="el" href="img_8h_source.html#l00263">IMG::dimy</a>, <a class="el" href="img_8h_source.html#l00265">IMG::dimz</a>, <a class="el" href="img_8h_source.html#l00292">IMG::end</a>, <a class="el" href="img_8h_source.html#l00072">IMG_STATUS_INITIALIZED</a>, <a class="el" href="img_8h_source.html#l00080">IMG_TYPE_IMAGE</a>, <a class="el" href="img_8c_source.html#l00285">imgAllocate()</a>, <a class="el" href="imgunit_8h_source.html#l00022">IMGUNIT_KBQ_PER_ML</a>, <a class="el" href="img_8h_source.html#l00274">IMG::m</a>, <a class="el" href="img_8h_source.html#l00294">IMG::mid</a>, <a class="el" href="img_8h_source.html#l00284">IMG::planeNumber</a>, <a class="el" href="img_8h_source.html#l00290">IMG::start</a>, <a class="el" href="img_8h_source.html#l00164">IMG::status</a>, <a class="el" href="img_8h_source.html#l00198">IMG::type</a>, and <a class="el" href="img_8h_source.html#l00172">IMG::unit</a>.</p>

<p>Referenced by <a class="el" href="libtpcimgio_8c_source.html#l00085">main()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="libtpcimgio_8c_ab6d116735b7a9745316016b76c554e33_cgraph.png" border="0" usemap="#libtpcimgio_8c_ab6d116735b7a9745316016b76c554e33_cgraph" alt=""/></div>
<map name="libtpcimgio_8c_ab6d116735b7a9745316016b76c554e33_cgraph" id="libtpcimgio_8c_ab6d116735b7a9745316016b76c554e33_cgraph">
<area shape="rect" id="node3" href="img_8c.html#a9b2670da9c7685e6d53058cdf1db1199" title="imgAllocate" alt="" coords="168,32,259,61"/><area shape="rect" id="node5" href="img_8c.html#ada573d4b40da77be4455bb9fab9a3033" title="imgEmpty" alt="" coords="308,5,388,35"/><area shape="rect" id="node7" href="img_8c.html#ad124d2d496934d677156cc8779a1e567" title="imgSetStatus" alt="" coords="437,32,539,61"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a5b4d1ec2556a3ffaef12dcaaf415a180"></a><!-- doxytag: member="libtpcimgio.c::test_create_polarmap" ref="a5b4d1ec2556a3ffaef12dcaaf415a180" args="(IMG *img, int num_rings, int *sectors_per_ring, float *ring_position, short int *ring_angle, short int start_angle)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int test_create_polarmap </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structIMG.html">IMG</a> *&#160;</td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>num_rings</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>sectors_per_ring</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>ring_position</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">short int *&#160;</td>
          <td class="paramname"><em>ring_angle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">short int&#160;</td>
          <td class="paramname"><em>start_angle</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Create POLARMAP <a class="el" href="structIMG.html">IMG</a> for testing purposis.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">img</td><td>Pointer to an initiated but not allocated <a class="el" href="structIMG.html">IMG</a> </td></tr>
    <tr><td class="paramname">num_rings</td><td>Number of polar map rings </td></tr>
    <tr><td class="paramname">sectors_per_ring</td><td>Sectors per ring </td></tr>
    <tr><td class="paramname">ring_position</td><td>Ring positions </td></tr>
    <tr><td class="paramname">ring_angle</td><td>Ring angles </td></tr>
    <tr><td class="paramname">start_angle</td><td>Polar map start angle for rings, as defined in ECAT 7 header </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>0 if <a class="el" href="structIMG.html">IMG</a> could be created, or nonzero in case of error. </dd></dl>

<p>Definition at line <a class="el" href="libtpcimgio_8c_source.html#l00252">252</a> of file <a class="el" href="libtpcimgio_8c_source.html">libtpcimgio.c</a>.</p>

<p>References <a class="el" href="img_8h_source.html#l00259">IMG::dimt</a>, <a class="el" href="img_8h_source.html#l00261">IMG::dimx</a>, <a class="el" href="img_8h_source.html#l00263">IMG::dimy</a>, <a class="el" href="img_8h_source.html#l00265">IMG::dimz</a>, <a class="el" href="img_8h_source.html#l00292">IMG::end</a>, <a class="el" href="img_8h_source.html#l00072">IMG_STATUS_INITIALIZED</a>, <a class="el" href="img_8h_source.html#l00082">IMG_TYPE_POLARMAP</a>, <a class="el" href="img_8c_source.html#l00285">imgAllocate()</a>, <a class="el" href="imgunit_8h_source.html#l00022">IMGUNIT_KBQ_PER_ML</a>, <a class="el" href="img_8h_source.html#l00274">IMG::m</a>, <a class="el" href="img_8h_source.html#l00294">IMG::mid</a>, <a class="el" href="img_8h_source.html#l00239">IMG::polarmap_num_rings</a>, <a class="el" href="img_8h_source.html#l00250">IMG::polarmap_ring_angle</a>, <a class="el" href="img_8h_source.html#l00247">IMG::polarmap_ring_position</a>, <a class="el" href="img_8h_source.html#l00244">IMG::polarmap_sectors_per_ring</a>, <a class="el" href="img_8h_source.html#l00252">IMG::polarmap_start_angle</a>, <a class="el" href="img_8h_source.html#l00290">IMG::start</a>, <a class="el" href="img_8h_source.html#l00164">IMG::status</a>, <a class="el" href="img_8h_source.html#l00198">IMG::type</a>, and <a class="el" href="img_8h_source.html#l00172">IMG::unit</a>.</p>

<p>Referenced by <a class="el" href="libtpcimgio_8c_source.html#l00085">main()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="libtpcimgio_8c_a5b4d1ec2556a3ffaef12dcaaf415a180_cgraph.png" border="0" usemap="#libtpcimgio_8c_a5b4d1ec2556a3ffaef12dcaaf415a180_cgraph" alt=""/></div>
<map name="libtpcimgio_8c_a5b4d1ec2556a3ffaef12dcaaf415a180_cgraph" id="libtpcimgio_8c_a5b4d1ec2556a3ffaef12dcaaf415a180_cgraph">
<area shape="rect" id="node3" href="img_8c.html#a9b2670da9c7685e6d53058cdf1db1199" title="imgAllocate" alt="" coords="200,32,291,61"/><area shape="rect" id="node5" href="img_8c.html#ada573d4b40da77be4455bb9fab9a3033" title="imgEmpty" alt="" coords="340,5,420,35"/><area shape="rect" id="node7" href="img_8c.html#ad124d2d496934d677156cc8779a1e567" title="imgSetStatus" alt="" coords="469,32,571,61"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a01a527ea52f46ff680d8cdeeb44b30b6"></a><!-- doxytag: member="libtpcimgio.c::test_img_io" ref="a01a527ea52f46ff680d8cdeeb44b30b6" args="(IMG *img)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int test_img_io </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structIMG.html">IMG</a> *&#160;</td>
          <td class="paramname"><em>img</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Test bench for IO functions. Tests include: <br/>
 ECAT7 image write and read<br/>
 ECAT7 image values write and read<br/>
 ECAT6 image volume write and read<br/>
 Analyze image volume write and read<br/>
</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">img</td><td>related image stucture </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>0 in case of success<br/>
 11 = write error<br/>
 110 = img max is not correct<br/>
 111 = img abs max is not correct<br/>
 112 = img min is not correct<br/>
 113 = img frame min or max is not correct<br/>
 12 = read error<br/>
 13 = write error<br/>
 14 = read error <br/>
 21 = write error<br/>
 22 = read error<br/>
 31 = write error<br/>
 32 = read error<br/>
 33 = write error<br/>
 34 = read error<br/>
 </dd></dl>

<p>Definition at line <a class="el" href="libtpcimgio_8c_source.html#l00313">313</a> of file <a class="el" href="libtpcimgio_8c_source.html">libtpcimgio.c</a>.</p>

<p>References <a class="el" href="img_8h_source.html#l00229">IMG::_fileFormat</a>, <a class="el" href="img_8h_source.html#l00089">IMG_ANA</a>, <a class="el" href="img_8h_source.html#l00090">IMG_ANA_L</a>, <a class="el" href="img_8h_source.html#l00085">IMG_E63</a>, <a class="el" href="img_8h_source.html#l00086">IMG_E7</a>, <a class="el" href="img_8h_source.html#l00087">IMG_E7_2D</a>, <a class="el" href="img_8h_source.html#l00080">IMG_TYPE_IMAGE</a>, <a class="el" href="imgmax_8c_source.html#l00086">imgAbsMax()</a>, <a class="el" href="img_8c_source.html#l00216">imgEmpty()</a>, <a class="el" href="imgmax_8c_source.html#l00147">imgFrameMinMax()</a>, <a class="el" href="img_8c_source.html#l00163">imgInit()</a>, <a class="el" href="imgmax_8c_source.html#l00057">imgMax()</a>, <a class="el" href="imgmax_8c_source.html#l00115">imgMinMax()</a>, <a class="el" href="imgfile_8c_source.html#l00190">imgRead()</a>, <a class="el" href="imgfile_8c_source.html#l00277">imgWrite()</a>, and <a class="el" href="img_8h_source.html#l00198">IMG::type</a>.</p>

<p>Referenced by <a class="el" href="libtpcimgio_8c_source.html#l00085">main()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="libtpcimgio_8c_a01a527ea52f46ff680d8cdeeb44b30b6_cgraph.png" border="0" usemap="#libtpcimgio_8c_a01a527ea52f46ff680d8cdeeb44b30b6_cgraph" alt=""/></div>
<map name="libtpcimgio_8c_a01a527ea52f46ff680d8cdeeb44b30b6_cgraph" id="libtpcimgio_8c_a01a527ea52f46ff680d8cdeeb44b30b6_cgraph">
<area shape="rect" id="node3" href="imgmax_8c.html#a8b30b11486bc0e17aae81bc54e23cc16" title="imgAbsMax" alt="" coords="163,5,253,35"/><area shape="rect" id="node5" href="img_8c.html#ada573d4b40da77be4455bb9fab9a3033" title="imgEmpty" alt="" coords="767,400,847,429"/><area shape="rect" id="node9" href="imgmax_8c.html#a4230e721a2c8767cfebe73d48c0d910d" title="imgFrameMinMax" alt="" coords="145,112,271,141"/><area shape="rect" id="node11" href="img_8c.html#af95041292a0f9e4a82a10b49a074a95c" title="imgInit" alt="" coords="177,59,239,88"/><area shape="rect" id="node14" href="imgmax_8c.html#ac6376848cceb07fb6518fa886fd617da" title="imgMax" alt="" coords="175,216,241,245"/><area shape="rect" id="node16" href="imgmax_8c.html#a97c48d1ed44d81b2d96ce1a139b99009" title="imgMinMax" alt="" coords="967,1835,1055,1864"/><area shape="rect" id="node18" href="imgfile_8c.html#a25e72562a72da715d4557ed9728ff6e1" title="imgRead" alt="" coords="171,819,245,848"/><area shape="rect" id="node108" href="imgfile_8c.html#ad8d06e4d0a57aa2db0b30488a0ce9543" title="imgWrite" alt="" coords="559,1744,633,1773"/><area shape="rect" id="node7" href="img_8c.html#ad124d2d496934d677156cc8779a1e567" title="imgSetStatus" alt="" coords="960,1057,1061,1087"/><area shape="rect" id="node20" href="analyze_8c.html#a962221ab7adb0bed2050284912d473ca" title="anaExists" alt="" coords="556,581,636,611"/><area shape="rect" id="node22" href="img__e63_8c.html#af743a62694374d314fc164f3b4ce942f" title="ecat63ReadAllToImg" alt="" coords="320,1296,464,1325"/><area shape="rect" id="node44" href="ecat63r_8c.html#af904c6b26259c4f280cdc18f92aeeae5" title="ecat63ReadMainheader" alt="" coords="517,1005,675,1035"/><area shape="rect" id="node68" href="ecat7p_8c.html#af7076f45a7f4d8c4a339e5e7d60b0f46" title="ecat7filetype" alt="" coords="344,1349,440,1379"/><area shape="rect" id="node70" href="ecat7r_8c.html#a7d6241dd7a472a4f2aaf3eb16dc03dc1" title="ecat7ReadMainheader" alt="" coords="520,952,672,981"/><area shape="rect" id="node72" href="img__e7_8c.html#a4b25c303088592c0518bf26df1d20aec" title="imgEcat7Supported" alt="" coords="528,635,664,664"/><area shape="rect" id="node74" href="img__ana_8c.html#aefc54f0812e16d43a17edcdc342be35b" title="imgReadAnalyze" alt="" coords="332,427,452,456"/><area shape="rect" id="node94" href="img__e7_8c.html#a7d6df1a1fa3b56a9bfdf901eb348da4c" title="imgReadEcat7" alt="" coords="339,792,445,821"/><area shape="rect" id="node106" href="img_8c.html#a2af7a83f855fdb5de24325614912ae5e" title="imgStatus" alt="" coords="352,845,432,875"/><area shape="rect" id="node24" href="ecat63ml_8c.html#a9dc9509d99d809410fc5904410562856" title="ecat63DeleteLateFrames" alt="" coords="512,1429,680,1459"/><area shape="rect" id="node26" href="ecat63ml_8c.html#af566384e63f743897f71d8ee41b3b292" title="mat_numdoc" alt="" coords="759,1425,855,1455"/><area shape="rect" id="node28" href="ecat63ml_8c.html#a2d931d7e3d4e21159731b7c480c209b9" title="ecat63EmptyMatlist" alt="" coords="737,1479,876,1508"/><area shape="rect" id="node30" href="ecat63ml_8c.html#a2477fe69c32ce33b443b9c0eaedae423" title="ecat63InitMatlist" alt="" coords="537,1637,655,1667"/><area shape="rect" id="node32" href="ecat63p_8c.html#a129d5f8c3d6135b9934cebc54d27bc47" title="ecat63PrintMainheader" alt="" coords="933,1913,1088,1943"/><area shape="rect" id="node34" href="ecat63ml_8c.html#aabc712142bcbc9e27d79a840e80212ae" title="ecat63PrintMatlist" alt="" coords="533,1533,659,1563"/><area shape="rect" id="node37" href="ecat63r_8c.html#ac9c08bd1e03ddc4f4a8c83a5ea198e05" title="ecat63ReadAttnheader" alt="" coords="519,1216,673,1245"/><area shape="rect" id="node41" href="ecat63r_8c.html#adc36293804c18dd15771c61500841b7c" title="ecat63ReadImageheader" alt="" coords="513,1269,679,1299"/><area shape="rect" id="node47" href="ecat63r_8c.html#a7f3456ddf0f774026d462df66bf1210b" title="ecat63ReadMatdata" alt="" coords="527,1323,665,1352"/><area shape="rect" id="node50" href="ecat63ml_8c.html#a6cce9d0e541e82d56c9d162f16202179" title="ecat63ReadMatlist" alt="" coords="531,1691,661,1720"/><area shape="rect" id="node53" href="ecat63r_8c.html#a6a169297491f0f8a734247467cfb2b89" title="ecat63ReadNormheader" alt="" coords="515,1109,677,1139"/><area shape="rect" id="node56" href="ecat63r_8c.html#a811c9c52c52f1c749ee6cb0f7a51f884" title="ecat63ReadScanheader" alt="" coords="516,1163,676,1192"/><area shape="rect" id="node59" href="img_8c.html#a9b2670da9c7685e6d53058cdf1db1199" title="imgAllocate" alt="" coords="551,688,641,717"/><area shape="rect" id="node64" href="imgunit_8c.html#a99853914e3480ab82c7163b0612e8b28" title="imgUnitFromEcat" alt="" coords="535,1376,657,1405"/><area shape="rect" id="node39" href="ecat63r_8c.html#a093061b988fd4047855b40ed5ab09910" title="ecat63rFloat" alt="" coords="760,1189,853,1219"/><area shape="rect" id="node77" href="analyze_8c.html#a55febab802306e82d162793558f5fbce" title="anaFlipping" alt="" coords="967,1428,1055,1457"/><area shape="rect" id="node79" href="analyze_8c.html#a5c764c78d790dabed25b1f7971717a05" title="anaPrintHeader" alt="" coords="540,213,652,243"/><area shape="rect" id="node81" href="analyze_8c.html#aa7bf1965dcdbff0686193675a3175a1c" title="anaReadHeader" alt="" coords="539,267,653,296"/><area shape="rect" id="node83" href="analyze_8c.html#abfb69549a8e8c6a4eab3c52045262d22" title="anaReadImagedata" alt="" coords="529,320,663,349"/><area shape="rect" id="node87" href="sif_8c.html#ad2378bec7fec69900af6f52737c89784" title="sifEmpty" alt="" coords="769,453,844,483"/><area shape="rect" id="node89" href="sif_8c.html#a61c0218e380da8ace65d78f82a8f9f69" title="sifInit" alt="" coords="569,427,623,456"/><area shape="rect" id="node91" href="sifio_8c.html#ae6c3f31d7cbe31ca6b74760978fd39c7" title="sifRead" alt="" coords="563,373,629,403"/><area shape="rect" id="node96" href="ecat7ml_8c.html#a4cf0dc3b586a1c62d177f21b5e8e2328" title="ecat7_id_to_val" alt="" coords="540,899,652,928"/><area shape="rect" id="node98" href="ecat7ml_8c.html#ae366d8f1a8202f053debfdbe2a8c6be7" title="ecat7CheckMatlist" alt="" coords="531,792,661,821"/><area shape="rect" id="node100" href="ecat7ml_8c.html#a570804c248c25f15c172568043a8f0a5" title="ecat7EmptyMatlist" alt="" coords="531,845,661,875"/><area shape="rect" id="node110" href="img__e63_8c.html#a443e0885c38b074c760a5b9a88554ce3" title="ecat63WriteAllImg" alt="" coords="743,1900,871,1929"/><area shape="rect" id="node113" href="imgfile_8c.html#abe83b47e7d8d600d579c581b6e7209bd" title="imgFormatFromFName" alt="" coords="728,1796,885,1825"/><area shape="rect" id="node116" href="img__e7_8c.html#a0e91bf23b5a578c06992c27f6e65e460" title="imgWrite2DEcat7" alt="" coords="744,1532,869,1561"/><area shape="rect" id="node119" href="img__ana_8c.html#a380113542ddd5040b383221f1377d86f" title="imgWriteAnalyze" alt="" coords="747,1743,867,1772"/><area shape="rect" id="node124" href="img__e7_8c.html#a16fee12c445b0de04d5252f28fe48ae6" title="imgWriteEcat7" alt="" coords="753,1585,860,1615"/><area shape="rect" id="node127" href="img__e7_8c.html#aabd4fa9a9594482278362ff653d92a5c" title="imgWritePolarmap" alt="" coords="743,1639,871,1668"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a5bacbe3c748e18b113fa41a7ebd4b7f6"></a><!-- doxytag: member="libtpcimgio.c::test_modules" ref="a5bacbe3c748e18b113fa41a7ebd4b7f6" args="(IMG *img)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int test_modules </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structIMG.html">IMG</a> *&#160;</td>
          <td class="paramname"><em>img</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Testbench for module tests.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">img</td><td>img structure for testing </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>0 if ok </dd></dl>

<p>Definition at line <a class="el" href="libtpcimgio_8c_source.html#l00415">415</a> of file <a class="el" href="libtpcimgio_8c_source.html">libtpcimgio.c</a>.</p>

<p>References <a class="el" href="img_8h_source.html#l00229">IMG::_fileFormat</a>, <a class="el" href="img_8h_source.html#l00089">IMG_ANA</a>, <a class="el" href="img_8h_source.html#l00085">IMG_E63</a>, <a class="el" href="img_8h_source.html#l00086">IMG_E7</a>, <a class="el" href="img_8h_source.html#l00088">IMG_POLARMAP</a>, <a class="el" href="imgfile_8c_source.html#l00547">imgFormatFromFName()</a>, <a class="el" href="img__e7_8c_source.html#l00681">imgGetEcat7MHeader()</a>, <a class="el" href="ecat7_8h_source.html#l00117">ecat7_mainheader::scan_start_time</a>, <a class="el" href="img_8h_source.html#l00186">IMG::scanStart</a>, <a class="el" href="libtpcimgio_8c.html#ab42f20ec3af13685562ed55fa78ec56f">TEST_WITH_FILENAME</a>, and <a class="el" href="libtpcimgio_8c.html#a16df5312f2ac87531396bbd9a04d6391">TEST_WITH_FORMAT</a>.</p>

<p>Referenced by <a class="el" href="libtpcimgio_8c_source.html#l00085">main()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="libtpcimgio_8c_a5bacbe3c748e18b113fa41a7ebd4b7f6_cgraph.png" border="0" usemap="#libtpcimgio_8c_a5bacbe3c748e18b113fa41a7ebd4b7f6_cgraph" alt=""/></div>
<map name="libtpcimgio_8c_a5bacbe3c748e18b113fa41a7ebd4b7f6_cgraph" id="libtpcimgio_8c_a5bacbe3c748e18b113fa41a7ebd4b7f6_cgraph">
<area shape="rect" id="node3" href="imgfile_8c.html#abe83b47e7d8d600d579c581b6e7209bd" title="imgFormatFromFName" alt="" coords="155,5,312,35"/><area shape="rect" id="node5" href="img__e7_8c.html#a13c42900c44b97ed1b759d7ca6348ab6" title="imgGetEcat7MHeader" alt="" coords="159,59,308,88"/><area shape="rect" id="node7" href="imgunit_8c.html#affce8dc83e60543c59d5b85678899db9" title="imgUnitFromEcat7" alt="" coords="360,59,491,88"/><area shape="rect" id="node9" href="imgunit_8c.html#a72fe74ec5a539bc93f4d9bce45f67905" title="imgUnitId" alt="" coords="540,59,617,88"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a5396e2e228d56b4efb2719be80f23ce1"></a><!-- doxytag: member="libtpcimgio.c::test_polarmap_io" ref="a5396e2e228d56b4efb2719be80f23ce1" args="(IMG *img)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int test_polarmap_io </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structIMG.html">IMG</a> *&#160;</td>
          <td class="paramname"><em>img</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Testbench for polar map images</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">img</td><td>img structure for testing </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>0 if ok </dd></dl>

<p>Definition at line <a class="el" href="libtpcimgio_8c_source.html#l00387">387</a> of file <a class="el" href="libtpcimgio_8c_source.html">libtpcimgio.c</a>.</p>

<p>References <a class="el" href="img_8h_source.html#l00229">IMG::_fileFormat</a>, <a class="el" href="img_8h_source.html#l00088">IMG_POLARMAP</a>, <a class="el" href="img_8h_source.html#l00082">IMG_TYPE_POLARMAP</a>, <a class="el" href="img_8c_source.html#l00216">imgEmpty()</a>, <a class="el" href="img_8c_source.html#l00163">imgInit()</a>, <a class="el" href="imgfile_8c_source.html#l00190">imgRead()</a>, <a class="el" href="imgfile_8c_source.html#l00277">imgWrite()</a>, and <a class="el" href="img_8h_source.html#l00198">IMG::type</a>.</p>

<p>Referenced by <a class="el" href="libtpcimgio_8c_source.html#l00085">main()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="libtpcimgio_8c_a5396e2e228d56b4efb2719be80f23ce1_cgraph.png" border="0" usemap="#libtpcimgio_8c_a5396e2e228d56b4efb2719be80f23ce1_cgraph" alt=""/></div>
<map name="libtpcimgio_8c_a5396e2e228d56b4efb2719be80f23ce1_cgraph" id="libtpcimgio_8c_a5396e2e228d56b4efb2719be80f23ce1_cgraph">
<area shape="rect" id="node3" href="img_8c.html#ada573d4b40da77be4455bb9fab9a3033" title="imgEmpty" alt="" coords="752,1325,832,1354"/><area shape="rect" id="node7" href="img_8c.html#af95041292a0f9e4a82a10b49a074a95c" title="imgInit" alt="" coords="183,326,244,355"/><area shape="rect" id="node10" href="imgfile_8c.html#a25e72562a72da715d4557ed9728ff6e1" title="imgRead" alt="" coords="176,773,251,802"/><area shape="rect" id="node110" href="imgfile_8c.html#ad8d06e4d0a57aa2db0b30488a0ce9543" title="imgWrite" alt="" coords="537,1797,612,1826"/><area shape="rect" id="node5" href="img_8c.html#ad124d2d496934d677156cc8779a1e567" title="imgSetStatus" alt="" coords="952,1377,1053,1406"/><area shape="rect" id="node12" href="analyze_8c.html#a962221ab7adb0bed2050284912d473ca" title="anaExists" alt="" coords="535,1954,615,1983"/><area shape="rect" id="node14" href="img__e63_8c.html#af743a62694374d314fc164f3b4ce942f" title="ecat63ReadAllToImg" alt="" coords="299,903,443,933"/><area shape="rect" id="node36" href="ecat63r_8c.html#af904c6b26259c4f280cdc18f92aeeae5" title="ecat63ReadMainheader" alt="" coords="496,746,653,775"/><area shape="rect" id="node60" href="ecat7p_8c.html#af7076f45a7f4d8c4a339e5e7d60b0f46" title="ecat7filetype" alt="" coords="323,798,419,827"/><area shape="rect" id="node62" href="ecat7r_8c.html#a7d6241dd7a472a4f2aaf3eb16dc03dc1" title="ecat7ReadMainheader" alt="" coords="499,429,651,458"/><area shape="rect" id="node64" href="img__e7_8c.html#a4b25c303088592c0518bf26df1d20aec" title="imgEcat7Supported" alt="" coords="507,482,643,511"/><area shape="rect" id="node66" href="img__ana_8c.html#aefc54f0812e16d43a17edcdc342be35b" title="imgReadAnalyze" alt="" coords="311,1586,431,1615"/><area shape="rect" id="node86" href="img__e7_8c.html#a7d6df1a1fa3b56a9bfdf901eb348da4c" title="imgReadEcat7" alt="" coords="317,325,424,354"/><area shape="rect" id="node108" href="img_8c.html#a2af7a83f855fdb5de24325614912ae5e" title="imgStatus" alt="" coords="331,271,411,301"/><area shape="rect" id="node16" href="ecat63ml_8c.html#a9dc9509d99d809410fc5904410562856" title="ecat63DeleteLateFrames" alt="" coords="491,639,659,669"/><area shape="rect" id="node18" href="ecat63ml_8c.html#af566384e63f743897f71d8ee41b3b292" title="mat_numdoc" alt="" coords="744,586,840,615"/><area shape="rect" id="node20" href="ecat63ml_8c.html#a2d931d7e3d4e21159731b7c480c209b9" title="ecat63EmptyMatlist" alt="" coords="723,773,861,802"/><area shape="rect" id="node22" href="ecat63ml_8c.html#a2477fe69c32ce33b443b9c0eaedae423" title="ecat63InitMatlist" alt="" coords="516,903,633,933"/><area shape="rect" id="node24" href="ecat63p_8c.html#a129d5f8c3d6135b9934cebc54d27bc47" title="ecat63PrintMainheader" alt="" coords="925,1587,1080,1617"/><area shape="rect" id="node26" href="ecat63ml_8c.html#aabc712142bcbc9e27d79a840e80212ae" title="ecat63PrintMatlist" alt="" coords="512,586,637,615"/><area shape="rect" id="node29" href="ecat63r_8c.html#ac9c08bd1e03ddc4f4a8c83a5ea198e05" title="ecat63ReadAttnheader" alt="" coords="497,1063,652,1093"/><area shape="rect" id="node33" href="ecat63r_8c.html#adc36293804c18dd15771c61500841b7c" title="ecat63ReadImageheader" alt="" coords="492,1170,657,1199"/><area shape="rect" id="node39" href="ecat63r_8c.html#a7f3456ddf0f774026d462df66bf1210b" title="ecat63ReadMatdata" alt="" coords="505,957,644,986"/><area shape="rect" id="node42" href="ecat63ml_8c.html#a6cce9d0e541e82d56c9d162f16202179" title="ecat63ReadMatlist" alt="" coords="509,693,640,722"/><area shape="rect" id="node45" href="ecat63r_8c.html#a6a169297491f0f8a734247467cfb2b89" title="ecat63ReadNormheader" alt="" coords="493,1010,656,1039"/><area shape="rect" id="node48" href="ecat63r_8c.html#a811c9c52c52f1c749ee6cb0f7a51f884" title="ecat63ReadScanheader" alt="" coords="495,1117,655,1146"/><area shape="rect" id="node51" href="img_8c.html#a9b2670da9c7685e6d53058cdf1db1199" title="imgAllocate" alt="" coords="529,1274,620,1303"/><area shape="rect" id="node56" href="imgunit_8c.html#a99853914e3480ab82c7163b0612e8b28" title="imgUnitFromEcat" alt="" coords="513,799,636,829"/><area shape="rect" id="node31" href="ecat63r_8c.html#a093061b988fd4047855b40ed5ab09910" title="ecat63rFloat" alt="" coords="745,1037,839,1066"/><area shape="rect" id="node69" href="analyze_8c.html#a55febab802306e82d162793558f5fbce" title="anaFlipping" alt="" coords="959,1875,1047,1905"/><area shape="rect" id="node71" href="analyze_8c.html#a5c764c78d790dabed25b1f7971717a05" title="anaPrintHeader" alt="" coords="519,1479,631,1509"/><area shape="rect" id="node73" href="analyze_8c.html#aa7bf1965dcdbff0686193675a3175a1c" title="anaReadHeader" alt="" coords="517,1533,632,1562"/><area shape="rect" id="node75" href="analyze_8c.html#abfb69549a8e8c6a4eab3c52045262d22" title="anaReadImagedata" alt="" coords="508,1586,641,1615"/><area shape="rect" id="node79" href="sif_8c.html#ad2378bec7fec69900af6f52737c89784" title="sifEmpty" alt="" coords="755,1479,829,1509"/><area shape="rect" id="node81" href="sif_8c.html#a61c0218e380da8ace65d78f82a8f9f69" title="sifInit" alt="" coords="548,1639,601,1669"/><area shape="rect" id="node83" href="sifio_8c.html#ae6c3f31d7cbe31ca6b74760978fd39c7" title="sifRead" alt="" coords="541,1743,608,1773"/><area shape="rect" id="node88" href="ecat7ml_8c.html#a4cf0dc3b586a1c62d177f21b5e8e2328" title="ecat7_id_to_val" alt="" coords="736,194,848,223"/><area shape="rect" id="node90" href="ecat7ml_8c.html#ae366d8f1a8202f053debfdbe2a8c6be7" title="ecat7CheckMatlist" alt="" coords="509,165,640,194"/><area shape="rect" id="node92" href="ecat7ml_8c.html#a570804c248c25f15c172568043a8f0a5" title="ecat7EmptyMatlist" alt="" coords="509,218,640,247"/><area shape="rect" id="node94" href="ecat7ml_8c.html#a0826a19efcf80e53e28473189d07949e" title="ecat7InitMatlist" alt="" coords="520,271,629,301"/><area shape="rect" id="node96" href="ecat7ml_8c.html#ad50b3297af530071a5f115c14f40c701" title="ecat7PrintMatlist" alt="" coords="515,325,635,354"/><area shape="rect" id="node99" href="ecat7r_8c.html#aa37d19fc4f30868ea0b062d39d9d8450" title="ecat7Read2DScanheader" alt="" coords="707,35,877,65"/><area shape="rect" id="node101" href="ecat7r_8c.html#a2cdc756d0ec7d7b4d22f7d6c8b73fd7b" title="ecat7Read2DScanMatrix" alt="" coords="491,61,659,90"/><area shape="rect" id="node112" href="img__e63_8c.html#a443e0885c38b074c760a5b9a88554ce3" title="ecat63WriteAllImg" alt="" coords="728,1743,856,1773"/><area shape="rect" id="node115" href="imgfile_8c.html#abe83b47e7d8d600d579c581b6e7209bd" title="imgFormatFromFName" alt="" coords="713,1797,871,1826"/><area shape="rect" id="node118" href="img__e7_8c.html#a0e91bf23b5a578c06992c27f6e65e460" title="imgWrite2DEcat7" alt="" coords="729,1690,855,1719"/><area shape="rect" id="node121" href="img__ana_8c.html#a380113542ddd5040b383221f1377d86f" title="imgWriteAnalyze" alt="" coords="732,1850,852,1879"/><area shape="rect" id="node125" href="img__e7_8c.html#a16fee12c445b0de04d5252f28fe48ae6" title="imgWriteEcat7" alt="" coords="739,1533,845,1562"/><area shape="rect" id="node128" href="img__e7_8c.html#aabd4fa9a9594482278362ff653d92a5c" title="imgWritePolarmap" alt="" coords="728,1586,856,1615"/></map>
</div>
</p>

</div>
</div>
<hr/><h2>Variable Documentation</h2>
<a class="anchor" id="ab848ce91ba14d3dc5c87d0b42f3a1c0d"></a><!-- doxytag: member="libtpcimgio.c::VERBOSE" ref="ab848ce91ba14d3dc5c87d0b42f3a1c0d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="libtpcimgio_8c.html#ab848ce91ba14d3dc5c87d0b42f3a1c0d">VERBOSE</a> = 0</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="libtpcimgio_8c_source.html#l00076">76</a> of file <a class="el" href="libtpcimgio_8c_source.html">libtpcimgio.c</a>.</p>

<p>Referenced by <a class="el" href="libtpcimgio_8c_source.html#l00085">main()</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>