Sophie

Sophie

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

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>micropet.h 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 id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="dir_a8d1f883face730575470ec1817ab013.html">include</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">micropet.h File Reference</div>  </div>
</div>
<div class="contents">
<div class="textblock"><div class="dynheader">
This graph shows which files directly or indirectly include this file:</div>
<div class="dyncontent">
<div class="center"><img src="micropet_8h__dep__incl.png" border="0" usemap="#micropet_8hdep" alt=""/></div>
<map name="micropet_8hdep" id="micropet_8hdep">
<area shape="rect" id="node3" href="imgio_8h.html" title="imgio.h" alt="" coords="76,83,140,112"/><area shape="rect" id="node5" href="libtpcimgio_8c.html" title="libtpcimgio.c" alt="" coords="5,160,99,189"/><area shape="rect" id="node7" href="micropet_8c.html" title="micropet.c" alt="" coords="123,160,205,189"/></map>
</div>
</div>
<p><a href="micropet_8h_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="micropet_8h.html#aec6ebe470a4fd2cb854625cab45d96a3">MAX_MICROPET_LINE_LEN</a>&#160;&#160;&#160;1024</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="micropet_8h.html#a9c51bfbe01cf4e5b7b0e8316bccc1a83">upetHeaderReadParameter</a> (FILE *fp, char *parameter, char *value)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="micropet_8h.html#a84a984594ff3a4102f158cca8f72c560">upetIsHeader</a> (char *hdrfile)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="micropet_8h.html#a894094937509f8a6034d2c5a30fd89b1">upetExists</a> (char *upetname, char *hdrfile, char *imgfile)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="micropet_8h.html#a7cd90b53c6dac2ecf4a1da2e9cc02c6b">upetGetImageDimensions</a> (FILE *fp, int *z, int *x, int *y, int *f)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="micropet_8h.html#a4e59faa74c2ccac093eb2a1f2cf1c1b5">upetScanStart</a> (FILE *fp, time_t *scant)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="micropet_8h.html#acc676fba47f18207d0d386111c257538">imgMicropetToEcat7</a> (char *upetname, char *ecatfile, int verbose)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="micropet_8h.html#a0717708bd1eeabbdad9b11fee6a7ed32">imgMicropetPETToEcat7</a> (FILE *fph, FILE *fpi, char *ecatfile, int verbose)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="micropet_8h.html#a5e0ebc662286aaddf5325b04506d0048">imgMicropetCTToEcat7</a> (FILE *fph, FILE *fpi, char *ecatfile, int verbose)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="micropet_8h.html#a2737564b9e15f4d27e2a2838cd596ef9">imgGetMicropetMainHeader</a> (FILE *fp, <a class="el" href="structIMG.html">IMG</a> *img, float *calibration_factor)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="micropet_8h.html#afbce1a125f7fd17bf28fb31c78d6925c">imgGetMicropetFrameHeader</a> (FILE *fp, <a class="el" href="structIMG.html">IMG</a> *img, int frame_index)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="micropet_8h.html#acebfd1856d0c31d6614d3be5faac8b3d">imgGetMicropetSIF</a> (FILE *fp, <a class="el" href="structSIF.html">SIF</a> *sif)</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="micropet_8h.html#a44337b0459cf19df7e76fbe69734357b">MICROPET_TEST</a></td></tr>
</table>
<hr/><h2>Define Documentation</h2>
<a class="anchor" id="aec6ebe470a4fd2cb854625cab45d96a3"></a><!-- doxytag: member="micropet.h::MAX_MICROPET_LINE_LEN" ref="aec6ebe470a4fd2cb854625cab45d96a3" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define MAX_MICROPET_LINE_LEN&#160;&#160;&#160;1024</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="micropet_8h_source.html#l00017">17</a> of file <a class="el" href="micropet_8h_source.html">micropet.h</a>.</p>

<p>Referenced by <a class="el" href="micropet_8c_source.html#l00652">imgGetMicropetFrameHeader()</a>, <a class="el" href="micropet_8c_source.html#l00544">imgGetMicropetMainHeader()</a>, <a class="el" href="micropet_8c_source.html#l00706">imgGetMicropetSIF()</a>, <a class="el" href="micropet_8c_source.html#l00441">imgMicropetCTToEcat7()</a>, <a class="el" href="micropet_8c_source.html#l00261">imgMicropetToEcat7()</a>, <a class="el" href="micropet_8c_source.html#l00180">upetGetImageDimensions()</a>, <a class="el" href="micropet_8c_source.html#l00058">upetHeaderReadParameter()</a>, <a class="el" href="micropet_8c_source.html#l00097">upetIsHeader()</a>, and <a class="el" href="micropet_8c_source.html#l00218">upetScanStart()</a>.</p>

</div>
</div>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="afbce1a125f7fd17bf28fb31c78d6925c"></a><!-- doxytag: member="micropet.h::imgGetMicropetFrameHeader" ref="afbce1a125f7fd17bf28fb31c78d6925c" args="(FILE *fp, IMG *img, int frame_index)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int imgGetMicropetFrameHeader </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="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>frame_index</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Read frame information from MicroPET header into one-frame-IMG </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns 0 when successful, otherwise &gt;0. </dd></dl>

<p>Definition at line <a class="el" href="micropet_8c_source.html#l00652">652</a> of file <a class="el" href="micropet_8c_source.html">micropet.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#l00292">IMG::end</a>, <a class="el" href="micropet_8h_source.html#l00017">MAX_MICROPET_LINE_LEN</a>, <a class="el" href="img_8h_source.html#l00294">IMG::mid</a>, <a class="el" href="img_8h_source.html#l00290">IMG::start</a>, <a class="el" href="micropet_8c_source.html#l00058">upetHeaderReadParameter()</a>, and <a class="el" href="img_8h_source.html#l00302">IMG::weight</a>.</p>

<p>Referenced by <a class="el" href="micropet_8c_source.html#l00332">imgMicropetPETToEcat7()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="micropet_8h_afbce1a125f7fd17bf28fb31c78d6925c_cgraph.png" border="0" usemap="#micropet_8h_afbce1a125f7fd17bf28fb31c78d6925c_cgraph" alt=""/></div>
<map name="micropet_8h_afbce1a125f7fd17bf28fb31c78d6925c_cgraph" id="micropet_8h_afbce1a125f7fd17bf28fb31c78d6925c_cgraph">
<area shape="rect" id="node3" href="micropet_8c.html#a9c51bfbe01cf4e5b7b0e8316bccc1a83" title="upetHeaderReadParameter" alt="" coords="249,5,428,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a2737564b9e15f4d27e2a2838cd596ef9"></a><!-- doxytag: member="micropet.h::imgGetMicropetMainHeader" ref="a2737564b9e15f4d27e2a2838cd596ef9" args="(FILE *fp, IMG *img, float *calibration_factor)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int imgGetMicropetMainHeader </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="structIMG.html">IMG</a> *&#160;</td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>calibration_factor</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Read main header information from MicroPET header into one-frame-IMG </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">fp</td><td>MicroPET header file pointer </td></tr>
    <tr><td class="paramname">img</td><td>Pointer to allocated <a class="el" href="structIMG.html">IMG</a> struct </td></tr>
    <tr><td class="paramname">calibration_factor</td><td>Calibration factor / Branching fraction </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="micropet_8c_source.html#l00544">544</a> of file <a class="el" href="micropet_8c_source.html">micropet.c</a>.</p>

