Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > d5e74628f0e673bb8680aebce32b2c04 > files > 16841

itk-doc-3.12.0-1mdv2010.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta name="robots" content="noindex">
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>ITK: itkParallelSparseFieldLevelSetImageFilter.h Source File</title>
<link href="DoxygenStyle.css" rel="stylesheet" type="text/css">
</head><body bgcolor="#ffffff">


<!--  Section customized for INSIGHT : Tue Jul 17 01:02:45 2001 -->
<center>
<a href="index.html" class="qindex">Main Page</a>&nbsp;&nbsp; 
<a href="modules.html" class="qindex">Groups</a>&nbsp;&nbsp;
<a href="namespaces.html" class="qindex">Namespace List</a>&nbsp;&nbsp;
<a href="hierarchy.html" class="qindex">Class Hierarchy</a>&nbsp;&nbsp;
<a href="classes.html" class="qindex">Alphabetical List</a>&nbsp;&nbsp;
<a href="annotated.html" class="qindex">Compound List</a>&nbsp;&nbsp; 
<a href="files.html" class="qindex">File
List</a>&nbsp;&nbsp; 
<a href="namespacemembers.html" class="qindex">Namespace Members</a>&nbsp;&nbsp; 
<a href="functions.html" class="qindex">Compound Members</a>&nbsp;&nbsp; 
<a href="globals.html" class="qindex">File Members</a>&nbsp;&nbsp;
<a href="pages.html" class="qindex">Concepts</a></center>


<!-- Generated by Doxygen 1.5.9 -->
  <div class="navpath"><a class="el" href="dir_02e23d841c198393a6e961e9a0678fff.html">Code</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_00ffda33c24cbbf617b202f4f3bcb7e8.html">BasicFilters</a>
  </div>
