<!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>imgdecay.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 Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="annotated.html"><span>Data 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 List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#func-members">Functions</a> </div> <div class="headertitle"> <div class="title">imgdecay.c File Reference</div> </div> </div> <div class="contents"> <div class="textblock"><code>#include <stdio.h></code><br/> <code>#include <stdlib.h></code><br/> <code>#include <math.h></code><br/> <code>#include <time.h></code><br/> <code>#include <string.h></code><br/> <code>#include <ctype.h></code><br/> <code>#include "halflife.h"</code><br/> <code>#include "<a class="el" href="img_8h_source.html">include/img.h</a>"</code><br/> <code>#include "<a class="el" href="imgdecay_8h_source.html">include/imgdecay.h</a>"</code><br/> </div><div class="textblock"><div class="dynheader"> Include dependency graph for imgdecay.c:</div> <div class="dyncontent"> <div class="center"><img src="imgdecay_8c__incl.png" border="0" usemap="#imgdecay_8c" alt=""/></div> <map name="imgdecay_8c" id="imgdecay_8c"> <area shape="rect" id="node17" href="img_8h.html" title="include/img.h" alt="" coords="632,160,731,189"/><area shape="rect" id="node21" href="imgdecay_8h.html" title="include/imgdecay.h" alt="" coords="667,83,800,112"/></map> </div> </div> <p><a href="imgdecay_8c_source.html">Go to the source code of this file.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="func-members"></a> Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="imgdecay_8c.html#aca202ac5405029b712c23d6e10a5475d">imgDecayCorrection</a> (<a class="el" href="structIMG.html">IMG</a> *image, int mode)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="imgdecay_8c.html#a14db419685f526306032a84343eed72c">imgIsotope</a> (<a class="el" href="structIMG.html">IMG</a> *img)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="imgdecay_8c.html#aae808fa5427e1bf0c499df93073553bf">imgSetDecayCorrFactors</a> (<a class="el" href="structIMG.html">IMG</a> *image, int mode)</td></tr> </table> <hr/><h2>Function Documentation</h2> <a class="anchor" id="aca202ac5405029b712c23d6e10a5475d"></a><!-- doxytag: member="imgdecay.c::imgDecayCorrection" ref="aca202ac5405029b712c23d6e10a5475d" args="(IMG *image, int mode)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int imgDecayCorrection </td> <td>(</td> <td class="paramtype"><a class="el" href="structIMG.html">IMG</a> * </td> <td class="paramname"><em>image</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>mode</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Corrects (mode=1) or removes correction (mode=0) for physical decay. Removal is based on existing decay correction factors, when possible.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">image</td><td>pointer to <a class="el" href="structIMG.html">IMG</a> data </td></tr> <tr><td class="paramname">mode</td><td>0=Remove decay correction; 1=Correct for decay </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>0 if ok, 1 image status is not 'occupied', 2 decay already corrected/not corrected, 3 image frame times missing </dd></dl> <p>Definition at line <a class="el" href="imgdecay_8c_source.html#l00059">59</a> of file <a class="el" href="imgdecay_8c_source.html">imgdecay.c</a>.</p> <p>References <a class="el" href="img_8h_source.html#l00184">IMG::decayCorrected</a>, <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#l00073">IMG_STATUS_OCCUPIED</a>, <a class="el" href="img_8h_source.html#l00128">IMG_TEST</a>, <a class="el" href="img_8h_source.html#l00182">IMG::isotopeHalflife</a>, <a class="el" href="img_8h_source.html#l00274">IMG::m</a>, <a class="el" href="img_8h_source.html#l00290">IMG::start</a>, and <a class="el" href="img_8h_source.html#l00164">IMG::status</a>.</p> </div> </div> <a class="anchor" id="a14db419685f526306032a84343eed72c"></a><!-- doxytag: member="imgdecay.c::imgIsotope" ref="a14db419685f526306032a84343eed72c" args="(IMG *img)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">char* imgIsotope </td> <td>(</td> <td class="paramtype"><a class="el" href="structIMG.html">IMG</a> * </td> <td class="paramname"><em>img</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Returns pointer to string describing the isotope in image data</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">img</td><td>image stucture </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>pointer to string </dd></dl> <p>Definition at line <a class="el" href="imgdecay_8c_source.html#l00110">110</a> of file <a class="el" href="imgdecay_8c_source.html">imgdecay.c</a>.</p> <p>References <a class="el" href="img_8h_source.html#l00182">IMG::isotopeHalflife</a>.</p> <p>Referenced by <a class="el" href="img__e63_8c_source.html#l00886">ecat63AddImg()</a>, <a class="el" href="img__e63_8c_source.html#l00374">ecat63WriteAllImg()</a>, <a class="el" href="img__e63_8c_source.html#l01208">imgSetEcat63MHeader()</a>, and <a class="el" href="img__e7_8c_source.html#l00734">imgSetEcat7MHeader()</a>.</p> </div> </div> <a class="anchor" id="aae808fa5427e1bf0c499df93073553bf"></a><!-- doxytag: member="imgdecay.c::imgSetDecayCorrFactors" ref="aae808fa5427e1bf0c499df93073553bf" args="(IMG *image, int mode)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int imgSetDecayCorrFactors </td> <td>(</td> <td class="paramtype"><a class="el" href="structIMG.html">IMG</a> * </td> <td class="paramname"><em>image</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>mode</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets (mode=1) or removes (mode=0) decay correction factors in <a class="el" href="structIMG.html">IMG</a>. <a class="el" href="structIMG.html">IMG</a> pixel data is not changed.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">image</td><td>pointer to <a class="el" href="structIMG.html">IMG</a> data </td></tr> <tr><td class="paramname">mode</td><td>factors are calculated for decay correction (1) or for removing decay correction (0) </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>0 if ok, 1 image status is not 'occupied', 2 invalid exponent value, 3 image frame times are missing </dd></dl> <p>Definition at line <a class="el" href="imgdecay_8c_source.html#l00126">126</a> of file <a class="el" href="imgdecay_8c_source.html">imgdecay.c</a>.</p> <p>References <a class="el" href="img_8h_source.html#l00184">IMG::decayCorrected</a>, <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#l00292">IMG::end</a>, <a class="el" href="img_8h_source.html#l00073">IMG_STATUS_OCCUPIED</a>, <a class="el" href="img_8h_source.html#l00182">IMG::isotopeHalflife</a>, <a class="el" href="img_8h_source.html#l00290">IMG::start</a>, and <a class="el" href="img_8h_source.html#l00164">IMG::status</a>.</p> </div> </div> </div> <hr class="footer"/><address class="footer"><small>Generated on Mon Aug 8 2011 by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address> </body> </html>