<p>References <a class="el" href="img_8h_source.html#l00184">IMG::decayCorrected</a>, <a class="el" href="imgunit_8h_source.html#l00033">IMGUNIT_BQ_PER_ML</a>, <a class="el" href="imgunit_8h_source.html#l00031">IMGUNIT_NCI_PER_ML</a>, <a class="el" href="imgunit_8h_source.html#l00019">IMGUNIT_UNKNOWN</a>, <a class="el" href="img_8h_source.html#l00182">IMG::isotopeHalflife</a>, <a class="el" href="micropet_8h_source.html#l00017">MAX_MICROPET_LINE_LEN</a>, <a class="el" href="img_8h_source.html#l00231">IMG::scanner</a>, <a class="el" href="img_8h_source.html#l00208">IMG::sizex</a>, <a class="el" href="img_8h_source.html#l00210">IMG::sizey</a>, <a class="el" href="img_8h_source.html#l00212">IMG::sizez</a>, <a class="el" href="img_8h_source.html#l00204">IMG::transaxialFOV</a>, <a class="el" href="img_8h_source.html#l00172">IMG::unit</a>, <a class="el" href="micropet_8c_source.html#l00058">upetHeaderReadParameter()</a>, and <a class="el" href="img_8h_source.html#l00200">IMG::zoom</a>.</p>

<p>Referenced by <a class="el" href="micropet_8c_source.html#l00441">imgMicropetCTToEcat7()</a>, and <a class="el" href="micropet_8c_source.html#l00332">imgMicropetPETToEcat7()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="micropet_8h_a2737564b9e15f4d27e2a2838cd596ef9_cgraph.png" border="0" usemap="#micropet_8h_a2737564b9e15f4d27e2a2838cd596ef9_cgraph" alt=""/></div>
<map name="micropet_8h_a2737564b9e15f4d27e2a2838cd596ef9_cgraph" id="micropet_8h_a2737564b9e15f4d27e2a2838cd596ef9_cgraph">
<area shape="rect" id="node3" href="micropet_8c.html#a9c51bfbe01cf4e5b7b0e8316bccc1a83" title="upetHeaderReadParameter" alt="" coords="239,5,417,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="acebfd1856d0c31d6614d3be5faac8b3d"></a><!-- doxytag: member="micropet.h::imgGetMicropetSIF" ref="acebfd1856d0c31d6614d3be5faac8b3d" args="(FILE *fp, SIF *sif)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int imgGetMicropetSIF </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="structSIF.html">SIF</a> *&#160;</td>
          <td class="paramname"><em>sif</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Read Scan Information from Concorde/MicroPET header file. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns 0 if successful. </dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">fp</td><td>File pointer to Concorde/MicroPET header file </td></tr>
    <tr><td class="paramname">sif</td><td>Pointer to initiated but non-allocated <a class="el" href="structSIF.html">SIF</a> struct; Studynr should be filled afterwards. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="micropet_8c_source.html#l00706">706</a> of file <a class="el" href="micropet_8c_source.html">micropet.c</a>.</p>

