<!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>img.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> | <a href="#var-members">Variables</a> </div> <div class="headertitle"> <div class="title">img.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 <string.h></code><br/> <code>#include <time.h></code><br/> <code>#include "studynr.h"</code><br/> <code>#include "halflife.h"</code><br/> <code>#include "<a class="el" href="imgunit_8h_source.html">include/imgunit.h</a>"</code><br/> <code>#include "<a class="el" href="img_8h_source.html">include/img.h</a>"</code><br/> </div><div class="textblock"><div class="dynheader"> Include dependency graph for img.c:</div> <div class="dyncontent"> <div class="center"><img src="img_8c__incl.png" border="0" usemap="#img_8c" alt=""/></div> <map name="img_8c" id="img_8c"> <area shape="rect" id="node17" href="imgunit_8h.html" title="include/imgunit.h" alt="" coords="629,83,749,112"/><area shape="rect" id="node19" href="img_8h.html" title="img.h" alt="" coords="565,160,619,189"/><area shape="rect" id="node22" href="ecat7_8h.html" title="ecat7.h" alt="" coords="657,160,721,189"/></map> </div> </div> <p><a href="img_8c_source.html">Go to the source code of this file.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="func-members"></a> Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="img_8c.html#af95041292a0f9e4a82a10b49a074a95c">imgInit</a> (<a class="el" href="structIMG.html">IMG</a> *image)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="img_8c.html#ada573d4b40da77be4455bb9fab9a3033">imgEmpty</a> (<a class="el" href="structIMG.html">IMG</a> *image)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="img_8c.html#a9b2670da9c7685e6d53058cdf1db1199">imgAllocate</a> (<a class="el" href="structIMG.html">IMG</a> *image, int planes, int rows, int columns, int frames)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="img_8c.html#ac8aa156f794d80cc3883d9f9401f69e1">imgAllocateWithHeader</a> (<a class="el" href="structIMG.html">IMG</a> *image, int planes, int rows, int columns, int frames, <a class="el" href="structIMG.html">IMG</a> *image_from)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="img_8c.html#a2af7a83f855fdb5de24325614912ae5e">imgStatus</a> (int status_index)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="img_8c.html#ad124d2d496934d677156cc8779a1e567">imgSetStatus</a> (<a class="el" href="structIMG.html">IMG</a> *img, int status_index)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="img_8c.html#a32edd1b78039f6cc22b7bbe413aa3a56">imgInfo</a> (<a class="el" href="structIMG.html">IMG</a> *image)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="img_8c.html#abdf374e8364a31f792daa2b0690ba198">imgCopyhdr</a> (<a class="el" href="structIMG.html">IMG</a> *image1, <a class="el" href="structIMG.html">IMG</a> *image2)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="img_8c.html#a597530352352f006345d5f296b59e8da">imgExtractRange</a> (<a class="el" href="structIMG.html">IMG</a> *img1, <a class="el" href="structIMG__RANGE.html">IMG_RANGE</a> r, <a class="el" href="structIMG.html">IMG</a> *img2)</td></tr> <tr><td colspan="2"><h2><a name="var-members"></a> Variables</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="img_8c.html#ae84ca27a99438fced18d361d64bbd4c9">imgmsg</a> []</td></tr> </table> <hr/><h2>Function Documentation</h2> <a class="anchor" id="a9b2670da9c7685e6d53058cdf1db1199"></a><!-- doxytag: member="img.c::imgAllocate" ref="a9b2670da9c7685e6d53058cdf1db1199" args="(IMG *image, int planes, int rows, int columns, int frames)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int imgAllocate </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>planes</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>rows</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>columns</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>frames</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Allocates memory for img data. Old contents are not saved.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">image</td><td>initialized image </td></tr> <tr><td class="paramname">planes</td><td>number of allcoated planes </td></tr> <tr><td class="paramname">rows</td><td>number of allocated rows </td></tr> <tr><td class="paramname">columns</td><td>number of allocated columns </td></tr> <tr><td class="paramname">frames</td><td>number of allocated frames </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>0 if ok, 1 image is not initialized, 2 invalid input dimension(s), 3 failed to allocate header, 4 - 8 failed to allocate image data </dd></dl> <p>Definition at line <a class="el" href="img_8c_source.html#l00285">285</a> of file <a class="el" href="img_8c_source.html">img.c</a>.</p> <p>References <a class="el" href="img_8h_source.html#l00268">IMG::_col</a>, <a class="el" href="img_8h_source.html#l00271">IMG::_header</a>, <a class="el" href="img_8h_source.html#l00270">IMG::_pln</a>, <a class="el" href="img_8h_source.html#l00267">IMG::_pxl</a>, <a class="el" href="img_8h_source.html#l00269">IMG::_row</a>, <a class="el" href="img_8h_source.html#l00280">IMG::column</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#l00071">IMG_STATUS_UNINITIALIZED</a>, <a class="el" href="img_8h_source.html#l00128">IMG_TEST</a>, <a class="el" href="img_8c_source.html#l00216">imgEmpty()</a>, <a class="el" href="img_8c_source.html#l00399">imgSetStatus()</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#l00282">IMG::pixel</a>, <a class="el" href="img_8h_source.html#l00276">IMG::plane</a>, <a class="el" href="img_8h_source.html#l00284">IMG::planeNumber</a>, <a class="el" href="img_8h_source.html#l00306">IMG::prompts</a>, <a class="el" href="img_8h_source.html#l00308">IMG::randoms</a>, <a class="el" href="img_8h_source.html#l00278">IMG::row</a>, <a class="el" href="img_8h_source.html#l00304">IMG::sd</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#l00118">STATUS_FAULT</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>, and <a class="el" href="img_8h_source.html#l00302">IMG::weight</a>.</p> <p>Referenced by <a class="el" href="img__e63_8c_source.html#l00077">ecat63ReadAllToImg()</a>, <a class="el" href="img__e63_8c_source.html#l00568">ecat63ReadPlaneToImg()</a>, <a class="el" href="img_8c_source.html#l00357">imgAllocateWithHeader()</a>, <a class="el" href="img_8c_source.html#l00570">imgExtractRange()</a>, <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="img__ana_8c_source.html#l00083">imgReadAnalyze()</a>, <a class="el" href="img__ana_8c_source.html#l00629">imgReadAnalyzeFirstFrame()</a>, <a class="el" href="img__e63_8c_source.html#l01422">imgReadEcat63FirstFrame()</a>, <a class="el" href="img__e7_8c_source.html#l00083">imgReadEcat7()</a>, <a class="el" href="img__e7_8c_source.html#l01008">imgReadEcat7FirstFrame()</a>, <a class="el" href="imgfile_8c_source.html#l00389">imgReadFrame()</a>, <a class="el" href="libtpcimgio_8c_source.html#l00206">test_create_img()</a>, and <a class="el" href="libtpcimgio_8c_source.html#l00252">test_create_polarmap()</a>.</p> <p><div class="dynheader"> Here is the call graph for this function:</div> <div class="dyncontent"> <div class="center"><img src="img_8c_a9b2670da9c7685e6d53058cdf1db1199_cgraph.png" border="0" usemap="#img_8c_a9b2670da9c7685e6d53058cdf1db1199_cgraph" alt=""/></div> <map name="img_8c_a9b2670da9c7685e6d53058cdf1db1199_cgraph" id="img_8c_a9b2670da9c7685e6d53058cdf1db1199_cgraph"> <area shape="rect" id="node3" href="img_8c.html#ada573d4b40da77be4455bb9fab9a3033" title="imgEmpty" alt="" coords="145,5,225,35"/><area shape="rect" id="node5" href="img_8c.html#ad124d2d496934d677156cc8779a1e567" title="imgSetStatus" alt="" coords="275,32,376,61"/></map> </div> </p> </div> </div> <a class="anchor" id="ac8aa156f794d80cc3883d9f9401f69e1"></a><!-- doxytag: member="img.c::imgAllocateWithHeader" ref="ac8aa156f794d80cc3883d9f9401f69e1" args="(IMG *image, int planes, int rows, int columns, int frames, IMG *image_from)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int imgAllocateWithHeader </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>planes</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>rows</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>columns</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>frames</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="structIMG.html">IMG</a> * </td> <td class="paramname"><em>image_from</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>This functions just combines <a class="el" href="img_8c.html#a9b2670da9c7685e6d53058cdf1db1199">imgAllocate()</a> and <a class="el" href="img_8c.html#abdf374e8364a31f792daa2b0690ba198">imgCopyhdr()</a>. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>Returns 0 if successful, otherwise returns <>0. </dd></dl> <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> struct which will be allocated here </td></tr> <tr><td class="paramname">planes</td><td>Image matrix dimensions; z </td></tr> <tr><td class="paramname">rows</td><td>Image matrix dimensions; y </td></tr> <tr><td class="paramname">columns</td><td>Image matrix dimensions; x </td></tr> <tr><td class="paramname">frames</td><td>Image matrix dimensions; t </td></tr> <tr><td class="paramname">image_from</td><td>Pointer to <a class="el" href="structIMG.html">IMG</a> struct where header contents will be copied from </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="img_8c_source.html#l00357">357</a> of file <a class="el" href="img_8c_source.html">img.c</a>.</p> <p>References <a class="el" href="img_8c_source.html#l00285">imgAllocate()</a>, and <a class="el" href="img_8c_source.html#l00501">imgCopyhdr()</a>.</p> <p><div class="dynheader"> Here is the call graph for this function:</div> <div class="dyncontent"> <div class="center"><img src="img_8c_ac8aa156f794d80cc3883d9f9401f69e1_cgraph.png" border="0" usemap="#img_8c_ac8aa156f794d80cc3883d9f9401f69e1_cgraph" alt=""/></div> <map name="img_8c_ac8aa156f794d80cc3883d9f9401f69e1_cgraph" id="img_8c_ac8aa156f794d80cc3883d9f9401f69e1_cgraph"> <area shape="rect" id="node3" href="img_8c.html#a9b2670da9c7685e6d53058cdf1db1199" title="imgAllocate" alt="" coords="215,31,305,60"/><area shape="rect" id="node10" href="img_8c.html#abdf374e8364a31f792daa2b0690ba198" title="imgCopyhdr" alt="" coords="215,84,305,113"/><area shape="rect" id="node5" href="img_8c.html#ada573d4b40da77be4455bb9fab9a3033" title="imgEmpty" alt="" coords="356,5,436,35"/><area shape="rect" id="node7" href="img_8c.html#ad124d2d496934d677156cc8779a1e567" title="imgSetStatus" alt="" coords="485,32,587,61"/></map> </div> </p> </div> </div> <a class="anchor" id="abdf374e8364a31f792daa2b0690ba198"></a><!-- doxytag: member="img.c::imgCopyhdr" ref="abdf374e8364a31f792daa2b0690ba198" args="(IMG *image1, IMG *image2)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int imgCopyhdr </td> <td>(</td> <td class="paramtype"><a class="el" href="structIMG.html">IMG</a> * </td> <td class="paramname"><em>image1</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="structIMG.html">IMG</a> * </td> <td class="paramname"><em>image2</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Copies the header fields from one image struct to another. Does not copy memory addresses or <a class="el" href="structIMG.html">IMG</a> sizes. Frame times, decay correction factors etc are copied, when possible. Plane numbers are copied, when possible.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">image1</td><td>Pointer to input <a class="el" href="structIMG.html">IMG</a> data </td></tr> <tr><td class="paramname">image2</td><td>Pointer to output <a class="el" href="structIMG.html">IMG</a> data </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>0 if successful, 1 invalid input, 2 poiters are to same image </dd></dl> <p>Definition at line <a class="el" href="img_8c_source.html#l00501">501</a> of file <a class="el" href="img_8c_source.html">img.c</a>.</p> <p>References <a class="el" href="img_8h_source.html#l00226">IMG::_dataType</a>, <a class="el" href="img_8h_source.html#l00229">IMG::_fileFormat</a>, <a class="el" href="img_8h_source.html#l00202">IMG::axialFOV</a>, <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#l00265">IMG::dimz</a>, <a class="el" href="img_8h_source.html#l00292">IMG::end</a>, <a class="el" href="img_8h_source.html#l00214">IMG::gapx</a>, <a class="el" href="img_8h_source.html#l00216">IMG::gapy</a>, <a class="el" href="img_8h_source.html#l00218">IMG::gapz</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#l00300">IMG::isWeight</a>, <a class="el" href="img_8h_source.html#l00116">MAX_POLARMAP_NUM_RINGS</a>, <a class="el" href="img_8h_source.html#l00294">IMG::mid</a>, <a class="el" href="img_8h_source.html#l00188">IMG::orientation</a>, <a class="el" href="img_8h_source.html#l00178">IMG::patientID</a>, <a class="el" href="img_8h_source.html#l00176">IMG::patientName</a>, <a class="el" href="img_8h_source.html#l00284">IMG::planeNumber</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#l00306">IMG::prompts</a>, <a class="el" href="img_8h_source.html#l00180">IMG::radiopharmaceutical</a>, <a class="el" href="img_8h_source.html#l00308">IMG::randoms</a>, <a class="el" href="img_8h_source.html#l00220">IMG::resolutionx</a>, <a class="el" href="img_8h_source.html#l00222">IMG::resolutiony</a>, <a class="el" href="img_8h_source.html#l00224">IMG::resolutionz</a>, <a class="el" href="img_8h_source.html#l00206">IMG::sampleDistance</a>, <a class="el" href="img_8h_source.html#l00231">IMG::scanner</a>, <a class="el" href="img_8h_source.html#l00186">IMG::scanStart</a>, <a class="el" href="img_8h_source.html#l00304">IMG::sd</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#l00290">IMG::start</a>, <a class="el" href="img_8h_source.html#l00192">IMG::studyDescription</a>, <a class="el" href="img_8h_source.html#l00174">IMG::studyNr</a>, <a class="el" href="img_8h_source.html#l00204">IMG::transaxialFOV</a>, <a class="el" href="img_8h_source.html#l00198">IMG::type</a>, <a class="el" href="img_8h_source.html#l00172">IMG::unit</a>, <a class="el" href="img_8h_source.html#l00190">IMG::userProcessCode</a>, <a class="el" href="img_8h_source.html#l00302">IMG::weight</a>, and <a class="el" href="img_8h_source.html#l00200">IMG::zoom</a>.</p> <p>Referenced by <a class="el" href="img_8c_source.html#l00357">imgAllocateWithHeader()</a>, and <a class="el" href="img_8c_source.html#l00570">imgExtractRange()</a>.</p> </div> </div> <a class="anchor" id="ada573d4b40da77be4455bb9fab9a3033"></a><!-- doxytag: member="img.c::imgEmpty" ref="ada573d4b40da77be4455bb9fab9a3033" args="(IMG *image)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void imgEmpty </td> <td>(</td> <td class="paramtype"><a class="el" href="structIMG.html">IMG</a> * </td> <td class="paramname"><em>image</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Free memory that is allocated for <a class="el" href="structIMG.html">IMG</a>.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">image</td><td>image structure that has allocated memory </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="img_8c_source.html#l00216">216</a> of file <a class="el" href="img_8c_source.html">img.c</a>.</p> <p>References <a class="el" href="img_8h_source.html#l00268">IMG::_col</a>, <a class="el" href="img_8h_source.html#l00226">IMG::_dataType</a>, <a class="el" href="img_8h_source.html#l00229">IMG::_fileFormat</a>, <a class="el" href="img_8h_source.html#l00271">IMG::_header</a>, <a class="el" href="img_8h_source.html#l00270">IMG::_pln</a>, <a class="el" href="img_8h_source.html#l00267">IMG::_pxl</a>, <a class="el" href="img_8h_source.html#l00269">IMG::_row</a>, <a class="el" href="img_8h_source.html#l00202">IMG::axialFOV</a>, <a class="el" href="img_8h_source.html#l00280">IMG::column</a>, <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#l00317">IMG::errstatus</a>, <a class="el" href="img_8h_source.html#l00214">IMG::gapx</a>, <a class="el" href="img_8h_source.html#l00216">IMG::gapy</a>, <a class="el" href="img_8h_source.html#l00218">IMG::gapz</a>, <a class="el" href="img_8h_source.html#l00072">IMG_STATUS_INITIALIZED</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_8c_source.html#l00399">imgSetStatus()</a>, <a class="el" href="img_8h_source.html#l00182">IMG::isotopeHalflife</a>, <a class="el" href="img_8h_source.html#l00300">IMG::isWeight</a>, <a class="el" href="img_8h_source.html#l00274">IMG::m</a>, <a class="el" href="img_8h_source.html#l00116">MAX_POLARMAP_NUM_RINGS</a>, <a class="el" href="img_8h_source.html#l00294">IMG::mid</a>, <a class="el" href="img_8h_source.html#l00188">IMG::orientation</a>, <a class="el" href="img_8h_source.html#l00178">IMG::patientID</a>, <a class="el" href="img_8h_source.html#l00176">IMG::patientName</a>, <a class="el" href="img_8h_source.html#l00282">IMG::pixel</a>, <a class="el" href="img_8h_source.html#l00276">IMG::plane</a>, <a class="el" href="img_8h_source.html#l00284">IMG::planeNumber</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#l00180">IMG::radiopharmaceutical</a>, <a class="el" href="img_8h_source.html#l00220">IMG::resolutionx</a>, <a class="el" href="img_8h_source.html#l00222">IMG::resolutiony</a>, <a class="el" href="img_8h_source.html#l00224">IMG::resolutionz</a>, <a class="el" href="img_8h_source.html#l00278">IMG::row</a>, <a class="el" href="img_8h_source.html#l00206">IMG::sampleDistance</a>, <a class="el" href="img_8h_source.html#l00231">IMG::scanner</a>, <a class="el" href="img_8h_source.html#l00186">IMG::scanStart</a>, <a class="el" href="img_8h_source.html#l00304">IMG::sd</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#l00290">IMG::start</a>, <a class="el" href="img_8h_source.html#l00164">IMG::status</a>, <a class="el" href="img_8h_source.html#l00118">STATUS_OK</a>, <a class="el" href="img_8h_source.html#l00192">IMG::studyDescription</a>, <a class="el" href="img_8h_source.html#l00174">IMG::studyNr</a>, <a class="el" href="img_8h_source.html#l00204">IMG::transaxialFOV</a>, <a class="el" href="img_8h_source.html#l00198">IMG::type</a>, <a class="el" href="img_8h_source.html#l00172">IMG::unit</a>, <a class="el" href="img_8h_source.html#l00190">IMG::userProcessCode</a>, <a class="el" href="img_8h_source.html#l00302">IMG::weight</a>, and <a class="el" href="img_8h_source.html#l00200">IMG::zoom</a>.</p> <p>Referenced by <a class="el" href="img__e63_8c_source.html#l00568">ecat63ReadPlaneToImg()</a>, <a class="el" href="img_8c_source.html#l00285">imgAllocate()</a>, <a class="el" href="img_8c_source.html#l00570">imgExtractRange()</a>, <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="imgfile_8c_source.html#l00389">imgReadFrame()</a>, <a class="el" href="imgmax_8c_source.html#l00180">imgReadMinMax()</a>, <a class="el" href="img__ana_8c_source.html#l00781">imgWriteAnalyzeFrame()</a>, <a class="el" href="img__e63_8c_source.html#l01656">imgWriteEcat63Frame()</a>, <a class="el" href="img__e7_8c_source.html#l01222">imgWriteEcat7Frame()</a>, <a class="el" href="libtpcimgio_8c_source.html#l00085">main()</a>, <a class="el" href="libtpcimgio_8c_source.html#l00313">test_img_io()</a>, and <a class="el" href="libtpcimgio_8c_source.html#l00387">test_polarmap_io()</a>.</p> <p><div class="dynheader"> Here is the call graph for this function:</div> <div class="dyncontent"> <div class="center"><img src="img_8c_ada573d4b40da77be4455bb9fab9a3033_cgraph.png" border="0" usemap="#img_8c_ada573d4b40da77be4455bb9fab9a3033_cgraph" alt=""/></div> <map name="img_8c_ada573d4b40da77be4455bb9fab9a3033_cgraph" id="img_8c_ada573d4b40da77be4455bb9fab9a3033_cgraph"> <area shape="rect" id="node3" href="img_8c.html#ad124d2d496934d677156cc8779a1e567" title="imgSetStatus" alt="" coords="136,5,237,35"/></map> </div> </p> </div> </div> <a class="anchor" id="a597530352352f006345d5f296b59e8da"></a><!-- doxytag: member="img.c::imgExtractRange" ref="a597530352352f006345d5f296b59e8da" args="(IMG *img1, IMG_RANGE r, IMG *img2)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int imgExtractRange </td> <td>(</td> <td class="paramtype"><a class="el" href="structIMG.html">IMG</a> * </td> <td class="paramname"><em>img1</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="structIMG__RANGE.html">IMG_RANGE</a> </td> <td class="paramname"><em>r</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="structIMG.html">IMG</a> * </td> <td class="paramname"><em>img2</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Extract a smaller 4D image from inside an <a class="el" href="structIMG.html">IMG</a>. Any existing data is overwritten.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">img1</td><td>source image structure, 'occupied' (has allocated data) </td></tr> <tr><td class="paramname">r</td><td>image range structure </td></tr> <tr><td class="paramname">img2</td><td>target image structure 'initialized' (has not allocated data) </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>0 if ok, 1 invalid input, 2 failed to allocate memory for target image </dd></dl> <p>Definition at line <a class="el" href="img_8c_source.html#l00570">570</a> of file <a class="el" href="img_8c_source.html">img.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#l00148">IMG_RANGE::f1</a>, <a class="el" href="img_8h_source.html#l00148">IMG_RANGE::f2</a>, <a class="el" href="img_8h_source.html#l00073">IMG_STATUS_OCCUPIED</a>, <a class="el" href="img_8h_source.html#l00071">IMG_STATUS_UNINITIALIZED</a>, <a class="el" href="img_8h_source.html#l00128">IMG_TEST</a>, <a class="el" href="img_8c_source.html#l00285">imgAllocate()</a>, <a class="el" href="img_8c_source.html#l00501">imgCopyhdr()</a>, <a class="el" href="img_8c_source.html#l00216">imgEmpty()</a>, <a class="el" href="img_8c_source.html#l00399">imgSetStatus()</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#l00306">IMG::prompts</a>, <a class="el" href="img_8h_source.html#l00308">IMG::randoms</a>, <a class="el" href="img_8h_source.html#l00304">IMG::sd</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#l00118">STATUS_FAULT</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#l00302">IMG::weight</a>, <a class="el" href="img_8h_source.html#l00142">IMG_RANGE::x1</a>, <a class="el" href="img_8h_source.html#l00142">IMG_RANGE::x2</a>, <a class="el" href="img_8h_source.html#l00144">IMG_RANGE::y1</a>, <a class="el" href="img_8h_source.html#l00144">IMG_RANGE::y2</a>, <a class="el" href="img_8h_source.html#l00146">IMG_RANGE::z1</a>, and <a class="el" href="img_8h_source.html#l00146">IMG_RANGE::z2</a>.</p> <p><div class="dynheader"> Here is the call graph for this function:</div> <div class="dyncontent"> <div class="center"><img src="img_8c_a597530352352f006345d5f296b59e8da_cgraph.png" border="0" usemap="#img_8c_a597530352352f006345d5f296b59e8da_cgraph" alt=""/></div> <map name="img_8c_a597530352352f006345d5f296b59e8da_cgraph" id="img_8c_a597530352352f006345d5f296b59e8da_cgraph"> <area shape="rect" id="node3" href="img_8c.html#a9b2670da9c7685e6d53058cdf1db1199" title="imgAllocate" alt="" coords="177,56,268,85"/><area shape="rect" id="node5" href="img_8c.html#ada573d4b40da77be4455bb9fab9a3033" title="imgEmpty" alt="" coords="319,5,399,35"/><area shape="rect" id="node7" href="img_8c.html#ad124d2d496934d677156cc8779a1e567" title="imgSetStatus" alt="" coords="448,57,549,87"/><area shape="rect" id="node10" href="img_8c.html#abdf374e8364a31f792daa2b0690ba198" title="imgCopyhdr" alt="" coords="177,160,268,189"/></map> </div> </p> </div> </div> <a class="anchor" id="a32edd1b78039f6cc22b7bbe413aa3a56"></a><!-- doxytag: member="img.c::imgInfo" ref="a32edd1b78039f6cc22b7bbe413aa3a56" args="(IMG *image)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void imgInfo </td> <td>(</td> <td class="paramtype"><a class="el" href="structIMG.html">IMG</a> * </td> <td class="paramname"><em>image</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Prints img information to stdout; mainly for testing purposes.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">image</td><td>image structure </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="img_8c_source.html#l00414">414</a> of file <a class="el" href="img_8c_source.html">img.c</a>.</p> <p>References <a class="el" href="img_8h_source.html#l00226">IMG::_dataType</a>, <a class="el" href="img_8h_source.html#l00229">IMG::_fileFormat</a>, <a class="el" href="img_8h_source.html#l00202">IMG::axialFOV</a>, <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#l00074">IMG_STATUS_ERROR</a>, <a class="el" href="img_8h_source.html#l00072">IMG_STATUS_INITIALIZED</a>, <a class="el" href="img_8h_source.html#l00071">IMG_STATUS_UNINITIALIZED</a>, <a class="el" href="img_8h_source.html#l00128">IMG_TEST</a>, <a class="el" href="imgunit_8c_source.html#l00365">imgUnit()</a>, <a class="el" href="img_8h_source.html#l00182">IMG::isotopeHalflife</a>, <a class="el" href="img_8h_source.html#l00300">IMG::isWeight</a>, <a class="el" href="img_8h_source.html#l00294">IMG::mid</a>, <a class="el" href="img_8h_source.html#l00188">IMG::orientation</a>, <a class="el" href="img_8h_source.html#l00284">IMG::planeNumber</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#l00180">IMG::radiopharmaceutical</a>, <a class="el" href="img_8h_source.html#l00206">IMG::sampleDistance</a>, <a class="el" href="img_8h_source.html#l00231">IMG::scanner</a>, <a class="el" href="img_8h_source.html#l00186">IMG::scanStart</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#l00290">IMG::start</a>, <a class="el" href="img_8h_source.html#l00166">IMG::statmsg</a>, <a class="el" href="img_8h_source.html#l00164">IMG::status</a>, <a class="el" href="img_8h_source.html#l00174">IMG::studyNr</a>, <a class="el" href="img_8h_source.html#l00204">IMG::transaxialFOV</a>, <a class="el" href="img_8h_source.html#l00198">IMG::type</a>, <a class="el" href="img_8h_source.html#l00172">IMG::unit</a>, and <a class="el" href="img_8h_source.html#l00200">IMG::zoom</a>.</p> <p>Referenced by <a class="el" href="img__e63_8c_source.html#l00886">ecat63AddImg()</a>, <a class="el" href="img__ana_8c_source.html#l00629">imgReadAnalyzeFirstFrame()</a>, <a class="el" href="img__e63_8c_source.html#l01422">imgReadEcat63FirstFrame()</a>, <a class="el" href="img__e7_8c_source.html#l01008">imgReadEcat7FirstFrame()</a>, and <a class="el" href="imgfile_8c_source.html#l00389">imgReadFrame()</a>.</p> <p><div class="dynheader"> Here is the call graph for this function:</div> <div class="dyncontent"> <div class="center"><img src="img_8c_a32edd1b78039f6cc22b7bbe413aa3a56_cgraph.png" border="0" usemap="#img_8c_a32edd1b78039f6cc22b7bbe413aa3a56_cgraph" alt=""/></div> <map name="img_8c_a32edd1b78039f6cc22b7bbe413aa3a56_cgraph" id="img_8c_a32edd1b78039f6cc22b7bbe413aa3a56_cgraph"> <area shape="rect" id="node3" href="imgunit_8c.html#afdd2838260ccde7ed239666ca05dcf99" title="imgUnit" alt="" coords="120,5,187,35"/></map> </div> </p> </div> </div> <a class="anchor" id="af95041292a0f9e4a82a10b49a074a95c"></a><!-- doxytag: member="img.c::imgInit" ref="af95041292a0f9e4a82a10b49a074a95c" args="(IMG *image)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void imgInit </td> <td>(</td> <td class="paramtype"><a class="el" href="structIMG.html">IMG</a> * </td> <td class="paramname"><em>image</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Call this once before any use of <a class="el" href="structIMG.html">IMG</a> data.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">image</td><td>target image structure </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="img_8c_source.html#l00163">163</a> of file <a class="el" href="img_8c_source.html">img.c</a>.</p> <p>References <a class="el" href="img_8h_source.html#l00226">IMG::_dataType</a>, <a class="el" href="img_8h_source.html#l00229">IMG::_fileFormat</a>, <a class="el" href="img_8h_source.html#l00271">IMG::_header</a>, <a class="el" href="img_8h_source.html#l00202">IMG::axialFOV</a>, <a class="el" href="img_8h_source.html#l00280">IMG::column</a>, <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#l00317">IMG::errstatus</a>, <a class="el" href="img_8h_source.html#l00214">IMG::gapx</a>, <a class="el" href="img_8h_source.html#l00216">IMG::gapy</a>, <a class="el" href="img_8h_source.html#l00218">IMG::gapz</a>, <a class="el" href="img_8h_source.html#l00072">IMG_STATUS_INITIALIZED</a>, <a class="el" href="img_8h_source.html#l00128">IMG_TEST</a>, <a class="el" href="img_8c_source.html#l00399">imgSetStatus()</a>, <a class="el" href="img_8h_source.html#l00182">IMG::isotopeHalflife</a>, <a class="el" href="img_8h_source.html#l00300">IMG::isWeight</a>, <a class="el" href="img_8h_source.html#l00274">IMG::m</a>, <a class="el" href="img_8h_source.html#l00116">MAX_POLARMAP_NUM_RINGS</a>, <a class="el" href="img_8h_source.html#l00294">IMG::mid</a>, <a class="el" href="img_8h_source.html#l00188">IMG::orientation</a>, <a class="el" href="img_8h_source.html#l00176">IMG::patientName</a>, <a class="el" href="img_8h_source.html#l00282">IMG::pixel</a>, <a class="el" href="img_8h_source.html#l00276">IMG::plane</a>, <a class="el" href="img_8h_source.html#l00284">IMG::planeNumber</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#l00306">IMG::prompts</a>, <a class="el" href="img_8h_source.html#l00180">IMG::radiopharmaceutical</a>, <a class="el" href="img_8h_source.html#l00308">IMG::randoms</a>, <a class="el" href="img_8h_source.html#l00220">IMG::resolutionx</a>, <a class="el" href="img_8h_source.html#l00222">IMG::resolutiony</a>, <a class="el" href="img_8h_source.html#l00224">IMG::resolutionz</a>, <a class="el" href="img_8h_source.html#l00278">IMG::row</a>, <a class="el" href="img_8h_source.html#l00206">IMG::sampleDistance</a>, <a class="el" href="img_8h_source.html#l00231">IMG::scanner</a>, <a class="el" href="img_8h_source.html#l00186">IMG::scanStart</a>, <a class="el" href="img_8h_source.html#l00304">IMG::sd</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#l00290">IMG::start</a>, <a class="el" href="img_8h_source.html#l00164">IMG::status</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#l00204">IMG::transaxialFOV</a>, <a class="el" href="img_8h_source.html#l00198">IMG::type</a>, <a class="el" href="img_8h_source.html#l00172">IMG::unit</a>, <a class="el" href="img_8h_source.html#l00302">IMG::weight</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>, <a class="el" href="micropet_8c_source.html#l00332">imgMicropetPETToEcat7()</a>, <a class="el" href="imgfile_8c_source.html#l00389">imgReadFrame()</a>, <a class="el" href="imgmax_8c_source.html#l00180">imgReadMinMax()</a>, <a class="el" href="img__ana_8c_source.html#l00781">imgWriteAnalyzeFrame()</a>, <a class="el" href="img__e63_8c_source.html#l01656">imgWriteEcat63Frame()</a>, <a class="el" href="img__e7_8c_source.html#l01222">imgWriteEcat7Frame()</a>, <a class="el" href="libtpcimgio_8c_source.html#l00085">main()</a>, <a class="el" href="libtpcimgio_8c_source.html#l00313">test_img_io()</a>, and <a class="el" href="libtpcimgio_8c_source.html#l00387">test_polarmap_io()</a>.</p> <p><div class="dynheader"> Here is the call graph for this function:</div> <div class="dyncontent"> <div class="center"><img src="img_8c_af95041292a0f9e4a82a10b49a074a95c_cgraph.png" border="0" usemap="#img_8c_af95041292a0f9e4a82a10b49a074a95c_cgraph" alt=""/></div> <map name="img_8c_af95041292a0f9e4a82a10b49a074a95c_cgraph" id="img_8c_af95041292a0f9e4a82a10b49a074a95c_cgraph"> <area shape="rect" id="node3" href="img_8c.html#ad124d2d496934d677156cc8779a1e567" title="imgSetStatus" alt="" coords="115,5,216,35"/></map> </div> </p> </div> </div> <a class="anchor" id="ad124d2d496934d677156cc8779a1e567"></a><!-- doxytag: member="img.c::imgSetStatus" ref="ad124d2d496934d677156cc8779a1e567" args="(IMG *img, int status_index)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void imgSetStatus </td> <td>(</td> <td class="paramtype"><a class="el" href="structIMG.html">IMG</a> * </td> <td class="paramname"><em>img</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>status_index</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Set the <a class="el" href="structIMG.html">IMG</a> image error status message pointer (statmsg) and index</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">img</td><td>Pointer to <a class="el" href="structIMG.html">IMG</a> struct where statmsg will be set </td></tr> <tr><td class="paramname">status_index</td><td>Index of img_status_string </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="img_8c_source.html#l00399">399</a> of file <a class="el" href="img_8c_source.html">img.c</a>.</p> <p>References <a class="el" href="img_8h_source.html#l00317">IMG::errstatus</a>, <a class="el" href="img_8c_source.html#l00113">imgmsg</a>, <a class="el" href="img_8h_source.html#l00166">IMG::statmsg</a>, and <a class="el" href="img_8h_source.html#l00118">STATUS_FAULT</a>.</p> <p>Referenced by <a class="el" href="img__e63_8c_source.html#l00077">ecat63ReadAllToImg()</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="img_8c_source.html#l00570">imgExtractRange()</a>, <a class="el" href="img__ana_8c_source.html#l00481">imgGetAnalyzeHeader()</a>, <a class="el" href="img_8c_source.html#l00163">imgInit()</a>, <a class="el" href="img__ana_8c_source.html#l00083">imgReadAnalyze()</a>, <a class="el" href="img__ana_8c_source.html#l00629">imgReadAnalyzeFirstFrame()</a>, <a class="el" href="img__ana_8c_source.html#l00674">imgReadAnalyzeFrame()</a>, <a class="el" href="img__ana_8c_source.html#l00414">imgReadAnalyzeHeader()</a>, <a class="el" href="img__e63_8c_source.html#l01422">imgReadEcat63FirstFrame()</a>, <a class="el" href="img__e63_8c_source.html#l01464">imgReadEcat63Frame()</a>, <a class="el" href="img__e63_8c_source.html#l01289">imgReadEcat63Header()</a>, <a class="el" href="img__e7_8c_source.html#l00083">imgReadEcat7()</a>, <a class="el" href="img__e7_8c_source.html#l01008">imgReadEcat7FirstFrame()</a>, <a class="el" href="img__e7_8c_source.html#l01051">imgReadEcat7Frame()</a>, <a class="el" href="img__e7_8c_source.html#l00827">imgReadEcat7Header()</a>, <a class="el" href="imgfile_8c_source.html#l00389">imgReadFrame()</a>, <a class="el" href="imgfile_8c_source.html#l00329">imgReadHeader()</a>, <a class="el" href="img__ana_8c_source.html#l00542">imgSetAnalyzeHeader()</a>, <a class="el" href="imgfile_8c_source.html#l00277">imgWrite()</a>, <a class="el" href="img__e7_8c_source.html#l00498">imgWrite2DEcat7()</a>, <a class="el" href="img__ana_8c_source.html#l00253">imgWriteAnalyze()</a>, <a class="el" href="img__e7_8c_source.html#l00380">imgWriteEcat7()</a>, <a class="el" href="imgfile_8c_source.html#l00493">imgWriteFrame()</a>, and <a class="el" href="img__e7_8c_source.html#l00606">imgWritePolarmap()</a>.</p> </div> </div> <a class="anchor" id="a2af7a83f855fdb5de24325614912ae5e"></a><!-- doxytag: member="img.c::imgStatus" ref="a2af7a83f855fdb5de24325614912ae5e" args="(int status_index)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">char* imgStatus </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"><em>status_index</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Return pointer to string describing the image error status message</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">status_index</td><td>index of img_status_string </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="img_8c_source.html#l00384">384</a> of file <a class="el" href="img_8c_source.html">img.c</a>.</p> <p>References <a class="el" href="img_8c_source.html#l00113">imgmsg</a>, and <a class="el" href="img_8h_source.html#l00118">STATUS_FAULT</a>.</p> <p>Referenced by <a class="el" href="imgfile_8c_source.html#l00190">imgRead()</a>.</p> </div> </div> <hr/><h2>Variable Documentation</h2> <a class="anchor" id="ae84ca27a99438fced18d361d64bbd4c9"></a><!-- doxytag: member="img.c::imgmsg" ref="ae84ca27a99438fced18d361d64bbd4c9" args="[]" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const char* <a class="el" href="img_8c.html#ae84ca27a99438fced18d361d64bbd4c9">imgmsg</a>[]<code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Status (error) messages from image processing; see enum img_status_msg </p> <p>Definition at line <a class="el" href="img_8c_source.html#l00113">113</a> of file <a class="el" href="img_8c_source.html">img.c</a>.</p> <p>Referenced by <a class="el" href="img_8c_source.html#l00399">imgSetStatus()</a>, and <a class="el" href="img_8c_source.html#l00384">imgStatus()</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>