<div class="contents">
<h1>itkParallelSparseFieldLevelSetImageFilter.h</h1><a href="itkParallelSparseFieldLevelSetImageFilter_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*=========================================================================</span>
<a name="l00002"></a>00002 <span class="comment">  </span>
<a name="l00003"></a>00003 <span class="comment">Program:   Insight Segmentation &amp; Registration Toolkit</span>
<a name="l00004"></a>00004 <span class="comment">Module:    $RCSfile: itkParallelSparseFieldLevelSetImageFilter.h,v $</span>
<a name="l00005"></a>00005 <span class="comment">Language:  C++</span>
<a name="l00006"></a>00006 <span class="comment">Date:      $Date: 2008-10-17 16:30:48 $</span>
<a name="l00007"></a>00007 <span class="comment">Version:   $Revision: 1.17 $</span>
<a name="l00008"></a>00008 <span class="comment"></span>
<a name="l00009"></a>00009 <span class="comment">Copyright (c) Insight Software Consortium. All rights reserved.</span>
<a name="l00010"></a>00010 <span class="comment">See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.</span>
<a name="l00011"></a>00011 <span class="comment"></span>
<a name="l00012"></a>00012 <span class="comment">This software is distributed WITHOUT ANY WARRANTY; without even </span>
<a name="l00013"></a>00013 <span class="comment">the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR </span>
<a name="l00014"></a>00014 <span class="comment">PURPOSE.  See the above copyright notices for more information.</span>
<a name="l00015"></a>00015 <span class="comment"></span>
<a name="l00016"></a>00016 <span class="comment">=========================================================================*/</span>
<a name="l00017"></a>00017 <span class="preprocessor">#ifndef __itkParallelSparseFieldLevelSetImageFilter_h</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define __itkParallelSparseFieldLevelSetImageFilter_h</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span>
<a name="l00020"></a>00020 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00021"></a>00021 <span class="preprocessor">#include "<a class="code" href="itkFiniteDifferenceImageFilter_8h.html">itkFiniteDifferenceImageFilter.h</a>"</span>
<a name="l00022"></a>00022 <span class="preprocessor">#include "<a class="code" href="itkSparseFieldLayer_8h.html">itkSparseFieldLayer.h</a>"</span>
<a name="l00023"></a>00023 <span class="preprocessor">#include "<a class="code" href="itkObjectStore_8h.html">itkObjectStore.h</a>"</span>
<a name="l00024"></a>00024 <span class="preprocessor">#include "<a class="code" href="itkNeighborhoodIterator_8h.html">itkNeighborhoodIterator.h</a>"</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include "<a class="code" href="itkConstNeighborhoodIterator_8h.html">itkConstNeighborhoodIterator.h</a>"</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include "<a class="code" href="itkMultiThreader_8h.html">itkMultiThreader.h</a>"</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include "<a class="code" href="itkBarrier_8h.html">itkBarrier.h</a>"</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include "<a class="code" href="itkSemaphore_8h.html">itkSemaphore.h</a>"</span>
<a name="l00029"></a>00029 
<a name="l00030"></a>00030 <span class="keyword">namespace </span>itk
<a name="l00031"></a>00031 {
<a name="l00032"></a>00032 
<a name="l00037"></a>00037 <span class="keyword">template</span> &lt;<span class="keyword">class</span> TNodeIndexType&gt;
<a name="l00038"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetNode.html">00038</a> <span class="keyword">class </span><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetNode.html">ParallelSparseFieldLevelSetNode</a>
<a name="l00039"></a>00039 {
<a name="l00040"></a>00040 <span class="keyword">public</span>:
<a name="l00041"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetNode.html#013a016f5d7d53f7efcc70a5de60c885">00041</a>   TNodeIndexType                   <a class="code" href="classitk_1_1ParallelSparseFieldLevelSetNode.html#013a016f5d7d53f7efcc70a5de60c885">m_Index</a>;
<a name="l00042"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetNode.html#2cc119a56a464df73ae0f494d5f75071">00042</a>   <span class="keywordtype">float</span>                            <a class="code" href="classitk_1_1ParallelSparseFieldLevelSetNode.html#2cc119a56a464df73ae0f494d5f75071">m_Value</a>;
<a name="l00043"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetNode.html#ddf0959cc02612cb7d0fb521e6f11fd9">00043</a>   <a class="code" href="classitk_1_1ParallelSparseFieldLevelSetNode.html">ParallelSparseFieldLevelSetNode</a> *<a class="code" href="classitk_1_1ParallelSparseFieldLevelSetNode.html#ddf0959cc02612cb7d0fb521e6f11fd9">Next</a>;
<a name="l00044"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetNode.html#4934bab21ea0b5e07fa2135beaea9cc8">00044</a>   <a class="code" href="classitk_1_1ParallelSparseFieldLevelSetNode.html">ParallelSparseFieldLevelSetNode</a> *<a class="code" href="classitk_1_1ParallelSparseFieldLevelSetNode.html#4934bab21ea0b5e07fa2135beaea9cc8">Previous</a>;
<a name="l00045"></a>00045 };
<a name="l00046"></a>00046 
<a name="l00073"></a>00073 <span class="keyword">template</span> &lt;<span class="keyword">class</span> TNeighborhoodType&gt;
<a name="l00074"></a><a class="code" href="classitk_1_1ParallelSparseFieldCityBlockNeighborList.html">00074</a> <span class="keyword">class </span><a class="code" href="classitk_1_1ParallelSparseFieldCityBlockNeighborList.html" title="A convenience class for storing indicies which reference neighbor pixels within a...">ParallelSparseFieldCityBlockNeighborList</a>
<a name="l00075"></a>00075 {
<a name="l00076"></a>00076 <span class="keyword">public</span>:
<a name="l00077"></a><a class="code" href="classitk_1_1ParallelSparseFieldCityBlockNeighborList.html#46cc41663de76350efb46675e9cefdbf">00077</a>   <span class="keyword">typedef</span> TNeighborhoodType                     <a class="code" href="classitk_1_1NeighborhoodIterator.html" title="Defines iteration of a local N-dimensional neighborhood of pixels across an itk::Image...">NeighborhoodType</a>;
<a name="l00078"></a><a class="code" href="classitk_1_1ParallelSparseFieldCityBlockNeighborList.html#587b0eb1e25e1bf729d7c438317c9c67">00078</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1Offset.html">NeighborhoodType::OffsetType</a> <a class="code" href="classitk_1_1Offset.html">OffsetType</a>;
<a name="l00079"></a><a class="code" href="classitk_1_1ParallelSparseFieldCityBlockNeighborList.html#040b3896a6566179108bedfd2e8904bd">00079</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> NeighborhoodType::RadiusType <a class="code" href="classitk_1_1ParallelSparseFieldCityBlockNeighborList.html#040b3896a6566179108bedfd2e8904bd">RadiusType</a>;
<a name="l00080"></a>00080 
<a name="l00081"></a>00081   <a class="code" href="classitk_1_1ParallelSparseFieldCityBlockNeighborList.html#a6bab74dde1672930543169a7d562c6d">itkStaticConstMacro</a>(Dimension, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>, NeighborhoodType::Dimension);
<a name="l00082"></a>00082   
<a name="l00083"></a><a class="code" href="classitk_1_1ParallelSparseFieldCityBlockNeighborList.html#7f9cfbe7b3c9aa846ce9033912019e7b">00083</a>   <span class="keyword">const</span> <a class="code" href="classitk_1_1ParallelSparseFieldCityBlockNeighborList.html#040b3896a6566179108bedfd2e8904bd">RadiusType</a> &amp;<a class="code" href="classitk_1_1ParallelSparseFieldCityBlockNeighborList.html#7f9cfbe7b3c9aa846ce9033912019e7b">GetRadius</a>()<span class="keyword"> const</span>
<a name="l00084"></a>00084 <span class="keyword">    </span>{
<a name="l00085"></a>00085     <span class="keywordflow">return</span> m_Radius;
<a name="l00086"></a>00086     }
<a name="l00087"></a>00087   
<a name="l00088"></a><a class="code" href="classitk_1_1ParallelSparseFieldCityBlockNeighborList.html#afd96be97bfb1ec3fd5b84093de4e2af">00088</a>   <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> &amp;<a class="code" href="classitk_1_1ParallelSparseFieldCityBlockNeighborList.html#afd96be97bfb1ec3fd5b84093de4e2af">GetArrayIndex</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i)<span class="keyword"> const</span>
<a name="l00089"></a>00089 <span class="keyword">    </span>{
<a name="l00090"></a>00090     <span class="keywordflow">return</span> m_ArrayIndex[i];
<a name="l00091"></a>00091     }
<a name="l00092"></a>00092 
<a name="l00093"></a><a class="code" href="classitk_1_1ParallelSparseFieldCityBlockNeighborList.html#33d840df82b4241a541b1d242a7c890e">00093</a>   <span class="keyword">const</span> <a class="code" href="classitk_1_1Offset.html">OffsetType</a> &amp;<a class="code" href="classitk_1_1ParallelSparseFieldCityBlockNeighborList.html#33d840df82b4241a541b1d242a7c890e">GetNeighborhoodOffset</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i)<span class="keyword"> const</span>
<a name="l00094"></a>00094 <span class="keyword">    </span>{
<a name="l00095"></a>00095     <span class="keywordflow">return</span> m_NeighborhoodOffset[i];
<a name="l00096"></a>00096     }
<a name="l00097"></a>00097   
<a name="l00098"></a><a class="code" href="classitk_1_1ParallelSparseFieldCityBlockNeighborList.html#c652fd857bb1b04eb3d8a673b2d4ed20">00098</a>   <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> &amp;<a class="code" href="classitk_1_1ParallelSparseFieldCityBlockNeighborList.html#c652fd857bb1b04eb3d8a673b2d4ed20">GetSize</a>()<span class="keyword"> const</span>
<a name="l00099"></a>00099 <span class="keyword">    </span>{
<a name="l00100"></a>00100     <span class="keywordflow">return</span> m_Size;
<a name="l00101"></a>00101     }
<a name="l00102"></a>00102   
<a name="l00103"></a><a class="code" href="classitk_1_1ParallelSparseFieldCityBlockNeighborList.html#1ed2a942c00f74186d87698eaa28d1b9">00103</a>   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classitk_1_1ParallelSparseFieldCityBlockNeighborList.html#1ed2a942c00f74186d87698eaa28d1b9">GetStride</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i)
<a name="l00104"></a>00104     {
<a name="l00105"></a>00105     <span class="keywordflow">return</span> m_StrideTable[i];
<a name="l00106"></a>00106     }
<a name="l00107"></a>00107   
<a name="l00108"></a>00108   <a class="code" href="classitk_1_1ParallelSparseFieldCityBlockNeighborList.html#ef8910a6cc683f4ec3cac6ebc2c38727">ParallelSparseFieldCityBlockNeighborList</a>();
<a name="l00109"></a>00109   
<a name="l00110"></a><a class="code" href="classitk_1_1ParallelSparseFieldCityBlockNeighborList.html#9967a54850aa06e47bcecd917790661a">00110</a>   <a class="code" href="classitk_1_1ParallelSparseFieldCityBlockNeighborList.html#9967a54850aa06e47bcecd917790661a">~ParallelSparseFieldCityBlockNeighborList</a>()
<a name="l00111"></a>00111     {
<a name="l00112"></a>00112     m_ArrayIndex.clear();
<a name="l00113"></a>00113     m_NeighborhoodOffset.clear();
<a name="l00114"></a>00114     }
<a name="l00115"></a>00115   
<a name="l00116"></a>00116   <span class="keywordtype">void</span> <a class="code" href="classitk_1_1ParallelSparseFieldCityBlockNeighborList.html#4a92b91744d88a915ca2a8e35b80e1ee">Print</a>(std::ostream &amp;os) <span class="keyword">const</span>;
<a name="l00117"></a>00117   
<a name="l00118"></a>00118 <span class="keyword">private</span>:
<a name="l00119"></a>00119   <span class="keywordtype">char</span>                      m_Pad1[128];
<a name="l00120"></a>00120   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>              m_Size;
<a name="l00121"></a>00121   <a class="code" href="classitk_1_1ParallelSparseFieldCityBlockNeighborList.html#040b3896a6566179108bedfd2e8904bd">RadiusType</a>                m_Radius;
<a name="l00122"></a>00122   std::vector&lt;unsigned int&gt; m_ArrayIndex;
<a name="l00123"></a>00123   std::vector&lt;OffsetType&gt;   m_NeighborhoodOffset;
<a name="l00124"></a>00124   
<a name="l00127"></a>00127   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> m_StrideTable[Dimension];
<a name="l00128"></a>00128   <span class="keywordtype">char</span>         m_Pad2[128];
<a name="l00129"></a>00129 };
<a name="l00130"></a>00130 
<a name="l00246"></a>00246 <span class="keyword">template</span> &lt;<span class="keyword">class</span> TInputImage, <span class="keyword">class</span> TOutputImage&gt;
<a name="l00247"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html">00247</a> <span class="keyword">class </span><a class="code" href="itkWin32Header_8h.html#7d4384322557205d75f0719c012dded6">ITK_EXPORT</a> <a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html" title="This class implements a finite difference partial differential equation solver for...">ParallelSparseFieldLevelSetImageFilter</a> :
<a name="l00248"></a>00248   <span class="keyword">public</span> <a class="code" href="classitk_1_1FiniteDifferenceImageFilter.html">FiniteDifferenceImageFilter</a>&lt;TInputImage, TOutputImage&gt;
<a name="l00249"></a>00249 {
<a name="l00250"></a>00250 <span class="keyword">public</span>:
<a name="l00251"></a>00251 
<a name="l00253"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#4f457ee0ff1dbf97730d9cfb412f0636">00253</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html" title="This class implements a finite difference partial differential equation solver for...">ParallelSparseFieldLevelSetImageFilter</a>                 <a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html" title="This class implements a finite difference partial differential equation solver for...">Self</a>;
<a name="l00254"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#d2621d60bf67a223b6b4c1419757d294">00254</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1FiniteDifferenceImageFilter.html">FiniteDifferenceImageFilter&lt;TInputImage, TOutputImage&gt;</a> <a class="code" href="classitk_1_1FiniteDifferenceImageFilter.html">Superclass</a>;
<a name="l00255"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#f6318bff2f1ba01dea7cc5aa263e0d8e">00255</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1SmartPointer.html">SmartPointer&lt;Self&gt;</a>                                     <a class="code" href="classitk_1_1SmartPointer.html">Pointer</a>;
<a name="l00256"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#71b7b973772534e10d06cc7353ade666">00256</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1SmartPointer.html">SmartPointer&lt;const Self&gt;</a>                               <a class="code" href="classitk_1_1SmartPointer.html">ConstPointer</a>;
<a name="l00257"></a>00257 
<a name="l00259"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#439e298b0f3cd91a198a698a5ff72f2e">00259</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::TimeStepType                 TimeStepType;
<a name="l00260"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#b92f5d4c4ba0168a65aadbd934b62392">00260</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1FiniteDifferenceFunction.html">Superclass::FiniteDifferenceFunctionType</a> <a class="code" href="classitk_1_1FiniteDifferenceFunction.html">FiniteDifferenceFunctionType</a>;
<a name="l00261"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#ad7a5943db1f43e5dc7602fbcab74ebf">00261</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::RadiusType                   RadiusType;
<a name="l00262"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#fad03f1f6f40433b55fb98f7272677ff">00262</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1Vector.html" title="A templated class holding a n-Dimensional vector.">Superclass::NeighborhoodScalesType</a>       <a class="code" href="classitk_1_1Vector.html" title="A templated class holding a n-Dimensional vector.">NeighborhoodScalesType</a>;
<a name="l00263"></a>00263 
<a name="l00265"></a>00265   <a class="code" href="itkMacro_8h.html#0fdc15685afa271857c57e7cd482f30c">itkNewMacro</a>(<a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html" title="This class implements a finite difference partial differential equation solver for...">Self</a>);
<a name="l00266"></a>00266 
<a name="l00268"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#5722818651f984664ab6890f897296f9">00268</a>   <a class="code" href="itkMacro_8h.html#574c1f86661d409dd32c742307a0e96a">itkTypeMacro</a>(<a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html" title="This class implements a finite difference partial differential equation solver for...">ParallelSparseFieldLevelSetImageFilter</a>, <a class="code" href="classitk_1_1FiniteDifferenceImageFilter.html">FiniteDifferenceImageFilter</a>);
<a name="l00269"></a>00269 
<a name="l00271"></a>00271   <span class="keyword">typedef</span> TInputImage                         <a class="code" href="namespaceHardConnectedComponentImageFilter.html#3742cbac150bee74daa9aab85ed80623">InputImageType</a>;
<a name="l00272"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#75b790c3b93fba08b932a864a4ea8afc">00272</a>   <span class="keyword">typedef</span> TOutputImage                        <a class="code" href="namespaceHardConnectedComponentImageFilter.html#386ea018cab3835dcdff2603f4d2280e">OutputImageType</a>;
<a name="l00273"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#9511b847bbf46b45cc2e0978e2737b4f">00273</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#be32dc19e71d40322ad9828b9ab40853">OutputImageType::IndexType</a> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#be32dc19e71d40322ad9828b9ab40853">IndexType</a>;
<a name="l00274"></a>00274 
<a name="l00275"></a>00275   <a class="code" href="itkMacro_8h.html#1905cf6b2e88235996fa7ff73b2fb0eb">itkStaticConstMacro</a>(ImageDimension, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>, TOutputImage::ImageDimension);
<a name="l00276"></a>00276 
<a name="l00277"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#a3b51d132797536f8db46367ba0f956e">00277</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> OutputImageType::PixelType PixelType;
<a name="l00278"></a>00278   
<a name="l00279"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#8b5ea23ea7dad69876b866dd5286edaf">00279</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ed8c4a40607d317c666eb96ea265e126">OutputImageType::RegionType</a> ThreadRegionType;
<a name="l00280"></a>00280   
<a name="l00283"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#6cce136364db244ed6e59cef7020ee39">00283</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> OutputImageType::ValueType ValueType;
<a name="l00284"></a>00284 
<a name="l00286"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#98937c0ff7fc1fa7465d312bfe671dbc">00286</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1ParallelSparseFieldLevelSetNode.html">ParallelSparseFieldLevelSetNode&lt;IndexType&gt;</a> <a class="code" href="classitk_1_1ParallelSparseFieldLevelSetNode.html">LayerNodeType</a>;
<a name="l00287"></a>00287 
<a name="l00289"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#5d74e911009e3b9b22aac82b1fe6a637">00289</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1SparseFieldLayer.html">SparseFieldLayer&lt;LayerNodeType&gt;</a> <a class="code" href="classitk_1_1SparseFieldLayer.html">LayerType</a>;
<a name="l00290"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#26d9b47c6004116c94dc06032cd44571">00290</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">LayerType::Pointer</a>     <a class="code" href="classitk_1_1SmartPointer.html">LayerPointerType</a>;
<a name="l00291"></a>00291 
<a name="l00293"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#9acdf22a1d1a9ca4966db621dad17ad0">00293</a>   <span class="keyword">typedef</span> std::vector&lt;LayerPointerType&gt; LayerListType;
<a name="l00294"></a>00294 
<a name="l00296"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#19a05f9ddfc808321c75b499213adb05">00296</a>   <span class="keyword">typedef</span> <span class="keywordtype">signed</span> <span class="keywordtype">char</span> StatusType;
<a name="l00297"></a>00297 
<a name="l00300"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#937251679d99ca691be2eea58c8314b2">00300</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">Image&lt;StatusType, itkGetStaticConstMacro(ImageDimension)&gt;</a> <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">StatusImageType</a>;
<a name="l00301"></a>00301 
<a name="l00304"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#60544e8ca512c7dab807baca6467f612">00304</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1ObjectStore.html" title="A specialized memory management object for allocating and destroying contiguous blocks...">ObjectStore&lt;LayerNodeType&gt;</a> <a class="code" href="classitk_1_1ObjectStore.html" title="A specialized memory management object for allocating and destroying contiguous blocks...">LayerNodeStorageType</a>;
<a name="l00305"></a>00305 
<a name="l00306"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#3b637b30a99e37ec7c2ee51b50c6746d">00306</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Offset.html" title="Represent the offset between two n-dimensional indexes in a n-dimensional image.">Offset&lt;itkGetStaticConstMacro(ImageDimension)&gt;</a> <a class="code" href="classitk_1_1Offset.html" title="Represent the offset between two n-dimensional indexes in a n-dimensional image.">OffsetType</a>;
<a name="l00307"></a>00307   
<a name="l00311"></a>00311   <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>(NumberOfLayers, StatusType);
<a name="l00312"></a>00312   <a class="code" href="itkMacro_8h.html#1600305bb01e39e87c472d8bf29bd1cf">itkGetMacro</a>(NumberOfLayers, StatusType);
<a name="l00314"></a>00314 
<a name="l00316"></a>00316   <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>(IsoSurfaceValue, ValueType);
<a name="l00317"></a>00317   <a class="code" href="itkMacro_8h.html#1600305bb01e39e87c472d8bf29bd1cf">itkGetMacro</a>(IsoSurfaceValue, ValueType);
<a name="l00319"></a>00319 
<a name="l00320"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#e5fba077091a97d9c0294675a5db34d4">00320</a>   <a class="code" href="classitk_1_1SmartPointer.html">LayerPointerType</a> GetActiveListForIndex (<span class="keyword">const</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#be32dc19e71d40322ad9828b9ab40853">IndexType</a> index)
<a name="l00321"></a>00321     {
<a name="l00322"></a>00322     <span class="comment">// get the 'z' value for the index</span>
<a name="l00323"></a>00323     <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> indexZ= index[m_SplitAxis];
<a name="l00324"></a>00324     <span class="comment">// get the thread in whose region the index lies</span>
<a name="l00325"></a>00325     <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> ThreadNum= this-&gt;GetThreadNumber (indexZ);
<a name="l00326"></a>00326     <span class="comment">// get the active list for that thread</span>
<a name="l00327"></a>00327     <span class="keywordflow">return</span> m_Data[ThreadNum].m_Layers[0];
<a name="l00328"></a>00328     }
<a name="l00329"></a>00329 
<a name="l00330"></a>00330 <span class="preprocessor">#ifdef ITK_USE_CONCEPT_CHECKING</span>
<a name="l00331"></a>00331 <span class="preprocessor"></span>
<a name="l00332"></a>00332   <a class="code" href="itkConceptChecking_8h.html#009eae6c305d9c390972159815e6a710">itkConceptMacro</a>(OutputEqualityComparableCheck,
<a name="l00333"></a>00333                   (<a class="code" href="structitk_1_1Concept_1_1EqualityComparable.html">Concept::EqualityComparable&lt;PixelType&gt;</a>));
<a name="l00334"></a>00334   <a class="code" href="itkConceptChecking_8h.html#009eae6c305d9c390972159815e6a710">itkConceptMacro</a>(DoubleConvertibleToOutputCheck,
<a name="l00335"></a>00335                   (<a class="code" href="structitk_1_1Concept_1_1Convertible.html">Concept::Convertible&lt;double, PixelType&gt;</a>));
<a name="l00336"></a>00336   <a class="code" href="itkConceptChecking_8h.html#009eae6c305d9c390972159815e6a710">itkConceptMacro</a>(OutputOStreamWritableCheck,
<a name="l00337"></a>00337                   (<a class="code" href="structitk_1_1Concept_1_1OStreamWritable.html">Concept::OStreamWritable&lt;PixelType&gt;</a>));
<a name="l00338"></a>00338 
<a name="l00340"></a>00340 <span class="preprocessor">#endif</span>
<a name="l00341"></a>00341 <span class="preprocessor"></span>
<a name="l00342"></a>00342 <span class="keyword">protected</span>:
<a name="l00343"></a>00343   <a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html" title="This class implements a finite difference partial differential equation solver for...">ParallelSparseFieldLevelSetImageFilter</a>();
<a name="l00344"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#610236cf621b3ec7fe6f8be679b4e299">00344</a>   <a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#610236cf621b3ec7fe6f8be679b4e299">~ParallelSparseFieldLevelSetImageFilter</a>() {}
<a name="l00345"></a>00345   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#920ae03048a5ad715d803ca2e92b52de">PrintSelf</a>(std::ostream&amp; os, <a class="code" href="classitk_1_1Indent.html" title="Control indentation during Print() invocation.">Indent</a> indent) <span class="keyword">const</span>;
<a name="l00346"></a>00346 
<a name="l00348"></a>00348   <a class="code" href="classitk_1_1ParallelSparseFieldCityBlockNeighborList.html" title="A convenience class for storing indicies which reference neighbor pixels within a...">ParallelSparseFieldCityBlockNeighborList &lt; NeighborhoodIterator&lt;OutputImageType&gt;</a> &gt;
<a name="l00349"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#6691f098b0b76fd920a1810274b76479">00349</a>     m_NeighborList;
<a name="l00350"></a>00350 
<a name="l00353"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#8cbfecdaaf4149813b9c42dc3e58dbe6">00353</a>   <span class="keywordtype">double</span> m_ConstantGradientValue;
<a name="l00354"></a>00354 
<a name="l00356"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#8d665ed1e4483c479f5c64df712f1523">00356</a>   <span class="keyword">static</span> ValueType m_ValueOne;
<a name="l00357"></a>00357 
<a name="l00359"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#963307313606ce965391ffc941b02416">00359</a>   <span class="keyword">static</span> ValueType m_ValueZero;
<a name="l00360"></a>00360 
<a name="l00363"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#4b80a9b69c3c17f1138d78e85f7d3c28">00363</a>   <span class="keyword">static</span> StatusType m_StatusActiveChangingUp;
<a name="l00364"></a>00364 
<a name="l00367"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#685f7632ae71f1bfc96f6829fdc036b8">00367</a>   <span class="keyword">static</span> StatusType m_StatusActiveChangingDown;
<a name="l00368"></a>00368 
<a name="l00371"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#a3325011b397247018af7e8353ed8f52">00371</a>   <span class="keyword">static</span> StatusType m_StatusNull;
<a name="l00372"></a>00372 
<a name="l00375"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#abb56dec2cd51ac19b4c9f3fa2af4718">00375</a>   <span class="keyword">static</span> StatusType m_StatusChanging;
<a name="l00376"></a>00376 
<a name="l00379"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#e259aaaaafafce4a201930e904765240">00379</a>   <span class="keyword">static</span> StatusType m_StatusBoundaryPixel;
<a name="l00380"></a>00380 
<a name="l00385"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#127f683ec52838a203e51957d812777b">00385</a>   <span class="keyword">typename</span> <a class="code" href="itkFEMMacro_8h.html#539cce1a3282ba59952dedcbf9cdb23f">OutputImageType::Pointer</a> m_ShiftedImage;
<a name="l00386"></a>00386 
<a name="l00391"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#a01d9469d04e92824a54a6460440097c">00391</a>   LayerListType m_Layers;
<a name="l00392"></a>00392 
<a name="l00397"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#7cc3241b59756ca5088c1f8fcddaf3a4">00397</a>   StatusType m_NumberOfLayers;
<a name="l00398"></a>00398 
<a name="l00400"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#c1310f1797f4206ba773525379f4b3aa">00400</a>   <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">StatusImageType::Pointer</a> m_StatusImage;
<a name="l00401"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#6f410bc5cc45f96809b3c253ca7ba3f3">00401</a>   <span class="keyword">typename</span> <a class="code" href="itkFEMMacro_8h.html#539cce1a3282ba59952dedcbf9cdb23f">OutputImageType::Pointer</a> m_OutputImage;
<a name="l00402"></a>00402 
<a name="l00404"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#8c4626e4b1a041856e2fb122ba62d4a5">00404</a>   <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">StatusImageType::Pointer</a> m_StatusImageTemp;
<a name="l00405"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#c03f1946b4ad61de1afc5fe519659cc3">00405</a>   <span class="keyword">typename</span> <a class="code" href="itkFEMMacro_8h.html#539cce1a3282ba59952dedcbf9cdb23f">OutputImageType::Pointer</a> m_OutputImageTemp;
<a name="l00406"></a>00406 
<a name="l00408"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#1030fe2626b79a0fdb3d469fa54cef94">00408</a>   <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html" title="Implements transparent reference counting.">LayerNodeStorageType::Pointer</a> m_LayerNodeStore;
<a name="l00409"></a>00409 
<a name="l00411"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#249fc0acd1b628bdd32276d9f3bdc255">00411</a>   ValueType m_IsoSurfaceValue;
<a name="l00412"></a>00412 
<a name="l00416"></a>00416   <span class="comment">//  ValueType m_RMSChange;</span>
<a name="l00417"></a>00417 
<a name="l00420"></a>00420   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#f75a5945cdd8315676941024a0b8c1e9">GenerateData</a>();
<a name="l00421"></a>00421 
<a name="l00426"></a>00426   <span class="keywordtype">void</span> CopyInputToOutput(); 
<a name="l00427"></a>00427 
<a name="l00429"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#dfb93b89e4c4e711c7ab8fa9d0e99ada">00429</a>   <span class="keywordtype">void</span> <a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#dfb93b89e4c4e711c7ab8fa9d0e99ada">AllocateUpdateBuffer</a>() {}
<a name="l00430"></a>00430 
<a name="l00433"></a>00433   <span class="keywordtype">void</span> Initialize();
<a name="l00434"></a>00434 
<a name="l00439"></a>00439   <span class="keywordtype">void</span> ConstructActiveLayer();
<a name="l00440"></a>00440 
<a name="l00442"></a>00442   <span class="keywordtype">void</span> InitializeActiveLayerValues();
<a name="l00443"></a>00443 
<a name="l00447"></a>00447   <span class="keywordtype">void</span> ConstructLayer(StatusType from, StatusType to);
<a name="l00448"></a>00448 
<a name="l00450"></a>00450   <span class="keywordtype">void</span> ProcessStatusList(LayerType *InputList, StatusType ChangeToStatus,
<a name="l00451"></a>00451                          StatusType SearchForStatus, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> ThreadId);
<a name="l00452"></a>00452 
<a name="l00457"></a>00457   <span class="keywordtype">void</span> PropagateAllLayerValues();
<a name="l00458"></a>00458 
<a name="l00466"></a>00466   <span class="keywordtype">void</span> PropagateLayerValues(StatusType from, StatusType to, StatusType promote,
<a name="l00467"></a>00467                             <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> InOrOut);
<a name="l00468"></a>00468 
<a name="l00473"></a>00473   <span class="keyword">virtual</span> <span class="keywordtype">void</span> InitializeBackgroundPixels();
<a name="l00474"></a>00474 
<a name="l00478"></a>00478   <span class="keywordtype">void</span> ThreadedAllocateData(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> ThreadId);
<a name="l00479"></a>00479   <span class="keywordtype">void</span> ThreadedInitializeData(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> ThreadId, <span class="keyword">const</span> ThreadRegionType &amp; ThreadRegion);
<a name="l00481"></a>00481 
<a name="l00491"></a>00491   <span class="keywordtype">void</span> ComputeInitialThreadBoundaries();
<a name="l00492"></a>00492 
<a name="l00494"></a>00494   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> GetThreadNumber(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> splitAxisValue);
<a name="l00495"></a>00495 
<a name="l00497"></a>00497   <span class="keywordtype">void</span> GetThreadRegionSplitByBoundary(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> ThreadId, ThreadRegionType&amp; ThreadRegion);
<a name="l00498"></a>00498 
<a name="l00501"></a>00501   <span class="keywordtype">void</span> DeallocateData();
<a name="l00502"></a>00502 
<a name="l00504"></a><a class="code" href="structitk_1_1ParallelSparseFieldLevelSetImageFilter_1_1ParallelSparseFieldLevelSetThreadStruct.html">00504</a>   <span class="keyword">struct </span><a class="code" href="structitk_1_1ParallelSparseFieldLevelSetImageFilter_1_1ParallelSparseFieldLevelSetThreadStruct.html">ParallelSparseFieldLevelSetThreadStruct</a>
<a name="l00505"></a>00505     {
<a name="l00506"></a><a class="code" href="structitk_1_1ParallelSparseFieldLevelSetImageFilter_1_1ParallelSparseFieldLevelSetThreadStruct.html#9dd5202b46b8fc805f8c60e0b8c565f4">00506</a>     <a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html" title="This class implements a finite difference partial differential equation solver for...">ParallelSparseFieldLevelSetImageFilter</a>* Filter;
<a name="l00507"></a><a class="code" href="structitk_1_1ParallelSparseFieldLevelSetImageFilter_1_1ParallelSparseFieldLevelSetThreadStruct.html#faaf45c7a492a90f3acf8f1c0f4a704b">00507</a>     TimeStepType* TimeStepList;
<a name="l00508"></a><a class="code" href="structitk_1_1ParallelSparseFieldLevelSetImageFilter_1_1ParallelSparseFieldLevelSetThreadStruct.html#2c566955e8b2e4e468737e940a4a2cfb">00508</a>     <span class="keywordtype">bool</span>* ValidTimeStepList;
<a name="l00509"></a><a class="code" href="structitk_1_1ParallelSparseFieldLevelSetImageFilter_1_1ParallelSparseFieldLevelSetThreadStruct.html#b95f14401c72bb2bc543232852f71ec6">00509</a>     TimeStepType TimeStep;
<a name="l00510"></a>00510     };
<a name="l00511"></a>00511 
<a name="l00516"></a>00516   <span class="keywordtype">void</span> Iterate();
<a name="l00517"></a>00517   <span class="keyword">static</span> <a class="code" href="itkMultiThreader_8h.html#684fadc751bc200a9b267bfc38d8ae5c">ITK_THREAD_RETURN_TYPE</a> IterateThreaderCallback(<span class="keywordtype">void</span> * arg);
<a name="l00519"></a>00519 
<a name="l00524"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#96308ac28d81c735736c2e29d0946892">00524</a>   <span class="keyword">inline</span> <span class="keyword">virtual</span> ValueType ThreadedCalculateUpdateValue(<span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="itkMacro_8h.html#6be3b439282da7a34278c0594589b972">itkNotUsed</a>(ThreadId),
<a name="l00525"></a>00525                                                         <span class="keyword">const</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#be32dc19e71d40322ad9828b9ab40853">IndexType</a> <a class="code" href="itkMacro_8h.html#6be3b439282da7a34278c0594589b972">itkNotUsed</a>(index),
<a name="l00526"></a>00526                                                         <span class="keyword">const</span> TimeStepType &amp;dt,
<a name="l00527"></a>00527                                                         <span class="keyword">const</span> ValueType &amp;value,
<a name="l00528"></a>00528                                                         <span class="keyword">const</span> ValueType &amp;change)
<a name="l00529"></a>00529     {
<a name="l00530"></a>00530     <span class="keywordflow">return</span> (value + dt * change);
<a name="l00531"></a>00531     }
<a name="l00532"></a>00532 
<a name="l00533"></a>00533   <span class="comment">// This method can be overridden in derived classes.</span>
<a name="l00534"></a>00534   <span class="comment">// The pixel at 'index' is entering the active layer for thread 'ThreadId'.</span>
<a name="l00535"></a>00535   <span class="comment">// The outputimage at 'index' will have the value as given by the</span>
<a name="l00536"></a>00536   <span class="comment">// 'value' parameter.</span>
<a name="l00537"></a>00537   <span class="keyword">virtual</span> <span class="keywordtype">void</span> ThreadedProcessPixelEnteringActiveLayer (<span class="keyword">const</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#be32dc19e71d40322ad9828b9ab40853">IndexType</a> <a class="code" href="itkMacro_8h.html#6be3b439282da7a34278c0594589b972">itkNotUsed</a>(index),
<a name="l00538"></a>00538                                                         <span class="keyword">const</span> ValueType <a class="code" href="itkMacro_8h.html#6be3b439282da7a34278c0594589b972">itkNotUsed</a>(value),
<a name="l00539"></a>00539                                                         <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="itkMacro_8h.html#6be3b439282da7a34278c0594589b972">itkNotUsed</a>(ThreadId));
<a name="l00540"></a>00540   
<a name="l00542"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#c094ea09a5e6faa80211ca90883f0513">00542</a>   <span class="keywordtype">void</span> <a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#c094ea09a5e6faa80211ca90883f0513">ApplyUpdate</a>(TimeStepType) {}
<a name="l00543"></a>00543 
<a name="l00546"></a>00546   <span class="keyword">virtual</span> <span class="keywordtype">void</span> ThreadedApplyUpdate(TimeStepType dt, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> ThreadId);
<a name="l00547"></a>00547 
<a name="l00549"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#1d88fd81080c6a389406ab778e78bc4e">00549</a>   TimeStepType CalculateChange()
<a name="l00550"></a>00550     {
<a name="l00551"></a>00551     <span class="keywordflow">return</span> NumericTraits&lt;TimeStepType&gt;::Zero;
<a name="l00552"></a>00552     }
<a name="l00553"></a>00553 
<a name="l00556"></a>00556   <span class="keyword">virtual</span> TimeStepType ThreadedCalculateChange(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> ThreadId);
<a name="l00557"></a>00557 
<a name="l00564"></a>00564   <span class="keywordtype">void</span> ThreadedUpdateActiveLayerValues(TimeStepType dt, LayerType *StatusUpList,
<a name="l00565"></a>00565                                        LayerType *StatusDownList, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> ThreadId);
<a name="l00566"></a>00566 
<a name="l00568"></a>00568   <span class="keywordtype">void</span> CopyInsertList(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> ThreadId, LayerPointerType FromListPtr,
<a name="l00569"></a>00569                       LayerPointerType ToListPtr);
<a name="l00570"></a>00570 
<a name="l00572"></a>00572   <span class="keywordtype">void</span> ClearList(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> ThreadId, LayerPointerType ListPtr);
<a name="l00573"></a>00573 
<a name="l00576"></a>00576   <span class="keywordtype">void</span> CopyInsertInterNeighborNodeTransferBufferLayers(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> ThreadId,
<a name="l00577"></a>00577                                                        LayerPointerType InputList,
<a name="l00578"></a>00578                                                        <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> InOrOut,
<a name="l00579"></a>00579                                                        <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> BufferLayerNumber);
<a name="l00580"></a>00580 
<a name="l00583"></a>00583   <span class="keywordtype">void</span> ClearInterNeighborNodeTransferBufferLayers(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> ThreadId, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> InOrOut,
<a name="l00584"></a>00584                                                   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> BufferLayerNumber);
<a name="l00585"></a>00585 
<a name="l00593"></a>00593   <span class="keywordtype">void</span> ThreadedProcessFirstLayerStatusLists(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> InputLayerNumber,
<a name="l00594"></a>00594                                             <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> OutputLayerNumber,
<a name="l00595"></a>00595                                             StatusType SearchForStatus,
<a name="l00596"></a>00596                                             <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> InOrOut,
<a name="l00597"></a>00597                                             <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> BufferLayerNumber, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> ThreadId);
<a name="l00598"></a>00598 
<a name="l00604"></a>00604   <span class="keywordtype">void</span> ThreadedProcessStatusList(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> InputLayerNumber, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> OutputLayerNumber,
<a name="l00605"></a>00605                                  StatusType ChangeToStatus, StatusType SearchForStatus,
<a name="l00606"></a>00606                                  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> InOrOut,
<a name="l00607"></a>00607                                  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> BufferLayerNumber, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> ThreadId);
<a name="l00608"></a>00608 
<a name="l00612"></a>00612   <span class="keywordtype">void</span> ThreadedProcessOutsideList(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> InputLayerNumber, StatusType ChangeToStatus,
<a name="l00613"></a>00613                                   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> InOrOut, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> BufferLayerNumber, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> ThreadId);
<a name="l00614"></a>00614 
<a name="l00616"></a>00616   <span class="keywordtype">void</span> ThreadedPropagateLayerValues(StatusType from, StatusType to, StatusType promote,
<a name="l00617"></a>00617                                     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> InorOut, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> ThreadId);
<a name="l00618"></a>00618 
<a name="l00621"></a>00621   <span class="keywordtype">void</span> GetThreadRegionSplitUniformly(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> ThreadId, ThreadRegionType&amp; ThreadRegion);
<a name="l00622"></a>00622 
<a name="l00628"></a>00628   <span class="keywordtype">void</span> ThreadedPostProcessOutput(<span class="keyword">const</span> ThreadRegionType &amp; regionToProcess);
<a name="l00629"></a>00629 
<a name="l00640"></a>00640   <span class="keyword">virtual</span> <span class="keywordtype">void</span> CheckLoadBalance();
<a name="l00641"></a>00641 
<a name="l00644"></a>00644   <span class="keyword">virtual</span> <span class="keywordtype">void</span> ThreadedLoadBalance(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> ThreadId);
<a name="l00645"></a>00645 
<a name="l00647"></a>00647   <span class="keywordtype">void</span> WaitForAll();
<a name="l00648"></a>00648   <span class="keywordtype">void</span> SignalNeighborsAndWait (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> ThreadId);
<a name="l00649"></a>00649   <span class="keywordtype">void</span> SignalNeighbor  (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> SemaphoreArrayNumber, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> ThreadId);
<a name="l00650"></a>00650   <span class="keywordtype">void</span> WaitForNeighbor (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> SemaphoreArrayNumber, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> ThreadId);
<a name="l00652"></a>00652 
<a name="l00655"></a>00655   <span class="keyword">virtual</span> <span class="keywordtype">void</span> ThreadedInitializeIteration (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> ThreadId);
<a name="l00656"></a>00656 
<a name="l00659"></a>00659   <span class="comment">//  void WriteActivePointsToFile ();</span>
<a name="l00660"></a>00660 
<a name="l00662"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#0125e08e57ee7c85c17108ac5fc8c848">00662</a>   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> m_NumOfThreads;
<a name="l00663"></a>00663 
<a name="l00665"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#d97b09ece3da95f6e4fceb2d6772c76d">00665</a>   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> m_SplitAxis;
<a name="l00666"></a>00666 
<a name="l00668"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#2c8d616e456662cccae59733180efef0">00668</a>   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> m_ZSize;
<a name="l00669"></a>00669 
<a name="l00672"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#cfe56e56a411e9b151afcfa7a278111d">00672</a>   <span class="keywordtype">bool</span> m_BoundaryChanged;
<a name="l00673"></a>00673 
<a name="l00675"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#d13cd2a164aa34581af212673731fcb0">00675</a>   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> * m_Boundary;
<a name="l00676"></a>00676 
<a name="l00678"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#b019b9aa0f2584867deba41b69e9269e">00678</a>   <span class="keywordtype">int</span> * m_GlobalZHistogram;
<a name="l00679"></a>00679 
<a name="l00681"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#40cb9213c7260c8e153ef7b689a887a7">00681</a>   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> * m_MapZToThreadNumber;
<a name="l00682"></a>00682 
<a name="l00685"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#b712d38f93c38ae1521d720e792140e2">00685</a>   <span class="keywordtype">int</span> * m_ZCumulativeFrequency;
<a name="l00686"></a>00686 
<a name="l00688"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#bebd119f5dc237ffd7069eda3bae63c4">00688</a>   <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">Barrier::Pointer</a> m_Barrier;
<a name="l00689"></a>00689 
<a name="l00691"></a><a class="code" href="structitk_1_1ParallelSparseFieldLevelSetImageFilter_1_1ThreadData.html">00691</a>   <span class="keyword">struct </span><a class="code" href="structitk_1_1ParallelSparseFieldLevelSetImageFilter_1_1ThreadData.html">ThreadData</a>
<a name="l00692"></a>00692     {
<a name="l00693"></a><a class="code" href="structitk_1_1ParallelSparseFieldLevelSetImageFilter_1_1ThreadData.html#1335d7aee9b099d27592da5faca7d1c1">00693</a>     <span class="keywordtype">char</span> pad1 [128];
<a name="l00694"></a>00694 
<a name="l00695"></a><a class="code" href="structitk_1_1ParallelSparseFieldLevelSetImageFilter_1_1ThreadData.html#bfd167c0387aeb91ebd1965dbad8dc0a">00695</a>     TimeStepType TimeStep;
<a name="l00696"></a><a class="code" href="structitk_1_1ParallelSparseFieldLevelSetImageFilter_1_1ThreadData.html#184bb388358bc227cce6bf4020123688">00696</a>     ThreadRegionType ThreadRegion;
<a name="l00697"></a><a class="code" href="structitk_1_1ParallelSparseFieldLevelSetImageFilter_1_1ThreadData.html#48d421064af0e064918c5c69feee6327">00697</a>     ValueType m_RMSChange;
<a name="l00698"></a><a class="code" href="structitk_1_1ParallelSparseFieldLevelSetImageFilter_1_1ThreadData.html#3d071d47539ed4dc641bfbff966a4615">00698</a>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> m_Count;
<a name="l00699"></a>00699     
<a name="l00701"></a><a class="code" href="structitk_1_1ParallelSparseFieldLevelSetImageFilter_1_1ThreadData.html#c6b819fe10280dd96a810820a0830ff6">00701</a>     LayerListType m_Layers;
<a name="l00702"></a>00702 
<a name="l00704"></a><a class="code" href="structitk_1_1ParallelSparseFieldLevelSetImageFilter_1_1ThreadData.html#803474e8a8466be6ea5c7071b8938e1d">00704</a>     LayerListType * m_LoadTransferBufferLayers;
<a name="l00705"></a>00705 
<a name="l00707"></a><a class="code" href="structitk_1_1ParallelSparseFieldLevelSetImageFilter_1_1ThreadData.html#30e826c0b18934fb13c687c65667311d">00707</a>     <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html" title="Implements transparent reference counting.">LayerNodeStorageType::Pointer</a> m_LayerNodeStore;
<a name="l00708"></a>00708 
<a name="l00709"></a><a class="code" href="structitk_1_1ParallelSparseFieldLevelSetImageFilter_1_1ThreadData.html#55de849738e8af0f04b134f002a2e92b">00709</a>     <a class="code" href="classitk_1_1SmartPointer.html">LayerPointerType</a> UpList[2];
<a name="l00710"></a><a class="code" href="structitk_1_1ParallelSparseFieldLevelSetImageFilter_1_1ThreadData.html#66e2141ea4d66ccc378959e2f8ae3805">00710</a>     <a class="code" href="classitk_1_1SmartPointer.html">LayerPointerType</a> DownList[2];
<a name="l00711"></a>00711     
<a name="l00714"></a><a class="code" href="structitk_1_1ParallelSparseFieldLevelSetImageFilter_1_1ThreadData.html#c51d0dfe56d725281b4d557af69320f8">00714</a>     <a class="code" href="classitk_1_1SmartPointer.html">LayerPointerType</a>** m_InterNeighborNodeTransferBufferLayers[2];
<a name="l00715"></a>00715 
<a name="l00718"></a><a class="code" href="structitk_1_1ParallelSparseFieldLevelSetImageFilter_1_1ThreadData.html#a6d85012b88b5b26e727e75be099e2ee">00718</a>     <span class="keywordtype">void</span> * globalData;
<a name="l00719"></a>00719 
<a name="l00721"></a><a class="code" href="structitk_1_1ParallelSparseFieldLevelSetImageFilter_1_1ThreadData.html#9b2247636da1867a6c46cc877ad6c7c1">00721</a>     <span class="keywordtype">int</span> * m_ZHistogram;
<a name="l00722"></a>00722 
<a name="l00726"></a><a class="code" href="structitk_1_1ParallelSparseFieldLevelSetImageFilter_1_1ThreadData.html#65cfcc6c7576da6a326b172a5c6b2e92">00726</a>     <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">Semaphore::Pointer</a> m_Semaphore[2];
<a name="l00727"></a>00727 
<a name="l00729"></a><a class="code" href="structitk_1_1ParallelSparseFieldLevelSetImageFilter_1_1ThreadData.html#dfcbcc1e854dc3123370f008f822fb9d">00729</a>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> m_SemaphoreArrayNumber;
<a name="l00730"></a>00730 
<a name="l00731"></a><a class="code" href="structitk_1_1ParallelSparseFieldLevelSetImageFilter_1_1ThreadData.html#87051757e7370d816e4ce4987a509651">00731</a>     <span class="keywordtype">char</span> m_Pad2 [128];
<a name="l00732"></a>00732     };
<a name="l00733"></a>00733   
<a name="l00735"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#77af277652cea50ac4abb29ceb68c954">00735</a>   <a class="code" href="structitk_1_1ParallelSparseFieldLevelSetImageFilter_1_1ThreadData.html">ThreadData</a> *m_Data;
<a name="l00736"></a>00736 
<a name="l00739"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#63e98ea48dd6cecfdf7314e50fad9960">00739</a>   <span class="keywordtype">bool</span> m_Stop;
<a name="l00740"></a>00740 
<a name="l00745"></a><a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html#96d2b9b022618bc402b2f524a5b9f75f">00745</a>   <span class="keywordtype">bool</span> m_InterpolateSurfaceLocation;
<a name="l00746"></a>00746 
<a name="l00747"></a>00747 <span class="keyword">private</span>:
<a name="l00748"></a>00748   
<a name="l00749"></a>00749   <a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html" title="This class implements a finite difference partial differential equation solver for...">ParallelSparseFieldLevelSetImageFilter</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html" title="This class implements a finite difference partial differential equation solver for...">Self</a>&amp;); <span class="comment">// purposely not implemented</span>
<a name="l00750"></a>00750   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="classitk_1_1ParallelSparseFieldLevelSetImageFilter.html" title="This class implements a finite difference partial differential equation solver for...">Self</a>&amp;);                         <span class="comment">// purposely not implemented</span>
<a name="l00751"></a>00751   
<a name="l00754"></a>00754   <span class="keywordtype">bool</span> m_BoundsCheckingActive;
<a name="l00755"></a>00755 };
<a name="l00756"></a>00756 
<a name="l00757"></a>00757 } <span class="comment">// end namespace itk</span>
<a name="l00758"></a>00758 
<a name="l00759"></a>00759 <span class="preprocessor">#ifndef ITK_MANUAL_INSTANTIATION</span>
<a name="l00760"></a>00760 <span class="preprocessor"></span><span class="preprocessor">#include "itkParallelSparseFieldLevelSetImageFilter.txx"</span>
<a name="l00761"></a>00761 <span class="preprocessor">#endif</span>
<a name="l00762"></a>00762 <span class="preprocessor"></span>
<a name="l00763"></a>00763 <span class="preprocessor">#endif</span>
<a name="l00764"></a>00764 <span class="preprocessor"></span>
</pre></div></div>
<hr><address><small>
Generated at Thu May 7 23:47:54 2009 for ITK  by <a href="http://www.stack.nl/~dimitri/doxygen/index.html"> <img 
src="http://www.stack.nl/~dimitri/doxygen/doxygen.png" alt="doxygen"
align="middle" border=0 width=110 height=53>
</a> 1.5.9 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>,
 &copy;&nbsp;1997-2000</small></address>
</body>
</html>