Sophie

Sophie

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

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>vol.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.4 -->
<div id="top">
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">vol.c File Reference</div>  </div>
</div>
<div class="contents">
<div class="textblock"><code>#include &lt;stdio.h&gt;</code><br/>
<code>#include &lt;stdlib.h&gt;</code><br/>
<code>#include &lt;math.h&gt;</code><br/>
<code>#include &lt;string.h&gt;</code><br/>
<code>#include &lt;time.h&gt;</code><br/>
<code>#include &quot;petc99.h&quot;</code><br/>
<code>#include &quot;<a class="el" href="img_8h_source.html">include/img.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="imgmax_8h_source.html">include/imgmax.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="vol_8h_source.html">include/vol.h</a>&quot;</code><br/>
</div><div class="textblock"><div class="dynheader">
Include dependency graph for vol.c:</div>
<div class="dyncontent">
<div class="center"><img src="vol_8c__incl.png" border="0" usemap="#vol_8c" alt=""/></div>
<map name="vol_8c" id="vol_8c">
<area shape="rect" id="node15" href="img_8h.html" title="include/img.h" alt="" coords="544,160,643,189"/><area shape="rect" id="node19" href="imgmax_8h.html" title="include/imgmax.h" alt="" coords="581,83,704,112"/><area shape="rect" id="node22" href="vol_8h.html" title="include/vol.h" alt="" coords="728,83,821,112"/></map>
</div>
</div>
<p><a href="vol_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="vol_8c.html#a4fcf2277a539c9dd147676fcbb75ae6d">volInit</a> (<a class="el" href="structVOL.html">VOL</a> *vol)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="vol_8c.html#a24aa1af9ebf7dcdd60fddaa866001e84">svolInit</a> (<a class="el" href="structSVOL.html">SVOL</a> *svol)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="vol_8c.html#ab4e7ca1b78280f9d5573bd8bc34ce899">volEmpty</a> (<a class="el" href="structVOL.html">VOL</a> *vol)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="vol_8c.html#a5786ad61a2571e7a22d9e3755c74f2e8">svolEmpty</a> (<a class="el" href="structSVOL.html">SVOL</a> *svol)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="vol_8c.html#a81ef356e4ce5640eab652ff90f0fb4d5">volAllocate</a> (<a class="el" href="structVOL.html">VOL</a> *vol, int planes, int rows, int columns)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="vol_8c.html#a4a18e3bfe8bb42d1abe2eef27d6dfe51">svolAllocate</a> (<a class="el" href="structSVOL.html">SVOL</a> *svol, int planes, int rows, int columns)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="vol_8c.html#ab8e38cb0c2f98d0b17604f62c8753727">img2vol</a> (<a class="el" href="structIMG.html">IMG</a> *img, <a class="el" href="structVOL.html">VOL</a> *vol, int frame)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="vol_8c.html#abd08e7e43e4a4d75e14f9857d4a21453">img2svol</a> (<a class="el" href="structIMG.html">IMG</a> *img, <a class="el" href="structSVOL.html">SVOL</a> *svol, int frame)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="vol_8c.html#ae7f549b3214d93ced7be00aba4c7bd62">vol2img</a> (<a class="el" href="structVOL.html">VOL</a> *vol, <a class="el" href="structIMG.html">IMG</a> *img, int frame)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="vol_8c.html#a7e337783e85d45dbbb1af9b96153d340">svol2img</a> (<a class="el" href="structSVOL.html">SVOL</a> *svol, <a class="el" href="structIMG.html">IMG</a> *img, int frame)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="vol_8c.html#aa6177bbbeb99b94e46f944c788561e5e">volInfo</a> (<a class="el" href="structVOL.html">VOL</a> *vol, FILE *fp)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="vol_8c.html#ab6c8fe364e495214eb0273a4deac062d">svolInfo</a> (<a class="el" href="structSVOL.html">SVOL</a> *svol, FILE *fp)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="vol_8c.html#a254213af969bbc3b01b209f8f46a5742">volContents</a> (<a class="el" href="structVOL.html">VOL</a> *vol, <a class="el" href="structVOL__RANGE.html">VOL_RANGE</a> r, FILE *fp)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="vol_8c.html#a103ff5054657bc65dba9ac5987a694a6">volMax</a> (<a class="el" href="structVOL.html">VOL</a> *vol, <a class="el" href="structVOL__RANGE.html">VOL_RANGE</a> r, <a class="el" href="structVOL__PIXEL.html">VOL_PIXEL</a> *p, float *maxv)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="vol_8c.html#ac3d6465823646c219a5bcb8b188a5206">volAvg</a> (<a class="el" href="structVOL.html">VOL</a> *vol, <a class="el" href="structVOL__RANGE.html">VOL_RANGE</a> r, float *avg)</td></tr>
<tr><td colspan="2"><h2><a name="var-members"></a>
Variables</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="vol_8c.html#a078204a1de94eb6ff6c3504c541f6421">_volStatusMessage</a> []</td></tr>
</table>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="abd08e7e43e4a4d75e14f9857d4a21453"></a><!-- doxytag: member="vol.c::img2svol" ref="abd08e7e43e4a4d75e14f9857d4a21453" args="(IMG *img, SVOL *svol, int frame)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int img2svol </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"><a class="el" href="structSVOL.html">SVOL</a> *&#160;</td>
          <td class="paramname"><em>svol</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>frame</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Copy one time frame (1..dimt) from 4D image to 3D short int volume. Svol can be but need not to be allocated.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">img</td><td>image structure </td></tr>
    <tr><td class="paramname">svol</td><td>short volume structure </td></tr>
    <tr><td class="paramname">frame</td><td>frame number [1..number of frames] </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>0 if ok, 1 invalid image status, 2 invalid input </dd></dl>