<p>References <a class="el" href="sif_8h_source.html#l00042">SIF::colNr</a>, <a class="el" href="sif_8h_source.html#l00040">SIF::frameNr</a>, <a class="el" href="sif_8h_source.html#l00048">SIF::isotope_name</a>, <a class="el" href="micropet_8h_source.html#l00017">MAX_MICROPET_LINE_LEN</a>, <a class="el" href="sif_8h_source.html#l00054">SIF::prompts</a>, <a class="el" href="sif_8h_source.html#l00056">SIF::randoms</a>, <a class="el" href="sif_8h_source.html#l00038">SIF::scantime</a>, <a class="el" href="sif_8c_source.html#l00095">sifSetmem()</a>, <a class="el" href="sif_8h_source.html#l00058">SIF::trues</a>, <a class="el" href="micropet_8c_source.html#l00058">upetHeaderReadParameter()</a>, <a class="el" href="micropet_8c_source.html#l00218">upetScanStart()</a>, <a class="el" href="sif_8h_source.html#l00044">SIF::version</a>, <a class="el" href="sif_8h_source.html#l00050">SIF::x1</a>, and <a class="el" href="sif_8h_source.html#l00052">SIF::x2</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="micropet_8h_acebfd1856d0c31d6614d3be5faac8b3d_cgraph.png" border="0" usemap="#micropet_8h_acebfd1856d0c31d6614d3be5faac8b3d_cgraph" alt=""/></div>
<map name="micropet_8h_acebfd1856d0c31d6614d3be5faac8b3d_cgraph" id="micropet_8h_acebfd1856d0c31d6614d3be5faac8b3d_cgraph">
<area shape="rect" id="node3" href="sif_8c.html#ac1ea54c7476aa6b3d0b1835e22798915" title="sifSetmem" alt="" coords="200,5,285,35"/><area shape="rect" id="node7" href="micropet_8c.html#a9c51bfbe01cf4e5b7b0e8316bccc1a83" title="upetHeaderReadParameter" alt="" coords="345,84,524,113"/><area shape="rect" id="node9" href="micropet_8c.html#a4e59faa74c2ccac093eb2a1f2cf1c1b5" title="upetScanStart" alt="" coords="191,109,295,139"/><area shape="rect" id="node5" href="sif_8c.html#ad2378bec7fec69900af6f52737c89784" title="sifEmpty" alt="" coords="397,5,472,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a5e0ebc662286aaddf5325b04506d0048"></a><!-- doxytag: member="micropet.h::imgMicropetCTToEcat7" ref="a5e0ebc662286aaddf5325b04506d0048" args="(FILE *fph, FILE *fpi, char *ecatfile, int verbose)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int imgMicropetCTToEcat7 </td>
          <td>(</td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>fph</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>fpi</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>ecatfile</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>verbose</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Read MicroPET CT image and write ECAT 7 image volume. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns errstatus, which is STATUS_OK (0) when call was successful, and &gt;0 in case of an error. </dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">fph</td><td>MicroPET header file pointer </td></tr>
    <tr><td class="paramname">fpi</td><td>MicroPET image datafile pointer </td></tr>
    <tr><td class="paramname">ecatfile</td><td>ECAT image filename </td></tr>
    <tr><td class="paramname">verbose</td><td>Verbose level </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="micropet_8c_source.html#l00441">441</a> of file <a class="el" href="micropet_8c_source.html">micropet.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#l00086">IMG_E7</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="img_8c_source.html#l00216">imgEmpty()</a>, <a class="el" href="micropet_8c_source.html#l00544">imgGetMicropetMainHeader()</a>, <a class="el" href="img_8c_source.html#l00163">imgInit()</a>, <a class="el" href="imgfile_8c_source.html#l00277">imgWrite()</a>, <a class="el" href="img_8h_source.html#l00274">IMG::m</a>, <a class="el" href="micropet_8h_source.html#l00017">MAX_MICROPET_LINE_LEN</a>, <a class="el" href="micropet_8h_source.html#l00020">MICROPET_TEST</a>, <a class="el" href="img_8h_source.html#l00186">IMG::scanStart</a>, <a class="el" href="img_8h_source.html#l00125">STATUS_CANNOTERASE</a>, <a class="el" href="img_8h_source.html#l00125">STATUS_CANNOTWRITE</a>, <a class="el" href="img_8h_source.html#l00118">STATUS_FAULT</a>, <a class="el" href="img_8h_source.html#l00122">STATUS_INVALIDHEADER</a>, <a class="el" href="img_8h_source.html#l00121">STATUS_NOMATRIX</a>, <a class="el" href="img_8h_source.html#l00118">STATUS_NOMEMORY</a>, <a class="el" href="img_8h_source.html#l00118">STATUS_OK</a>, <a class="el" href="img_8h_source.html#l00174">IMG::studyNr</a>, <a class="el" href="img_8h_source.html#l00198">IMG::type</a>, <a class="el" href="micropet_8c_source.html#l00180">upetGetImageDimensions()</a>, <a class="el" href="micropet_8c_source.html#l00058">upetHeaderReadParameter()</a>, and <a class="el" href="micropet_8c_source.html#l00218">upetScanStart()</a>.</p>

<p>Referenced by <a class="el" href="micropet_8c_source.html#l00261">imgMicropetToEcat7()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="micropet_8h_a5e0ebc662286aaddf5325b04506d0048_cgraph.png" border="0" usemap="#micropet_8h_a5e0ebc662286aaddf5325b04506d0048_cgraph" alt=""/></div>
<map name="micropet_8h_a5e0ebc662286aaddf5325b04506d0048_cgraph" id="micropet_8h_a5e0ebc662286aaddf5325b04506d0048_cgraph">
<area shape="rect" id="node3" href="img_8c.html#a9b2670da9c7685e6d53058cdf1db1199" title="imgAllocate" alt="" coords="260,269,351,299"/><area shape="rect" id="node5" href="img_8c.html#ada573d4b40da77be4455bb9fab9a3033" title="imgEmpty" alt="" coords="496,319,576,348"/><area shape="rect" id="node11" href="micropet_8c.html#a2737564b9e15f4d27e2a2838cd596ef9" title="imgGetMicropetMainHeader" alt="" coords="213,112,397,141"/><area shape="rect" id="node13" href="micropet_8c.html#a9c51bfbe01cf4e5b7b0e8316bccc1a83" title="upetHeaderReadParameter" alt="" coords="447,85,625,115"/><area shape="rect" id="node15" href="img_8c.html#af95041292a0f9e4a82a10b49a074a95c" title="imgInit" alt="" coords="275,216,336,245"/><area shape="rect" id="node18" href="imgfile_8c.html#ad8d06e4d0a57aa2db0b30488a0ce9543" title="imgWrite" alt="" coords="268,449,343,479"/><area shape="rect" id="node130" href="micropet_8c.html#a7cd90b53c6dac2ecf4a1da2e9cc02c6b" title="upetGetImageDimensions" alt="" coords="219,5,392,35"/><area shape="rect" id="node134" href="micropet_8c.html#a4e59faa74c2ccac093eb2a1f2cf1c1b5" title="upetScanStart" alt="" coords="253,59,357,88"/><area shape="rect" id="node7" href="img_8c.html#ad124d2d496934d677156cc8779a1e567" title="imgSetStatus" alt="" coords="712,267,813,296"/><area shape="rect" id="node20" href="img__e63_8c.html#a443e0885c38b074c760a5b9a88554ce3" title="ecat63WriteAllImg" alt="" coords="472,931,600,960"/><area shape="rect" id="node59" href="imgfile_8c.html#abe83b47e7d8d600d579c581b6e7209bd" title="imgFormatFromFName" alt="" coords="457,423,615,452"/><area shape="rect" id="node62" href="img__e7_8c.html#a0e91bf23b5a578c06992c27f6e65e460" title="imgWrite2DEcat7" alt="" coords="473,529,599,559"/><area shape="rect" id="node94" href="img__ana_8c.html#a380113542ddd5040b383221f1377d86f" title="imgWriteAnalyze" alt="" coords="476,164,596,193"/><area shape="rect" id="node103" href="img__e7_8c.html#a16fee12c445b0de04d5252f28fe48ae6" title="imgWriteEcat7" alt="" coords="483,583,589,612"/><area shape="rect" id="node116" href="img__e7_8c.html#aabd4fa9a9594482278362ff653d92a5c" title="imgWritePolarmap" alt="" coords="472,476,600,505"/><area shape="rect" id="node22" href="ecat63w_8c.html#aa9545a4a59002bf59a77478977f479eb" title="ecat63Create" alt="" coords="713,1171,812,1200"/><area shape="rect" id="node26" href="ecat63p_8c.html#a5f3ba1102f964d98b4de5a93c3d9fd36" title="ecat63PrintImageheader" alt="" coords="681,904,844,933"/><area shape="rect" id="node32" href="ecat63p_8c.html#a129d5f8c3d6135b9934cebc54d27bc47" title="ecat63PrintMainheader" alt="" coords="685,851,840,880"/><area shape="rect" id="node36" href="ecat63p_8c.html#a67a369196200471d7954b4788de262a6" title="ecat63PrintScanheader" alt="" coords="684,797,841,827"/><area shape="rect" id="node39" href="ecat63w_8c.html#ab7e9bf33b3225d1260ad04c44ce817ab" title="ecat63WriteImage" alt="" coords="699,957,827,987"/><area shape="rect" id="node47" href="ecat63w_8c.html#a0ef3ec20d54221eb1730dd531724b378" title="ecat63WriteScan" alt="" coords="701,1011,824,1040"/><area shape="rect" id="node53" href="imgdecay_8c.html#a14db419685f526306032a84343eed72c" title="imgIsotope" alt="" coords="941,745,1027,775"/><area shape="rect" id="node55" href="imgunit_8c.html#a0d8d16b27eaefdf56d32b5c4c51f3757" title="imgUnitToEcat6" alt="" coords="705,1064,820,1093"/><area shape="rect" id="node57" href="ecat63ml_8c.html#a7561756da60d9e38a1419da8ebf220fb" title="mat_numcod" alt="" coords="715,1117,811,1147"/><area shape="rect" id="node24" href="ecat63w_8c.html#af7389948dcb81fe5984b5ece280e9267" title="ecat63WriteMainheader" alt="" coords="905,1171,1063,1200"/><area shape="rect" id="node28" href="ecat63p_8c.html#a98732743aed846f22cee299b5588cdac" title="ecat63Datatype" alt="" coords="927,799,1041,828"/><area shape="rect" id="node30" href="ecat63p_8c.html#a55610f5a3e461ebcd23a9a9496470c56" title="ecat63Unit" alt="" coords="941,852,1027,881"/><area shape="rect" id="node41" href="ecat63ml_8c.html#a01664c72df6a487a1de8d1da3bbc9983" title="ecat63Matenter" alt="" coords="928,959,1040,988"/><area shape="rect" id="node43" href="ecat63w_8c.html#a327a43e9f2dbfe66dcec54ff4141877c" title="ecat63WriteImageheader" alt="" coords="901,905,1067,935"/><area shape="rect" id="node45" href="ecat63w_8c.html#ae12c957a9ab48147bd356f207d176cf2" title="ecat63WriteMatdata" alt="" coords="915,1012,1053,1041"/><area shape="rect" id="node51" href="ecat63w_8c.html#a608dc4920336f49febe13ea8b74dd0c8" title="ecat63WriteScanheader" alt="" coords="904,1065,1064,1095"/><area shape="rect" id="node64" href="ecat7ml_8c.html#acad3263ebf24cf2e10d7c43491810481" title="ecat7_val_to_id" alt="" coords="707,533,819,563"/><area shape="rect" id="node66" href="ecat7w_8c.html#a85ec2c6c7070a4170b8807e13623b04d" title="ecat7Create" alt="" coords="716,373,809,403"/><area shape="rect" id="node70" href="ecat7w_8c.html#aa94815cb1caa7fe0fdb4223edafd6f57" title="ecat7Write2DScanMatrix" alt="" coords="679,427,847,456"/><area shape="rect" id="node82" href="ecat7w_8c.html#a1806f5f5cc75a6446a4d85fa29e4228b" title="ecat7WriteImageMatrix" alt="" coords="684,640,841,669"/><area shape="rect" id="node90" href="img__e7_8c.html#ae0290e8d66a3ce7013405b344cca52f5" title="imgSetEcat7MHeader" alt="" coords="688,693,837,723"/><area shape="rect" id="node68" href="ecat7w_8c.html#ae4ee4bf17962633b914d5c731ac7c321" title="ecat7WriteMainheader" alt="" coords="908,372,1060,401"/><area shape="rect" id="node72" href="ecat7w_8c.html#a4b4f3a8d69450162cf1652b104bd90e1" title="ecat7_is_scaling_needed" alt="" coords="900,585,1068,615"/><area shape="rect" id="node74" href="ecat7ml_8c.html#a8f97f2b4eb5bea323738dc3687e773b8" title="ecat7EnterMatrix" alt="" coords="924,639,1044,668"/><area shape="rect" id="node76" href="ecat7r_8c.html#a17795a6c58bfa4c1159e0fe642098678" title="ecat7pxlbytes" alt="" coords="933,479,1035,508"/><area shape="rect" id="node78" href="ecat7w_8c.html#aa28a9c3060c74c1f52b280c251b8e926" title="ecat7Write2DScanheader" alt="" coords="899,425,1069,455"/><area shape="rect" id="node80" href="ecat7w_8c.html#ae44380ec982c9c91f38be4889758c1e2" title="ecat7WriteMatrixdata" alt="" coords="911,532,1057,561"/><area shape="rect" id="node87" href="ecat7w_8c.html#a492041a42e77c2958cdd06c17c3267e9" title="ecat7WriteImageheader" alt="" coords="904,692,1064,721"/><area shape="rect" id="node96" href="analyze_8c.html#a55febab802306e82d162793558f5fbce" title="anaFlipping" alt="" coords="719,107,807,136"/><area shape="rect" id="node98" href="analyze_8c.html#a3ec6f97c394c1bafffc57bd45d81c078" title="anaWriteHeader" alt="" coords="705,160,820,189"/><area shape="rect" id="node100" href="imgmax_8c.html#a97c48d1ed44d81b2d96ce1a139b99009" title="imgMinMax" alt="" coords="719,213,807,243"/><area shape="rect" id="node108" href="ecat7w_8c.html#a33c96bd0bbc96506cb27794fadd6abcf" title="ecat7WriteScanMatrix" alt="" coords="688,587,837,616"/><area shape="rect" id="node120" href="ecat7w_8c.html#a5f460170ea6c75b8af960ddf5a17d0ef" title="ecat7WritePolarmapMatrix" alt="" coords="675,480,851,509"/><area shape="rect" id="node127" href="img__e7_8c.html#ae81e49b5bd72ebac0112b9d8c2f1afc8" title="imgSetEcat7SHeader" alt="" coords="689,320,836,349"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a0717708bd1eeabbdad9b11fee6a7ed32"></a><!-- doxytag: member="micropet.h::imgMicropetPETToEcat7" ref="a0717708bd1eeabbdad9b11fee6a7ed32" args="(FILE *fph, FILE *fpi, char *ecatfile, int verbose)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int imgMicropetPETToEcat7 </td>
          <td>(</td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>fph</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>fpi</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>ecatfile</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>verbose</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Read MicroPET static or dynamic PET image and write ECAT 7 image volume frame-by-frame. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns errstatus, which is STATUS_OK (0) when call was successful, and &gt;0 in case of an error. </dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">fph</td><td>MicroPET header file pointer </td></tr>
    <tr><td class="paramname">fpi</td><td>MicroPET image datafile pointer </td></tr>
    <tr><td class="paramname">ecatfile</td><td>ECAT image filename </td></tr>
    <tr><td class="paramname">verbose</td><td>Verbose level </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="micropet_8c_source.html#l00332">332</a> of file <a class="el" href="micropet_8c_source.html">micropet.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#l00086">IMG_E7</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="img_8c_source.html#l00216">imgEmpty()</a>, <a class="el" href="micropet_8c_source.html#l00652">imgGetMicropetFrameHeader()</a>, <a class="el" href="micropet_8c_source.html#l00544">imgGetMicropetMainHeader()</a>, <a class="el" href="img_8c_source.html#l00163">imgInit()</a>, <a class="el" href="imgfile_8c_source.html#l00493">imgWriteFrame()</a>, <a class="el" href="img_8h_source.html#l00274">IMG::m</a>, <a class="el" href="micropet_8h_source.html#l00020">MICROPET_TEST</a>, <a class="el" href="img_8h_source.html#l00186">IMG::scanStart</a>, <a class="el" href="img_8h_source.html#l00125">STATUS_CANNOTERASE</a>, <a class="el" href="img_8h_source.html#l00118">STATUS_FAULT</a>, <a class="el" href="img_8h_source.html#l00122">STATUS_INVALIDHEADER</a>, <a class="el" href="img_8h_source.html#l00121">STATUS_NOMATRIX</a>, <a class="el" href="img_8h_source.html#l00118">STATUS_NOMEMORY</a>, <a class="el" href="img_8h_source.html#l00118">STATUS_OK</a>, <a class="el" href="img_8h_source.html#l00174">IMG::studyNr</a>, <a class="el" href="img_8h_source.html#l00198">IMG::type</a>, <a class="el" href="micropet_8c_source.html#l00180">upetGetImageDimensions()</a>, <a class="el" href="micropet_8c_source.html#l00218">upetScanStart()</a>, and <a class="el" href="img_8h_source.html#l00302">IMG::weight</a>.</p>

<p>Referenced by <a class="el" href="micropet_8c_source.html#l00261">imgMicropetToEcat7()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="micropet_8h_a0717708bd1eeabbdad9b11fee6a7ed32_cgraph.png" border="0" usemap="#micropet_8h_a0717708bd1eeabbdad9b11fee6a7ed32_cgraph" alt=""/></div>
<map name="micropet_8h_a0717708bd1eeabbdad9b11fee6a7ed32_cgraph" id="micropet_8h_a0717708bd1eeabbdad9b11fee6a7ed32_cgraph">
<area shape="rect" id="node3" href="img_8c.html#a9b2670da9c7685e6d53058cdf1db1199" title="imgAllocate" alt="" coords="509,11,600,40"/><area shape="rect" id="node5" href="img_8c.html#ada573d4b40da77be4455bb9fab9a3033" title="imgEmpty" alt="" coords="741,61,821,91"/><area shape="rect" id="node11" href="micropet_8c.html#afbce1a125f7fd17bf28fb31c78d6925c" title="imgGetMicropetFrameHeader" alt="" coords="223,523,415,552"/><area shape="rect" id="node15" href="micropet_8c.html#a2737564b9e15f4d27e2a2838cd596ef9" title="imgGetMicropetMainHeader" alt="" coords="227,603,411,632"/><area shape="rect" id="node18" href="img_8c.html#af95041292a0f9e4a82a10b49a074a95c" title="imgInit" alt="" coords="751,165,812,195"/><area shape="rect" id="node21" href="imgfile_8c.html#a4886494cd98580ed8e6a0406be28eedf" title="imgWriteFrame" alt="" coords="264,456,373,485"/><area shape="rect" id="node119" href="micropet_8c.html#a7cd90b53c6dac2ecf4a1da2e9cc02c6b" title="upetGetImageDimensions" alt="" coords="232,708,405,737"/><area shape="rect" id="node122" href="micropet_8c.html#a4e59faa74c2ccac093eb2a1f2cf1c1b5" title="upetScanStart" alt="" coords="267,865,371,895"/><area shape="rect" id="node7" href="img_8c.html#ad124d2d496934d677156cc8779a1e567" title="imgSetStatus" alt="" coords="961,140,1063,169"/><area shape="rect" id="node13" href="micropet_8c.html#a9c51bfbe01cf4e5b7b0e8316bccc1a83" title="upetHeaderReadParameter" alt="" coords="465,905,644,935"/><area shape="rect" id="node23" href="imgfile_8c.html#abe83b47e7d8d600d579c581b6e7209bd" title="imgFormatFromFName" alt="" coords="476,403,633,432"/><area shape="rect" id="node26" href="img__e63_8c.html#a754e860541649ecc46986ba3d318e435" title="imgWriteEcat63Frame" alt="" coords="479,852,631,881"/><area shape="rect" id="node90" href="img__e7_8c.html#aa4cebb077c1ca5e7fb6291e4f76f100c" title="imgWriteEcat7Frame" alt="" coords="483,456,627,485"/><area shape="rect" id="node28" href="ecat63w_8c.html#aa9545a4a59002bf59a77478977f479eb" title="ecat63Create" alt="" coords="732,904,831,933"/><area shape="rect" id="node30" href="ecat63w_8c.html#af7389948dcb81fe5984b5ece280e9267" title="ecat63WriteMainheader" alt="" coords="933,744,1091,773"/><area shape="rect" id="node34" href="ecat63p_8c.html#a129d5f8c3d6135b9934cebc54d27bc47" title="ecat63PrintMainheader" alt="" coords="704,1488,859,1517"/><area shape="rect" id="node40" href="ecat63r_8c.html#af904c6b26259c4f280cdc18f92aeeae5" title="ecat63ReadMainheader" alt="" coords="933,1435,1091,1464"/><area shape="rect" id="node44" href="ecat63w_8c.html#a904b20e0e7304bc40e2e562f73e1b6ae" title="ecat63WriteImageMatrix" alt="" coords="700,957,863,987"/><area shape="rect" id="node58" href="ecat63w_8c.html#a35a5f197ce098dfc1d91166962af59d2" title="ecat63WriteScanMatrix" alt="" coords="703,1011,860,1040"/><area shape="rect" id="node69" href="img__e63_8c.html#ad2488060702b34b8ba7269131304905d" title="imgReadEcat63Header" alt="" coords="703,1197,860,1227"/><area shape="rect" id="node77" href="ecat63ml_8c.html#a7561756da60d9e38a1419da8ebf220fb" title="mat_numcod" alt="" coords="1157,1249,1253,1279"/><area shape="rect" id="node85" href="img__e63_8c.html#aea4f0eef296e7375e00c5695cfa2ecb3" title="imgSetEcat63MHeader" alt="" coords="703,1541,860,1571"/><area shape="rect" id="node87" href="img__e63_8c.html#a5f01000b02cbb409121b4db0451d2303" title="imgSetEcat63SHeader" alt="" coords="704,800,859,829"/><area shape="rect" id="node32" href="ecat63w_8c.html#a52c9b0ff6e331b42fc4ba033d7c0e920" title="ecat63wFloat" alt="" coords="1156,797,1255,827"/><area shape="rect" id="node36" href="ecat63p_8c.html#a98732743aed846f22cee299b5588cdac" title="ecat63Datatype" alt="" coords="955,1541,1069,1571"/><area shape="rect" id="node38" href="ecat63p_8c.html#a55610f5a3e461ebcd23a9a9496470c56" title="ecat63Unit" alt="" coords="969,1488,1055,1517"/><area shape="rect" id="node42" href="ecat63r_8c.html#a093061b988fd4047855b40ed5ab09910" title="ecat63rFloat" alt="" coords="1159,1435,1252,1464"/><area shape="rect" id="node46" href="ecat63w_8c.html#a6c63b8a6ad8bc0b86257b3d00441c1c7" title="ecat63_is_scaling_needed" alt="" coords="925,1011,1099,1040"/><area shape="rect" id="node48" href="ecat63ml_8c.html#a01664c72df6a487a1de8d1da3bbc9983" title="ecat63Matenter" alt="" coords="956,957,1068,987"/><area shape="rect" id="node50" href="ecat63r_8c.html#af68deed580dda9af0e046697323d616d" title="ecat63pxlbytes" alt="" coords="957,851,1067,880"/><area shape="rect" id="node52" href="ecat63w_8c.html#a327a43e9f2dbfe66dcec54ff4141877c" title="ecat63WriteImageheader" alt="" coords="929,797,1095,827"/><area shape="rect" id="node55" href="ecat63w_8c.html#ae12c957a9ab48147bd356f207d176cf2" title="ecat63WriteMatdata" alt="" coords="943,904,1081,933"/><area shape="rect" id="node64" href="ecat63w_8c.html#a608dc4920336f49febe13ea8b74dd0c8" title="ecat63WriteScanheader" alt="" coords="932,1064,1092,1093"/><area shape="rect" id="node71" href="ecat63ml_8c.html#a9dc9509d99d809410fc5904410562856" title="ecat63DeleteLateFrames" alt="" coords="928,1224,1096,1253"/><area shape="rect" id="node73" href="ecat63ml_8c.html#a2d931d7e3d4e21159731b7c480c209b9" title="ecat63EmptyMatlist" alt="" coords="943,1277,1081,1307"/><area shape="rect" id="node75" href="ecat63ml_8c.html#a39dccd7c874d89f8a84d57d86ce0e6b1" title="ecat63GatherMatlist" alt="" coords="943,1117,1081,1147"/><area shape="rect" id="node79" href="ecat63ml_8c.html#a8955edf44cdf0be247f73cbc7dd808c1" title="ecat63GetMatrixBlockSize" alt="" coords="924,1331,1100,1360"/><area shape="rect" id="node81" href="ecat63ml_8c.html#a231a6f12df0eeec69699a0d4f3aa4c42" title="ecat63GetPlaneAndFrameNr" alt="" coords="917,1171,1107,1200"/><area shape="rect" id="node92" href="ecat7ml_8c.html#acad3263ebf24cf2e10d7c43491810481" title="ecat7_val_to_id" alt="" coords="725,269,837,299"/><area shape="rect" id="node94" href="ecat7w_8c.html#a85ec2c6c7070a4170b8807e13623b04d" title="ecat7Create" alt="" coords="735,376,828,405"/><area shape="rect" id="node96" href="ecat7w_8c.html#ae4ee4bf17962633b914d5c731ac7c321" title="ecat7WriteMainheader" alt="" coords="936,272,1088,301"/><area shape="rect" id="node98" href="ecat7r_8c.html#a7d6241dd7a472a4f2aaf3eb16dc03dc1" title="ecat7ReadMainheader" alt="" coords="936,507,1088,536"/><area shape="rect" id="node100" href="ecat7w_8c.html#aa94815cb1caa7fe0fdb4223edafd6f57" title="ecat7Write2DScanMatrix" alt="" coords="697,429,865,459"/><area shape="rect" id="node102" href="ecat7w_8c.html#a1806f5f5cc75a6446a4d85fa29e4228b" title="ecat7WriteImageMatrix" alt="" coords="703,483,860,512"/><area shape="rect" id="node105" href="ecat7w_8c.html#a5f460170ea6c75b8af960ddf5a17d0ef" title="ecat7WritePolarmapMatrix" alt="" coords="693,536,869,565"/><area shape="rect" id="node107" href="ecat7w_8c.html#a33c96bd0bbc96506cb27794fadd6abcf" title="ecat7WriteScanMatrix" alt="" coords="707,589,856,619"/><area shape="rect" id="node111" href="img__e7_8c.html#a80595d5fb45da4904f58fbb0d3e7e64a" title="imgReadEcat7Header" alt="" coords="707,323,856,352"/><area shape="rect" id="node115" href="img__e7_8c.html#ae0290e8d66a3ce7013405b344cca52f5" title="imgSetEcat7MHeader" alt="" coords="707,643,856,672"/><area shape="rect" id="node117" href="img__e7_8c.html#ae81e49b5bd72ebac0112b9d8c2f1afc8" title="imgSetEcat7SHeader" alt="" coords="708,696,855,725"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="acc676fba47f18207d0d386111c257538"></a><!-- doxytag: member="micropet.h::imgMicropetToEcat7" ref="acc676fba47f18207d0d386111c257538" args="(char *upetname, char *ecatfile, int verbose)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int imgMicropetToEcat7 </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>upetname</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>ecatfile</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>verbose</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Read MicroPET image and write ECAT 7 image volume frame-by-frame </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns errstatus, which is STATUS_OK (0) when call was successful, and &gt;0 in case of an error. </dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">upetname</td><td>MicroPET image filename </td></tr>
    <tr><td class="paramname">ecatfile</td><td>ECAT image filename </td></tr>
    <tr><td class="paramname">verbose</td><td>Verbose level </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="micropet_8c_source.html#l00261">261</a> of file <a class="el" href="micropet_8c_source.html">micropet.c</a>.</p>

<p>References <a class="el" href="micropet_8c_source.html#l00441">imgMicropetCTToEcat7()</a>, <a class="el" href="micropet_8c_source.html#l00332">imgMicropetPETToEcat7()</a>, <a class="el" href="micropet_8h_source.html#l00017">MAX_MICROPET_LINE_LEN</a>, <a class="el" href="micropet_8h_source.html#l00020">MICROPET_TEST</a>, <a class="el" href="img_8h_source.html#l00118">STATUS_FAULT</a>, <a class="el" href="img_8h_source.html#l00118">STATUS_NOFILE</a>, <a class="el" href="img_8h_source.html#l00122">STATUS_NOHEADERFILE</a>, <a class="el" href="img_8h_source.html#l00123">STATUS_NOIMGDATA</a>, <a class="el" href="img_8h_source.html#l00119">STATUS_UNSUPPORTED</a>, <a class="el" href="micropet_8c_source.html#l00126">upetExists()</a>, and <a class="el" href="micropet_8c_source.html#l00058">upetHeaderReadParameter()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="micropet_8h_acc676fba47f18207d0d386111c257538_cgraph.png" border="0" usemap="#micropet_8h_acc676fba47f18207d0d386111c257538_cgraph" alt=""/></div>
<map name="micropet_8h_acc676fba47f18207d0d386111c257538_cgraph" id="micropet_8h_acc676fba47f18207d0d386111c257538_cgraph">
<area shape="rect" id="node3" href="micropet_8c.html#a5e0ebc662286aaddf5325b04506d0048" title="imgMicropetCTToEcat7" alt="" coords="201,1032,361,1061"/><area shape="rect" id="node15" href="micropet_8c.html#a9c51bfbe01cf4e5b7b0e8316bccc1a83" title="upetHeaderReadParameter" alt="" coords="657,1191,836,1220"/><area shape="rect" id="node96" href="micropet_8c.html#a0717708bd1eeabbdad9b11fee6a7ed32" title="imgMicropetPETToEcat7" alt="" coords="197,1244,365,1273"/><area shape="rect" id="node145" href="micropet_8c.html#a894094937509f8a6034d2c5a30fd89b1" title="upetExists" alt="" coords="240,1503,323,1532"/><area shape="rect" id="node5" href="img_8c.html#a9b2670da9c7685e6d53058cdf1db1199" title="imgAllocate" alt="" coords="465,929,556,959"/><area shape="rect" id="node7" href="img_8c.html#ada573d4b40da77be4455bb9fab9a3033" title="imgEmpty" alt="" coords="933,1211,1013,1240"/><area shape="rect" id="node13" href="micropet_8c.html#a2737564b9e15f4d27e2a2838cd596ef9" title="imgGetMicropetMainHeader" alt="" coords="419,1084,603,1113"/><area shape="rect" id="node17" href="img_8c.html#af95041292a0f9e4a82a10b49a074a95c" title="imgInit" alt="" coords="943,1264,1004,1293"/><area shape="rect" id="node20" href="imgfile_8c.html#ad8d06e4d0a57aa2db0b30488a0ce9543" title="imgWrite" alt="" coords="473,716,548,745"/><area shape="rect" id="node89" href="micropet_8c.html#a7cd90b53c6dac2ecf4a1da2e9cc02c6b" title="upetGetImageDimensions" alt="" coords="424,1137,597,1167"/><area shape="rect" id="node93" href="micropet_8c.html#a4e59faa74c2ccac093eb2a1f2cf1c1b5" title="upetScanStart" alt="" coords="459,1191,563,1220"/><area shape="rect" id="node9" href="img_8c.html#ad124d2d496934d677156cc8779a1e567" title="imgSetStatus" alt="" coords="1139,819,1240,848"/><area shape="rect" id="node22" href="img__e63_8c.html#a443e0885c38b074c760a5b9a88554ce3" title="ecat63WriteAllImg" alt="" coords="683,923,811,952"/><area shape="rect" id="node44" href="imgfile_8c.html#abe83b47e7d8d600d579c581b6e7209bd" title="imgFormatFromFName" alt="" coords="668,1027,825,1056"/><area shape="rect" id="node47" href="img__e7_8c.html#a0e91bf23b5a578c06992c27f6e65e460" title="imgWrite2DEcat7" alt="" coords="684,477,809,507"/><area shape="rect" id="node61" href="img__ana_8c.html#a380113542ddd5040b383221f1377d86f" title="imgWriteAnalyze" alt="" coords="687,112,807,141"/><area shape="rect" id="node70" href="img__e7_8c.html#a16fee12c445b0de04d5252f28fe48ae6" title="imgWriteEcat7" alt="" coords="693,424,800,453"/><area shape="rect" id="node79" href="img__e7_8c.html#aabd4fa9a9594482278362ff653d92a5c" title="imgWritePolarmap" alt="" coords="683,637,811,667"/><area shape="rect" id="node24" href="ecat63w_8c.html#aa9545a4a59002bf59a77478977f479eb" title="ecat63Create" alt="" coords="924,1528,1023,1557"/><area shape="rect" id="node28" href="ecat63p_8c.html#a5f3ba1102f964d98b4de5a93c3d9fd36" title="ecat63PrintImageheader" alt="" coords="892,949,1055,979"/><area shape="rect" id="node30" href="ecat63p_8c.html#a129d5f8c3d6135b9934cebc54d27bc47" title="ecat63PrintMainheader" alt="" coords="896,1317,1051,1347"/><area shape="rect" id="node32" href="ecat63p_8c.html#a67a369196200471d7954b4788de262a6" title="ecat63PrintScanheader" alt="" coords="895,1003,1052,1032"/><area shape="rect" id="node34" href="ecat63w_8c.html#ab7e9bf33b3225d1260ad04c44ce817ab" title="ecat63WriteImage" alt="" coords="909,1056,1037,1085"/><area shape="rect" id="node36" href="ecat63w_8c.html#a0ef3ec20d54221eb1730dd531724b378" title="ecat63WriteScan" alt="" coords="912,896,1035,925"/><area shape="rect" id="node38" href="imgdecay_8c.html#a14db419685f526306032a84343eed72c" title="imgIsotope" alt="" coords="1147,1108,1232,1137"/><area shape="rect" id="node40" href="imgunit_8c.html#a0d8d16b27eaefdf56d32b5c4c51f3757" title="imgUnitToEcat6" alt="" coords="1132,1319,1247,1348"/><area shape="rect" id="node42" href="ecat63ml_8c.html#a7561756da60d9e38a1419da8ebf220fb" title="mat_numcod" alt="" coords="925,1421,1021,1451"/><area shape="rect" id="node26" href="ecat63w_8c.html#af7389948dcb81fe5984b5ece280e9267" title="ecat63WriteMainheader" alt="" coords="1111,1608,1268,1637"/><area shape="rect" id="node49" href="ecat7ml_8c.html#acad3263ebf24cf2e10d7c43491810481" title="ecat7_val_to_id" alt="" coords="917,584,1029,613"/><area shape="rect" id="node51" href="ecat7w_8c.html#a85ec2c6c7070a4170b8807e13623b04d" title="ecat7Create" alt="" coords="927,477,1020,507"/><area shape="rect" id="node53" href="ecat7w_8c.html#aa94815cb1caa7fe0fdb4223edafd6f57" title="ecat7Write2DScanMatrix" alt="" coords="889,531,1057,560"/><area shape="rect" id="node55" href="ecat7w_8c.html#a1806f5f5cc75a6446a4d85fa29e4228b" title="ecat7WriteImageMatrix" alt="" coords="895,371,1052,400"/><area shape="rect" id="node57" href="img__e7_8c.html#ae0290e8d66a3ce7013405b344cca52f5" title="imgSetEcat7MHeader" alt="" coords="899,424,1048,453"/><area shape="rect" id="node63" href="analyze_8c.html#a55febab802306e82d162793558f5fbce" title="anaFlipping" alt="" coords="929,112,1017,141"/><area shape="rect" id="node65" href="analyze_8c.html#a3ec6f97c394c1bafffc57bd45d81c078" title="anaWriteHeader" alt="" coords="916,5,1031,35"/><area shape="rect" id="node67" href="imgmax_8c.html#a97c48d1ed44d81b2d96ce1a139b99009" title="imgMinMax" alt="" coords="929,59,1017,88"/><area shape="rect" id="node75" href="ecat7w_8c.html#a33c96bd0bbc96506cb27794fadd6abcf" title="ecat7WriteScanMatrix" alt="" coords="899,317,1048,347"/><area shape="rect" id="node83" href="ecat7w_8c.html#a5f460170ea6c75b8af960ddf5a17d0ef" title="ecat7WritePolarmapMatrix" alt="" coords="885,691,1061,720"/><area shape="rect" id="node86" href="img__e7_8c.html#ae81e49b5bd72ebac0112b9d8c2f1afc8" title="imgSetEcat7SHeader" alt="" coords="900,637,1047,667"/><area shape="rect" id="node100" href="micropet_8c.html#afbce1a125f7fd17bf28fb31c78d6925c" title="imgGetMicropetFrameHeader" alt="" coords="415,1297,607,1327"/><area shape="rect" id="node105" href="imgfile_8c.html#a4886494cd98580ed8e6a0406be28eedf" title="imgWriteFrame" alt="" coords="456,1244,565,1273"/><area shape="rect" id="node109" href="img__e63_8c.html#a754e860541649ecc46986ba3d318e435" title="imgWriteEcat63Frame" alt="" coords="671,1520,823,1549"/><area shape="rect" id="node131" href="img__e7_8c.html#aa4cebb077c1ca5e7fb6291e4f76f100c" title="imgWriteEcat7Frame" alt="" coords="675,584,819,613"/><area shape="rect" id="node113" href="ecat63r_8c.html#af904c6b26259c4f280cdc18f92aeeae5" title="ecat63ReadMainheader" alt="" coords="1111,1687,1268,1716"/><area shape="rect" id="node115" href="ecat63w_8c.html#a904b20e0e7304bc40e2e562f73e1b6ae" title="ecat63WriteImageMatrix" alt="" coords="892,1635,1055,1664"/><area shape="rect" id="node118" href="ecat63w_8c.html#a35a5f197ce098dfc1d91166962af59d2" title="ecat63WriteScanMatrix" alt="" coords="895,1739,1052,1768"/><area shape="rect" id="node122" href="img__e63_8c.html#ad2488060702b34b8ba7269131304905d" title="imgReadEcat63Header" alt="" coords="895,1581,1052,1611"/><area shape="rect" id="node126" href="img__e63_8c.html#aea4f0eef296e7375e00c5695cfa2ecb3" title="imgSetEcat63MHeader" alt="" coords="895,1475,1052,1504"/><area shape="rect" id="node147" href="micropet_8c.html#a84a984594ff3a4102f158cca8f72c560" title="upetIsHeader" alt="" coords="461,1503,560,1532"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a894094937509f8a6034d2c5a30fd89b1"></a><!-- doxytag: member="micropet.h::upetExists" ref="a894094937509f8a6034d2c5a30fd89b1" args="(char *upetname, char *hdrfile, char *imgfile)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int upetExists </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>upetname</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>hdrfile</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>imgfile</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Check if specified image filename is a Concorde/microPET file </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns 0 if it is not, 1 if it is, and both image and header is found. </dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">upetname</td><td>Filename, either header file, image file, or base name without extensions. If file is found, then </td></tr>
    <tr><td class="paramname">hdrfile</td><td>If upetname is a Concorde/microPET file, then header filename will be written in this char pointer (space needs to allocated by caller); NULL if not needed. </td></tr>
    <tr><td class="paramname">imgfile</td><td>If upetname is a Concorde/microPET file, then image filename will be written in this char pointer (space needs to allocated by caller); NULL if not needed. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="micropet_8c_source.html#l00126">126</a> of file <a class="el" href="micropet_8c_source.html">micropet.c</a>.</p>

<p>References <a class="el" href="micropet_8c_source.html#l00097">upetIsHeader()</a>.</p>

<p>Referenced by <a class="el" href="micropet_8c_source.html#l00261">imgMicropetToEcat7()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="micropet_8h_a894094937509f8a6034d2c5a30fd89b1_cgraph.png" border="0" usemap="#micropet_8h_a894094937509f8a6034d2c5a30fd89b1_cgraph" alt=""/></div>
<map name="micropet_8h_a894094937509f8a6034d2c5a30fd89b1_cgraph" id="micropet_8h_a894094937509f8a6034d2c5a30fd89b1_cgraph">
<area shape="rect" id="node3" href="micropet_8c.html#a84a984594ff3a4102f158cca8f72c560" title="upetIsHeader" alt="" coords="140,5,239,35"/><area shape="rect" id="node5" href="micropet_8c.html#a9c51bfbe01cf4e5b7b0e8316bccc1a83" title="upetHeaderReadParameter" alt="" coords="289,5,468,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a7cd90b53c6dac2ecf4a1da2e9cc02c6b"></a><!-- doxytag: member="micropet.h::upetGetImageDimensions" ref="a7cd90b53c6dac2ecf4a1da2e9cc02c6b" args="(FILE *fp, int *z, int *x, int *y, int *f)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int upetGetImageDimensions </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>z</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>f</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Read image dimensions from header </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">fp</td><td>File pointer to MicroPET image header </td></tr>
    <tr><td class="paramname">z</td><td>Pointers to dimensions: planes </td></tr>
    <tr><td class="paramname">x</td><td>Pointers to dimensions: columns </td></tr>
    <tr><td class="paramname">y</td><td>Pointers to dimensions: rows </td></tr>
    <tr><td class="paramname">f</td><td>Pointers to dimensions: frames; if not existent (CT), enter NULL </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="micropet_8c_source.html#l00180">180</a> of file <a class="el" href="micropet_8c_source.html">micropet.c</a>.</p>

<p>References <a class="el" href="micropet_8h_source.html#l00017">MAX_MICROPET_LINE_LEN</a>, and <a class="el" href="micropet_8c_source.html#l00058">upetHeaderReadParameter()</a>.</p>

<p>Referenced by <a class="el" href="micropet_8c_source.html#l00441">imgMicropetCTToEcat7()</a>, and <a class="el" href="micropet_8c_source.html#l00332">imgMicropetPETToEcat7()</a>.</p>

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

</div>
</div>
<a class="anchor" id="a9c51bfbe01cf4e5b7b0e8316bccc1a83"></a><!-- doxytag: member="micropet.h::upetHeaderReadParameter" ref="a9c51bfbe01cf4e5b7b0e8316bccc1a83" args="(FILE *fp, char *parameter, char *value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int upetHeaderReadParameter </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">char *&#160;</td>
          <td class="paramname"><em>parameter</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Read specified parameter value from Concorde/MicroPET header. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns 0 if parameter was found, even if value is empty, and 1, if parameter was not found, and &lt;0 in case of other errors </dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">fp</td><td>File pointer to Concorde/MicroPET header; parameter is read starting from file pointer forward, therefore rewind file pointer before calling this routine if you want to search parameter from beginning </td></tr>
    <tr><td class="paramname">parameter</td><td>Pointer to string which contains the header parameter name </td></tr>
    <tr><td class="paramname">value</td><td>Pointer to allocated string where parameter value will be written; memory for at least MAX_MICROPET_LINE_LEN chars must be allocated; NULL if not needed. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="micropet_8c_source.html#l00058">58</a> of file <a class="el" href="micropet_8c_source.html">micropet.c</a>.</p>

<p>References <a class="el" href="micropet_8h_source.html#l00017">MAX_MICROPET_LINE_LEN</a>, and <a class="el" href="micropet_8h_source.html#l00020">MICROPET_TEST</a>.</p>

<p>Referenced by <a class="el" href="micropet_8c_source.html#l00652">imgGetMicropetFrameHeader()</a>, <a class="el" href="micropet_8c_source.html#l00544">imgGetMicropetMainHeader()</a>, <a class="el" href="micropet_8c_source.html#l00706">imgGetMicropetSIF()</a>, <a class="el" href="micropet_8c_source.html#l00441">imgMicropetCTToEcat7()</a>, <a class="el" href="micropet_8c_source.html#l00261">imgMicropetToEcat7()</a>, <a class="el" href="micropet_8c_source.html#l00180">upetGetImageDimensions()</a>, <a class="el" href="micropet_8c_source.html#l00097">upetIsHeader()</a>, and <a class="el" href="micropet_8c_source.html#l00218">upetScanStart()</a>.</p>

</div>
</div>
<a class="anchor" id="a84a984594ff3a4102f158cca8f72c560"></a><!-- doxytag: member="micropet.h::upetIsHeader" ref="a84a984594ff3a4102f158cca8f72c560" args="(char *hdrfile)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int upetIsHeader </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>hdrfile</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Verify that given file is a valid Concorde/microPET file header file. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns 0 if not, and 1 if it is a valid header file. </dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">hdrfile</td><td>Concorde/microPET file header filename, with correct extension </td></tr>
  </table>
  </dd>
</dl>

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

<p>References <a class="el" href="micropet_8h_source.html#l00017">MAX_MICROPET_LINE_LEN</a>, and <a class="el" href="micropet_8c_source.html#l00058">upetHeaderReadParameter()</a>.</p>

<p>Referenced by <a class="el" href="micropet_8c_source.html#l00126">upetExists()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="micropet_8h_a84a984594ff3a4102f158cca8f72c560_cgraph.png" border="0" usemap="#micropet_8h_a84a984594ff3a4102f158cca8f72c560_cgraph" alt=""/></div>
<map name="micropet_8h_a84a984594ff3a4102f158cca8f72c560_cgraph" id="micropet_8h_a84a984594ff3a4102f158cca8f72c560_cgraph">
<area shape="rect" id="node3" href="micropet_8c.html#a9c51bfbe01cf4e5b7b0e8316bccc1a83" title="upetHeaderReadParameter" alt="" coords="156,5,335,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a4e59faa74c2ccac093eb2a1f2cf1c1b5"></a><!-- doxytag: member="micropet.h::upetScanStart" ref="a4e59faa74c2ccac093eb2a1f2cf1c1b5" args="(FILE *fp, time_t *scant)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int upetScanStart </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">time_t *&#160;</td>
          <td class="paramname"><em>scant</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Read scan start time from Concorde/MicroPET header. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Returns 0 when successful. </dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">fp</td><td>File pointer to Concorde/MicroPET header </td></tr>
    <tr><td class="paramname">scant</td><td>Pointer to time_t where time and date will be saved </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="micropet_8c_source.html#l00218">218</a> of file <a class="el" href="micropet_8c_source.html">micropet.c</a>.</p>

<p>References <a class="el" href="micropet_8h_source.html#l00017">MAX_MICROPET_LINE_LEN</a>, and <a class="el" href="micropet_8c_source.html#l00058">upetHeaderReadParameter()</a>.</p>

<p>Referenced by <a class="el" href="micropet_8c_source.html#l00706">imgGetMicropetSIF()</a>, <a class="el" href="micropet_8c_source.html#l00441">imgMicropetCTToEcat7()</a>, and <a class="el" href="micropet_8c_source.html#l00332">imgMicropetPETToEcat7()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="micropet_8h_a4e59faa74c2ccac093eb2a1f2cf1c1b5_cgraph.png" border="0" usemap="#micropet_8h_a4e59faa74c2ccac093eb2a1f2cf1c1b5_cgraph" alt=""/></div>
<map name="micropet_8h_a4e59faa74c2ccac093eb2a1f2cf1c1b5_cgraph" id="micropet_8h_a4e59faa74c2ccac093eb2a1f2cf1c1b5_cgraph">
<area shape="rect" id="node3" href="micropet_8c.html#a9c51bfbe01cf4e5b7b0e8316bccc1a83" title="upetHeaderReadParameter" alt="" coords="161,5,340,35"/></map>
</div>
</p>

</div>
</div>
<hr/><h2>Variable Documentation</h2>
<a class="anchor" id="a44337b0459cf19df7e76fbe69734357b"></a><!-- doxytag: member="micropet.h::MICROPET_TEST" ref="a44337b0459cf19df7e76fbe69734357b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="micropet_8h.html#a44337b0459cf19df7e76fbe69734357b">MICROPET_TEST</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="micropet_8h_source.html#l00020">20</a> of file <a class="el" href="micropet_8h_source.html">micropet.h</a>.</p>

<p>Referenced by <a class="el" href="micropet_8c_source.html#l00441">imgMicropetCTToEcat7()</a>, <a class="el" href="micropet_8c_source.html#l00332">imgMicropetPETToEcat7()</a>, <a class="el" href="micropet_8c_source.html#l00261">imgMicropetToEcat7()</a>, and <a class="el" href="micropet_8c_source.html#l00058">upetHeaderReadParameter()</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>