<p>Definition at line <a class="el" href="vol_8c_source.html#l00322">322</a> of file <a class="el" href="vol_8c_source.html">vol.c</a>.</p>

<p>References <a class="el" href="vol_8c_source.html#l00032">_volStatusMessage</a>, <a class="el" href="vol_8h_source.html#l00073">SVOL::dimx</a>, <a class="el" href="img_8h_source.html#l00261">IMG::dimx</a>, <a class="el" href="vol_8h_source.html#l00073">SVOL::dimy</a>, <a class="el" href="img_8h_source.html#l00263">IMG::dimy</a>, <a class="el" href="vol_8h_source.html#l00073">SVOL::dimz</a>, <a class="el" href="img_8h_source.html#l00265">IMG::dimz</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="imgmax_8c_source.html#l00147">imgFrameMinMax()</a>, <a class="el" href="img_8h_source.html#l00274">IMG::m</a>, <a class="el" href="img_8h_source.html#l00188">IMG::orientation</a>, <a class="el" href="vol_8h_source.html#l00069">SVOL::orientation</a>, <a class="el" href="vol_8h_source.html#l00075">SVOL::scale_factor</a>, <a class="el" href="img_8h_source.html#l00208">IMG::sizex</a>, <a class="el" href="vol_8h_source.html#l00071">SVOL::sizex</a>, <a class="el" href="img_8h_source.html#l00210">IMG::sizey</a>, <a class="el" href="vol_8h_source.html#l00071">SVOL::sizey</a>, <a class="el" href="img_8h_source.html#l00212">IMG::sizez</a>, <a class="el" href="vol_8h_source.html#l00071">SVOL::sizez</a>, <a class="el" href="vol_8h_source.html#l00067">SVOL::statmsg</a>, <a class="el" href="vol_8h_source.html#l00065">SVOL::status</a>, <a class="el" href="img_8h_source.html#l00164">IMG::status</a>, <a class="el" href="vol_8c_source.html#l00221">svolAllocate()</a>, <a class="el" href="vol_8h_source.html#l00079">SVOL::v</a>, and <a class="el" href="vol_8h_source.html#l00020">VOL_TEST</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="vol_8c_abd08e7e43e4a4d75e14f9857d4a21453_cgraph.png" border="0" usemap="#vol_8c_abd08e7e43e4a4d75e14f9857d4a21453_cgraph" alt=""/></div>
<map name="vol_8c_abd08e7e43e4a4d75e14f9857d4a21453_cgraph" id="vol_8c_abd08e7e43e4a4d75e14f9857d4a21453_cgraph">
<area shape="rect" id="node3" href="imgmax_8c.html#a4230e721a2c8767cfebe73d48c0d910d" title="imgFrameMinMax" alt="" coords="129,5,255,35"/><area shape="rect" id="node5" href="vol_8c.html#a4a18e3bfe8bb42d1abe2eef27d6dfe51" title="svolAllocate" alt="" coords="145,59,239,88"/><area shape="rect" id="node7" href="vol_8c.html#a5786ad61a2571e7a22d9e3755c74f2e8" title="svolEmpty" alt="" coords="305,59,388,88"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ab8e38cb0c2f98d0b17604f62c8753727"></a><!-- doxytag: member="vol.c::img2vol" ref="ab8e38cb0c2f98d0b17604f62c8753727" args="(IMG *img, VOL *vol, int frame)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int img2vol </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"><a class="el" href="structVOL.html">VOL</a> *&#160;</td>
          <td class="paramname"><em>vol</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>frame</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Copy one time frame (1..dimt) from 4D image to 3D volume. Vol can be but need not to be allocated.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">img</td><td>image structure </td></tr>
    <tr><td class="paramname">vol</td><td>volume structure </td></tr>
    <tr><td class="paramname">frame</td><td>frame number [1..number of frames] </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>0 if ok, 1 invalid image status, 2 invalid input </dd></dl>

<p>Definition at line <a class="el" href="vol_8c_source.html#l00284">284</a> of file <a class="el" href="vol_8c_source.html">vol.c</a>.</p>

<p>References <a class="el" href="vol_8c_source.html#l00032">_volStatusMessage</a>, <a class="el" href="vol_8h_source.html#l00051">VOL::dimx</a>, <a class="el" href="img_8h_source.html#l00261">IMG::dimx</a>, <a class="el" href="vol_8h_source.html#l00051">VOL::dimy</a>, <a class="el" href="img_8h_source.html#l00263">IMG::dimy</a>, <a class="el" href="vol_8h_source.html#l00051">VOL::dimz</a>, <a class="el" href="img_8h_source.html#l00265">IMG::dimz</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#l00274">IMG::m</a>, <a class="el" href="img_8h_source.html#l00188">IMG::orientation</a>, <a class="el" href="vol_8h_source.html#l00047">VOL::orientation</a>, <a class="el" href="img_8h_source.html#l00208">IMG::sizex</a>, <a class="el" href="vol_8h_source.html#l00049">VOL::sizex</a>, <a class="el" href="img_8h_source.html#l00210">IMG::sizey</a>, <a class="el" href="vol_8h_source.html#l00049">VOL::sizey</a>, <a class="el" href="img_8h_source.html#l00212">IMG::sizez</a>, <a class="el" href="vol_8h_source.html#l00049">VOL::sizez</a>, <a class="el" href="vol_8h_source.html#l00045">VOL::statmsg</a>, <a class="el" href="vol_8h_source.html#l00043">VOL::status</a>, <a class="el" href="img_8h_source.html#l00164">IMG::status</a>, <a class="el" href="vol_8h_source.html#l00055">VOL::v</a>, <a class="el" href="vol_8h_source.html#l00020">VOL_TEST</a>, and <a class="el" href="vol_8c_source.html#l00156">volAllocate()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="vol_8c_ab8e38cb0c2f98d0b17604f62c8753727_cgraph.png" border="0" usemap="#vol_8c_ab8e38cb0c2f98d0b17604f62c8753727_cgraph" alt=""/></div>
<map name="vol_8c_ab8e38cb0c2f98d0b17604f62c8753727_cgraph" id="vol_8c_ab8e38cb0c2f98d0b17604f62c8753727_cgraph">
<area shape="rect" id="node3" href="vol_8c.html#a81ef356e4ce5640eab652ff90f0fb4d5" title="volAllocate" alt="" coords="121,5,207,35"/><area shape="rect" id="node5" href="vol_8c.html#ab4e7ca1b78280f9d5573bd8bc34ce899" title="volEmpty" alt="" coords="256,5,333,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a7e337783e85d45dbbb1af9b96153d340"></a><!-- doxytag: member="vol.c::svol2img" ref="a7e337783e85d45dbbb1af9b96153d340" args="(SVOL *svol, IMG *img, int frame)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int svol2img </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structSVOL.html">SVOL</a> *&#160;</td>
          <td class="paramname"><em>svol</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</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Copy 3D short int volume as one time frame (1..dimt) into 4D image. Img must be allocated.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">svol</td><td>short volume structure </td></tr>
    <tr><td class="paramname">img</td><td>image structure </td></tr>
    <tr><td class="paramname">frame</td><td>frame number [1..img-&gt;dimt] </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>0 if ok, 1 invalid image, 2 invalid frame number, 3 (x,y) dimension inconsistency, 4 plane number inconsistency </dd></dl>

<p>Definition at line <a class="el" href="vol_8c_source.html#l00401">401</a> of file <a class="el" href="vol_8c_source.html">vol.c</a>.</p>

<p>References <a class="el" href="vol_8c_source.html#l00032">_volStatusMessage</a>, <a class="el" href="vol_8h_source.html#l00073">SVOL::dimx</a>, <a class="el" href="img_8h_source.html#l00261">IMG::dimx</a>, <a class="el" href="vol_8h_source.html#l00073">SVOL::dimy</a>, <a class="el" href="img_8h_source.html#l00263">IMG::dimy</a>, <a class="el" href="vol_8h_source.html#l00073">SVOL::dimz</a>, <a class="el" href="img_8h_source.html#l00265">IMG::dimz</a>, <a class="el" href="img_8h_source.html#l00073">IMG_STATUS_OCCUPIED</a>, <a class="el" href="img_8h_source.html#l00274">IMG::m</a>, <a class="el" href="vol_8h_source.html#l00075">SVOL::scale_factor</a>, <a class="el" href="vol_8h_source.html#l00067">SVOL::statmsg</a>, <a class="el" href="img_8h_source.html#l00164">IMG::status</a>, <a class="el" href="vol_8h_source.html#l00065">SVOL::status</a>, <a class="el" href="vol_8h_source.html#l00079">SVOL::v</a>, and <a class="el" href="vol_8h_source.html#l00020">VOL_TEST</a>.</p>

</div>
</div>
<a class="anchor" id="a4a18e3bfe8bb42d1abe2eef27d6dfe51"></a><!-- doxytag: member="vol.c::svolAllocate" ref="a4a18e3bfe8bb42d1abe2eef27d6dfe51" args="(SVOL *svol, int planes, int rows, int columns)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int svolAllocate </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structSVOL.html">SVOL</a> *&#160;</td>
          <td class="paramname"><em>svol</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>planes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>rows</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>columns</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Allocate memory for 3D short int volume. Returns 0 if ok.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">svol</td><td>short volume structure </td></tr>
    <tr><td class="paramname">planes</td><td>number of planes [&gt;=1] </td></tr>
    <tr><td class="paramname">rows</td><td>number of rows [&gt;=1] </td></tr>
    <tr><td class="paramname">columns</td><td>number of columns [&gt;=1] </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>0 if ok, 1 invalid image status, 2 invalid input, 5 failed to allocate memory for planes, 6 failed to allocate memory for rows, 8 failed to allocate memory for rows </dd></dl>

<p>Definition at line <a class="el" href="vol_8c_source.html#l00221">221</a> of file <a class="el" href="vol_8c_source.html">vol.c</a>.</p>

<p>References <a class="el" href="vol_8h_source.html#l00077">SVOL::_col</a>, <a class="el" href="vol_8h_source.html#l00077">SVOL::_pln</a>, <a class="el" href="vol_8h_source.html#l00077">SVOL::_row</a>, <a class="el" href="vol_8c_source.html#l00032">_volStatusMessage</a>, <a class="el" href="vol_8h_source.html#l00077">SVOL::_vxl</a>, <a class="el" href="vol_8h_source.html#l00079">SVOL::column</a>, <a class="el" href="vol_8h_source.html#l00073">SVOL::dimx</a>, <a class="el" href="vol_8h_source.html#l00073">SVOL::dimy</a>, <a class="el" href="vol_8h_source.html#l00073">SVOL::dimz</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="vol_8h_source.html#l00079">SVOL::plane</a>, <a class="el" href="vol_8h_source.html#l00079">SVOL::row</a>, <a class="el" href="vol_8h_source.html#l00067">SVOL::statmsg</a>, <a class="el" href="vol_8h_source.html#l00065">SVOL::status</a>, <a class="el" href="vol_8c_source.html#l00120">svolEmpty()</a>, <a class="el" href="vol_8h_source.html#l00079">SVOL::v</a>, <a class="el" href="vol_8h_source.html#l00020">VOL_TEST</a>, and <a class="el" href="vol_8h_source.html#l00079">SVOL::voxel</a>.</p>

<p>Referenced by <a class="el" href="vol_8c_source.html#l00322">img2svol()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="vol_8c_a4a18e3bfe8bb42d1abe2eef27d6dfe51_cgraph.png" border="0" usemap="#vol_8c_a4a18e3bfe8bb42d1abe2eef27d6dfe51_cgraph" alt=""/></div>
<map name="vol_8c_a4a18e3bfe8bb42d1abe2eef27d6dfe51_cgraph" id="vol_8c_a4a18e3bfe8bb42d1abe2eef27d6dfe51_cgraph">
<area shape="rect" id="node3" href="vol_8c.html#a5786ad61a2571e7a22d9e3755c74f2e8" title="svolEmpty" alt="" coords="148,5,231,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a5786ad61a2571e7a22d9e3755c74f2e8"></a><!-- doxytag: member="vol.c::svolEmpty" ref="a5786ad61a2571e7a22d9e3755c74f2e8" args="(SVOL *svol)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void svolEmpty </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structSVOL.html">SVOL</a> *&#160;</td>
          <td class="paramname"><em>svol</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Free memory allocated for short int volume.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">svol</td><td>short int volume structure </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="vol_8c_source.html#l00120">120</a> of file <a class="el" href="vol_8c_source.html">vol.c</a>.</p>

<p>References <a class="el" href="vol_8h_source.html#l00077">SVOL::_col</a>, <a class="el" href="vol_8h_source.html#l00077">SVOL::_pln</a>, <a class="el" href="vol_8h_source.html#l00077">SVOL::_row</a>, <a class="el" href="vol_8c_source.html#l00032">_volStatusMessage</a>, <a class="el" href="vol_8h_source.html#l00077">SVOL::_vxl</a>, <a class="el" href="vol_8h_source.html#l00079">SVOL::column</a>, <a class="el" href="vol_8h_source.html#l00073">SVOL::dimx</a>, <a class="el" href="vol_8h_source.html#l00073">SVOL::dimy</a>, <a class="el" href="vol_8h_source.html#l00073">SVOL::dimz</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="vol_8h_source.html#l00069">SVOL::orientation</a>, <a class="el" href="vol_8h_source.html#l00079">SVOL::plane</a>, <a class="el" href="vol_8h_source.html#l00079">SVOL::row</a>, <a class="el" href="vol_8h_source.html#l00075">SVOL::scale_factor</a>, <a class="el" href="vol_8h_source.html#l00071">SVOL::sizex</a>, <a class="el" href="vol_8h_source.html#l00071">SVOL::sizey</a>, <a class="el" href="vol_8h_source.html#l00071">SVOL::sizez</a>, <a class="el" href="vol_8h_source.html#l00067">SVOL::statmsg</a>, <a class="el" href="vol_8h_source.html#l00065">SVOL::status</a>, <a class="el" href="vol_8h_source.html#l00079">SVOL::v</a>, <a class="el" href="vol_8h_source.html#l00020">VOL_TEST</a>, and <a class="el" href="vol_8h_source.html#l00079">SVOL::voxel</a>.</p>

<p>Referenced by <a class="el" href="vol_8c_source.html#l00221">svolAllocate()</a>.</p>

</div>
</div>
<a class="anchor" id="ab6c8fe364e495214eb0273a4deac062d"></a><!-- doxytag: member="vol.c::svolInfo" ref="ab6c8fe364e495214eb0273a4deac062d" args="(SVOL *svol, FILE *fp)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void svolInfo </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structSVOL.html">SVOL</a> *&#160;</td>
          <td class="paramname"><em>svol</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>fp</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Prints short int volume information to specified file pointer, e.g. stdout</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">svol</td><td>short volume structure </td></tr>
    <tr><td class="paramname">fp</td><td>target file pointer </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="vol_8c_source.html#l00455">455</a> of file <a class="el" href="vol_8c_source.html">vol.c</a>.</p>

<p>References <a class="el" href="vol_8h_source.html#l00073">SVOL::dimx</a>, <a class="el" href="vol_8h_source.html#l00073">SVOL::dimy</a>, <a class="el" href="vol_8h_source.html#l00073">SVOL::dimz</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="vol_8h_source.html#l00069">SVOL::orientation</a>, <a class="el" href="vol_8h_source.html#l00075">SVOL::scale_factor</a>, <a class="el" href="vol_8h_source.html#l00071">SVOL::sizex</a>, <a class="el" href="vol_8h_source.html#l00071">SVOL::sizey</a>, <a class="el" href="vol_8h_source.html#l00071">SVOL::sizez</a>, <a class="el" href="vol_8h_source.html#l00067">SVOL::statmsg</a>, <a class="el" href="vol_8h_source.html#l00065">SVOL::status</a>, and <a class="el" href="vol_8h_source.html#l00020">VOL_TEST</a>.</p>

</div>
</div>
<a class="anchor" id="a24aa1af9ebf7dcdd60fddaa866001e84"></a><!-- doxytag: member="vol.c::svolInit" ref="a24aa1af9ebf7dcdd60fddaa866001e84" args="(SVOL *svol)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void svolInit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structSVOL.html">SVOL</a> *&#160;</td>
          <td class="paramname"><em>svol</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Initiate short int volume before any use of <a class="el" href="structSVOL.html">SVOL</a> data; this should be called once.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">svol</td><td>short int volume structure </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="vol_8c_source.html#l00068">68</a> of file <a class="el" href="vol_8c_source.html">vol.c</a>.</p>

<p>References <a class="el" href="vol_8c_source.html#l00032">_volStatusMessage</a>, <a class="el" href="vol_8h_source.html#l00079">SVOL::column</a>, <a class="el" href="vol_8h_source.html#l00073">SVOL::dimx</a>, <a class="el" href="vol_8h_source.html#l00073">SVOL::dimy</a>, <a class="el" href="vol_8h_source.html#l00073">SVOL::dimz</a>, <a class="el" href="img_8h_source.html#l00072">IMG_STATUS_INITIALIZED</a>, <a class="el" href="vol_8h_source.html#l00069">SVOL::orientation</a>, <a class="el" href="vol_8h_source.html#l00079">SVOL::plane</a>, <a class="el" href="vol_8h_source.html#l00079">SVOL::row</a>, <a class="el" href="vol_8h_source.html#l00075">SVOL::scale_factor</a>, <a class="el" href="vol_8h_source.html#l00071">SVOL::sizex</a>, <a class="el" href="vol_8h_source.html#l00071">SVOL::sizey</a>, <a class="el" href="vol_8h_source.html#l00071">SVOL::sizez</a>, <a class="el" href="vol_8h_source.html#l00067">SVOL::statmsg</a>, <a class="el" href="vol_8h_source.html#l00065">SVOL::status</a>, <a class="el" href="vol_8h_source.html#l00079">SVOL::v</a>, <a class="el" href="vol_8h_source.html#l00020">VOL_TEST</a>, and <a class="el" href="vol_8h_source.html#l00079">SVOL::voxel</a>.</p>

</div>
</div>
<a class="anchor" id="ae7f549b3214d93ced7be00aba4c7bd62"></a><!-- doxytag: member="vol.c::vol2img" ref="ae7f549b3214d93ced7be00aba4c7bd62" args="(VOL *vol, IMG *img, int frame)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int vol2img </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structVOL.html">VOL</a> *&#160;</td>
          <td class="paramname"><em>vol</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</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Copy 3D volume as one time frame (1..dimt) into 4D image. Img must be allocated.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">vol</td><td>volume structure </td></tr>
    <tr><td class="paramname">img</td><td>image structure </td></tr>
    <tr><td class="paramname">frame</td><td>frame number [1..number of frames] </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>0 if ok, 1 invalid image status, 2 invalid input, 3 image&lt;-&gt;volume (x,y) dimensions do not match, 4 image&lt;-&gt;volume planes do not match </dd></dl>

<p>Definition at line <a class="el" href="vol_8c_source.html#l00367">367</a> of file <a class="el" href="vol_8c_source.html">vol.c</a>.</p>

<p>References <a class="el" href="vol_8c_source.html#l00032">_volStatusMessage</a>, <a class="el" href="vol_8h_source.html#l00051">VOL::dimx</a>, <a class="el" href="img_8h_source.html#l00261">IMG::dimx</a>, <a class="el" href="vol_8h_source.html#l00051">VOL::dimy</a>, <a class="el" href="img_8h_source.html#l00263">IMG::dimy</a>, <a class="el" href="vol_8h_source.html#l00051">VOL::dimz</a>, <a class="el" href="img_8h_source.html#l00265">IMG::dimz</a>, <a class="el" href="img_8h_source.html#l00073">IMG_STATUS_OCCUPIED</a>, <a class="el" href="img_8h_source.html#l00274">IMG::m</a>, <a class="el" href="vol_8h_source.html#l00045">VOL::statmsg</a>, <a class="el" href="img_8h_source.html#l00164">IMG::status</a>, <a class="el" href="vol_8h_source.html#l00043">VOL::status</a>, <a class="el" href="vol_8h_source.html#l00055">VOL::v</a>, and <a class="el" href="vol_8h_source.html#l00020">VOL_TEST</a>.</p>

</div>
</div>
<a class="anchor" id="a81ef356e4ce5640eab652ff90f0fb4d5"></a><!-- doxytag: member="vol.c::volAllocate" ref="a81ef356e4ce5640eab652ff90f0fb4d5" args="(VOL *vol, int planes, int rows, int columns)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int volAllocate </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structVOL.html">VOL</a> *&#160;</td>
          <td class="paramname"><em>vol</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>planes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>rows</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>columns</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Allocate memory for 3D image volume. Returns 0 if ok.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">vol</td><td>volume structure </td></tr>
    <tr><td class="paramname">planes</td><td>number of planes [&gt;=1] </td></tr>
    <tr><td class="paramname">rows</td><td>number of rows [&gt;=1] </td></tr>
    <tr><td class="paramname">columns</td><td>number of columns [&gt;=1] </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>0 if ok, 1 invalid image status, 2 invalid input, 5 failed to allocate memory for planes, 6 failed to allocate memory for rows, 8 failed to allocate memory for rows </dd></dl>

<p>Definition at line <a class="el" href="vol_8c_source.html#l00156">156</a> of file <a class="el" href="vol_8c_source.html">vol.c</a>.</p>

<p>References <a class="el" href="vol_8h_source.html#l00053">VOL::_col</a>, <a class="el" href="vol_8h_source.html#l00053">VOL::_pln</a>, <a class="el" href="vol_8h_source.html#l00053">VOL::_row</a>, <a class="el" href="vol_8c_source.html#l00032">_volStatusMessage</a>, <a class="el" href="vol_8h_source.html#l00053">VOL::_vxl</a>, <a class="el" href="vol_8h_source.html#l00055">VOL::column</a>, <a class="el" href="vol_8h_source.html#l00051">VOL::dimx</a>, <a class="el" href="vol_8h_source.html#l00051">VOL::dimy</a>, <a class="el" href="vol_8h_source.html#l00051">VOL::dimz</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="vol_8h_source.html#l00055">VOL::plane</a>, <a class="el" href="vol_8h_source.html#l00055">VOL::row</a>, <a class="el" href="vol_8h_source.html#l00045">VOL::statmsg</a>, <a class="el" href="vol_8h_source.html#l00043">VOL::status</a>, <a class="el" href="vol_8h_source.html#l00055">VOL::v</a>, <a class="el" href="vol_8h_source.html#l00020">VOL_TEST</a>, <a class="el" href="vol_8c_source.html#l00091">volEmpty()</a>, and <a class="el" href="vol_8h_source.html#l00055">VOL::voxel</a>.</p>

<p>Referenced by <a class="el" href="vol_8c_source.html#l00284">img2vol()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="vol_8c_a81ef356e4ce5640eab652ff90f0fb4d5_cgraph.png" border="0" usemap="#vol_8c_a81ef356e4ce5640eab652ff90f0fb4d5_cgraph" alt=""/></div>
<map name="vol_8c_a81ef356e4ce5640eab652ff90f0fb4d5_cgraph" id="vol_8c_a81ef356e4ce5640eab652ff90f0fb4d5_cgraph">
<area shape="rect" id="node3" href="vol_8c.html#ab4e7ca1b78280f9d5573bd8bc34ce899" title="volEmpty" alt="" coords="141,5,219,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ac3d6465823646c219a5bcb8b188a5206"></a><!-- doxytag: member="vol.c::volAvg" ref="ac3d6465823646c219a5bcb8b188a5206" args="(VOL *vol, VOL_RANGE r, float *avg)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int volAvg </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structVOL.html">VOL</a> *&#160;</td>
          <td class="paramname"><em>vol</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structVOL__RANGE.html">VOL_RANGE</a>&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>avg</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Calculates average voxel value inside specified volume range.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">vol</td><td>volume structure </td></tr>
    <tr><td class="paramname">r</td><td>volume range structure </td></tr>
    <tr><td class="paramname">avg</td><td>target for average value </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>0 if ok, 1 invalid image status, 2 inconsistent range ending, 3 inconsistent range dimensions, 4 inconsistent dimensions </dd></dl>

<p>Definition at line <a class="el" href="vol_8c_source.html#l00545">545</a> of file <a class="el" href="vol_8c_source.html">vol.c</a>.</p>

<p>References <a class="el" href="vol_8h_source.html#l00051">VOL::dimx</a>, <a class="el" href="vol_8h_source.html#l00051">VOL::dimy</a>, <a class="el" href="vol_8h_source.html#l00051">VOL::dimz</a>, <a class="el" href="img_8h_source.html#l00073">IMG_STATUS_OCCUPIED</a>, <a class="el" href="vol_8h_source.html#l00043">VOL::status</a>, <a class="el" href="vol_8h_source.html#l00055">VOL::v</a>, <a class="el" href="vol_8h_source.html#l00030">VOL_RANGE::x1</a>, <a class="el" href="vol_8h_source.html#l00030">VOL_RANGE::x2</a>, <a class="el" href="vol_8h_source.html#l00031">VOL_RANGE::y1</a>, <a class="el" href="vol_8h_source.html#l00031">VOL_RANGE::y2</a>, <a class="el" href="vol_8h_source.html#l00032">VOL_RANGE::z1</a>, and <a class="el" href="vol_8h_source.html#l00032">VOL_RANGE::z2</a>.</p>

</div>
</div>
<a class="anchor" id="a254213af969bbc3b01b209f8f46a5742"></a><!-- doxytag: member="vol.c::volContents" ref="a254213af969bbc3b01b209f8f46a5742" args="(VOL *vol, VOL_RANGE r, FILE *fp)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void volContents </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structVOL.html">VOL</a> *&#160;</td>
          <td class="paramname"><em>vol</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structVOL__RANGE.html">VOL_RANGE</a>&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>fp</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Prints matrix values inside specified range to file pointer.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">vol</td><td>volume structure </td></tr>
    <tr><td class="paramname">r</td><td>volume range structure </td></tr>
    <tr><td class="paramname">fp</td><td>target file pointer </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="vol_8c_source.html#l00480">480</a> of file <a class="el" href="vol_8c_source.html">vol.c</a>.</p>

<p>References <a class="el" href="vol_8h_source.html#l00051">VOL::dimx</a>, <a class="el" href="vol_8h_source.html#l00051">VOL::dimy</a>, <a class="el" href="vol_8h_source.html#l00051">VOL::dimz</a>, <a class="el" href="img_8h_source.html#l00073">IMG_STATUS_OCCUPIED</a>, <a class="el" href="vol_8h_source.html#l00043">VOL::status</a>, <a class="el" href="vol_8h_source.html#l00055">VOL::v</a>, <a class="el" href="vol_8h_source.html#l00030">VOL_RANGE::x1</a>, <a class="el" href="vol_8h_source.html#l00030">VOL_RANGE::x2</a>, <a class="el" href="vol_8h_source.html#l00031">VOL_RANGE::y1</a>, <a class="el" href="vol_8h_source.html#l00031">VOL_RANGE::y2</a>, <a class="el" href="vol_8h_source.html#l00032">VOL_RANGE::z1</a>, and <a class="el" href="vol_8h_source.html#l00032">VOL_RANGE::z2</a>.</p>

</div>
</div>
<a class="anchor" id="ab4e7ca1b78280f9d5573bd8bc34ce899"></a><!-- doxytag: member="vol.c::volEmpty" ref="ab4e7ca1b78280f9d5573bd8bc34ce899" args="(VOL *vol)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void volEmpty </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structVOL.html">VOL</a> *&#160;</td>
          <td class="paramname"><em>vol</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Free memory allocated for volume.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">vol</td><td>volume structure </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="vol_8c_source.html#l00091">91</a> of file <a class="el" href="vol_8c_source.html">vol.c</a>.</p>

<p>References <a class="el" href="vol_8h_source.html#l00053">VOL::_col</a>, <a class="el" href="vol_8h_source.html#l00053">VOL::_pln</a>, <a class="el" href="vol_8h_source.html#l00053">VOL::_row</a>, <a class="el" href="vol_8c_source.html#l00032">_volStatusMessage</a>, <a class="el" href="vol_8h_source.html#l00053">VOL::_vxl</a>, <a class="el" href="vol_8h_source.html#l00055">VOL::column</a>, <a class="el" href="vol_8h_source.html#l00051">VOL::dimx</a>, <a class="el" href="vol_8h_source.html#l00051">VOL::dimy</a>, <a class="el" href="vol_8h_source.html#l00051">VOL::dimz</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="vol_8h_source.html#l00047">VOL::orientation</a>, <a class="el" href="vol_8h_source.html#l00055">VOL::plane</a>, <a class="el" href="vol_8h_source.html#l00055">VOL::row</a>, <a class="el" href="vol_8h_source.html#l00049">VOL::sizex</a>, <a class="el" href="vol_8h_source.html#l00049">VOL::sizey</a>, <a class="el" href="vol_8h_source.html#l00049">VOL::sizez</a>, <a class="el" href="vol_8h_source.html#l00045">VOL::statmsg</a>, <a class="el" href="vol_8h_source.html#l00043">VOL::status</a>, <a class="el" href="vol_8h_source.html#l00055">VOL::v</a>, <a class="el" href="vol_8h_source.html#l00020">VOL_TEST</a>, and <a class="el" href="vol_8h_source.html#l00055">VOL::voxel</a>.</p>

<p>Referenced by <a class="el" href="vol_8c_source.html#l00156">volAllocate()</a>.</p>

</div>
</div>
<a class="anchor" id="aa6177bbbeb99b94e46f944c788561e5e"></a><!-- doxytag: member="vol.c::volInfo" ref="aa6177bbbeb99b94e46f944c788561e5e" args="(VOL *vol, FILE *fp)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void volInfo </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structVOL.html">VOL</a> *&#160;</td>
          <td class="paramname"><em>vol</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>fp</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Prints volume information to specified file pointer, e.g. stdout</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">vol</td><td>volume structure </td></tr>
    <tr><td class="paramname">fp</td><td>target file pointer </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="vol_8c_source.html#l00431">431</a> of file <a class="el" href="vol_8c_source.html">vol.c</a>.</p>

<p>References <a class="el" href="vol_8h_source.html#l00051">VOL::dimx</a>, <a class="el" href="vol_8h_source.html#l00051">VOL::dimy</a>, <a class="el" href="vol_8h_source.html#l00051">VOL::dimz</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="vol_8h_source.html#l00047">VOL::orientation</a>, <a class="el" href="vol_8h_source.html#l00049">VOL::sizex</a>, <a class="el" href="vol_8h_source.html#l00049">VOL::sizey</a>, <a class="el" href="vol_8h_source.html#l00049">VOL::sizez</a>, <a class="el" href="vol_8h_source.html#l00045">VOL::statmsg</a>, <a class="el" href="vol_8h_source.html#l00043">VOL::status</a>, and <a class="el" href="vol_8h_source.html#l00020">VOL_TEST</a>.</p>

</div>
</div>
<a class="anchor" id="a4fcf2277a539c9dd147676fcbb75ae6d"></a><!-- doxytag: member="vol.c::volInit" ref="a4fcf2277a539c9dd147676fcbb75ae6d" args="(VOL *vol)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void volInit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structVOL.html">VOL</a> *&#160;</td>
          <td class="paramname"><em>vol</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Initiate volume before any use of <a class="el" href="structVOL.html">VOL</a> data; this should be called once.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">vol</td><td>pointer to volume structure </td></tr>
  </table>
  </dd>
</dl>

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

<p>References <a class="el" href="vol_8c_source.html#l00032">_volStatusMessage</a>, <a class="el" href="vol_8h_source.html#l00055">VOL::column</a>, <a class="el" href="vol_8h_source.html#l00051">VOL::dimx</a>, <a class="el" href="vol_8h_source.html#l00051">VOL::dimy</a>, <a class="el" href="vol_8h_source.html#l00051">VOL::dimz</a>, <a class="el" href="img_8h_source.html#l00072">IMG_STATUS_INITIALIZED</a>, <a class="el" href="vol_8h_source.html#l00047">VOL::orientation</a>, <a class="el" href="vol_8h_source.html#l00055">VOL::plane</a>, <a class="el" href="vol_8h_source.html#l00055">VOL::row</a>, <a class="el" href="vol_8h_source.html#l00049">VOL::sizex</a>, <a class="el" href="vol_8h_source.html#l00049">VOL::sizey</a>, <a class="el" href="vol_8h_source.html#l00049">VOL::sizez</a>, <a class="el" href="vol_8h_source.html#l00045">VOL::statmsg</a>, <a class="el" href="vol_8h_source.html#l00043">VOL::status</a>, <a class="el" href="vol_8h_source.html#l00055">VOL::v</a>, <a class="el" href="vol_8h_source.html#l00020">VOL_TEST</a>, and <a class="el" href="vol_8h_source.html#l00055">VOL::voxel</a>.</p>

</div>
</div>
<a class="anchor" id="a103ff5054657bc65dba9ac5987a694a6"></a><!-- doxytag: member="vol.c::volMax" ref="a103ff5054657bc65dba9ac5987a694a6" args="(VOL *vol, VOL_RANGE r, VOL_PIXEL *p, float *maxv)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int volMax </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structVOL.html">VOL</a> *&#160;</td>
          <td class="paramname"><em>vol</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structVOL__RANGE.html">VOL_RANGE</a>&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structVOL__PIXEL.html">VOL_PIXEL</a> *&#160;</td>
          <td class="paramname"><em>p</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>maxv</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Finds max voxel inside specified volume range.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">vol</td><td>volume structure </td></tr>
    <tr><td class="paramname">r</td><td>volume range structure </td></tr>
    <tr><td class="paramname">p</td><td>volume pixel structure </td></tr>
    <tr><td class="paramname">maxv</td><td>target for maximum value </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>0 if ok, 1 invalid volume status, 2 invalid range endings, 3 inconsistent range dimensions, 4 inconsistent dimensions </dd></dl>

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

<p>References <a class="el" href="vol_8h_source.html#l00051">VOL::dimx</a>, <a class="el" href="vol_8h_source.html#l00051">VOL::dimy</a>, <a class="el" href="vol_8h_source.html#l00051">VOL::dimz</a>, <a class="el" href="img_8h_source.html#l00073">IMG_STATUS_OCCUPIED</a>, <a class="el" href="vol_8h_source.html#l00043">VOL::status</a>, <a class="el" href="vol_8h_source.html#l00055">VOL::v</a>, <a class="el" href="vol_8h_source.html#l00025">VOL_PIXEL::x</a>, <a class="el" href="vol_8h_source.html#l00030">VOL_RANGE::x1</a>, <a class="el" href="vol_8h_source.html#l00030">VOL_RANGE::x2</a>, <a class="el" href="vol_8h_source.html#l00026">VOL_PIXEL::y</a>, <a class="el" href="vol_8h_source.html#l00031">VOL_RANGE::y1</a>, <a class="el" href="vol_8h_source.html#l00031">VOL_RANGE::y2</a>, <a class="el" href="vol_8h_source.html#l00027">VOL_PIXEL::z</a>, <a class="el" href="vol_8h_source.html#l00032">VOL_RANGE::z1</a>, and <a class="el" href="vol_8h_source.html#l00032">VOL_RANGE::z2</a>.</p>

</div>
</div>
<hr/><h2>Variable Documentation</h2>
<a class="anchor" id="a078204a1de94eb6ff6c3504c541f6421"></a><!-- doxytag: member="vol.c::_volStatusMessage" ref="a078204a1de94eb6ff6c3504c541f6421" args="[]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* <a class="el" href="vol_8c.html#a078204a1de94eb6ff6c3504c541f6421">_volStatusMessage</a>[]</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<b>Initial value:</b><div class="fragment"><pre class="fragment"> {
   <span class="stringliteral">&quot;ok&quot;</span>,
   <span class="stringliteral">&quot;fault in calling routine&quot;</span>,
   <span class="stringliteral">&quot;out of memory&quot;</span>
}
</pre></div><p>Status (error) messages from volume processing </p>

<p>Definition at line <a class="el" href="vol_8c_source.html#l00032">32</a> of file <a class="el" href="vol_8c_source.html">vol.c</a>.</p>

<p>Referenced by <a class="el" href="vol_8c_source.html#l00322">img2svol()</a>, <a class="el" href="vol_8c_source.html#l00284">img2vol()</a>, <a class="el" href="vol_8c_source.html#l00401">svol2img()</a>, <a class="el" href="vol_8c_source.html#l00221">svolAllocate()</a>, <a class="el" href="vol_8c_source.html#l00120">svolEmpty()</a>, <a class="el" href="vol_8c_source.html#l00068">svolInit()</a>, <a class="el" href="vol_8c_source.html#l00367">vol2img()</a>, <a class="el" href="vol_8c_source.html#l00156">volAllocate()</a>, <a class="el" href="vol_8c_source.html#l00091">volEmpty()</a>, and <a class="el" href="vol_8c_source.html#l00045">volInit()</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>