<!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: itkNarrowBandImageFilterBase.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> <a href="modules.html" class="qindex">Groups</a> <a href="namespaces.html" class="qindex">Namespace List</a> <a href="hierarchy.html" class="qindex">Class Hierarchy</a> <a href="classes.html" class="qindex">Alphabetical List</a> <a href="annotated.html" class="qindex">Compound List</a> <a href="files.html" class="qindex">File List</a> <a href="namespacemembers.html" class="qindex">Namespace Members</a> <a href="functions.html" class="qindex">Compound Members</a> <a href="globals.html" class="qindex">File Members</a> <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> » <a class="el" href="dir_00ffda33c24cbbf617b202f4f3bcb7e8.html">BasicFilters</a> </div> <div class="contents"> <h1>itkNarrowBandImageFilterBase.h</h1><a href="itkNarrowBandImageFilterBase_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 & Registration Toolkit</span> <a name="l00004"></a>00004 <span class="comment"> Module: $RCSfile: itkNarrowBandImageFilterBase.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-16 19:33:44 $</span> <a name="l00007"></a>00007 <span class="comment"> Version: $Revision: 1.10 $</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 __itkNarrowBandImageFilterBase_h</span> <a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define __itkNarrowBandImageFilterBase_h</span> <a name="l00019"></a>00019 <span class="preprocessor"></span> <a name="l00020"></a>00020 <span class="preprocessor">#include "<a class="code" href="itkFiniteDifferenceImageFilter_8h.html">itkFiniteDifferenceImageFilter.h</a>"</span> <a name="l00021"></a>00021 <span class="preprocessor">#include "<a class="code" href="itkMultiThreader_8h.html">itkMultiThreader.h</a>"</span> <a name="l00022"></a>00022 <span class="preprocessor">#include "<a class="code" href="itkNarrowBand_8h.html">itkNarrowBand.h</a>"</span> <a name="l00023"></a>00023 <span class="preprocessor">#include "<a class="code" href="itkBarrier_8h.html">itkBarrier.h</a>"</span> <a name="l00024"></a>00024 <span class="preprocessor">#include "<a class="code" href="itkObjectStore_8h.html">itkObjectStore.h</a>"</span> <a name="l00025"></a>00025 <a name="l00026"></a>00026 <span class="keyword">namespace </span>itk { <a name="l00027"></a>00027 <a name="l00065"></a>00065 <span class="keyword">template</span> <<span class="keyword">class</span> TInputImage, <span class="keyword">class</span> TOutputImage> <a name="l00066"></a><a class="code" href="classitk_1_1NarrowBandImageFilterBase.html">00066</a> <span class="keyword">class </span><a class="code" href="classitk_1_1NarrowBandImageFilterBase.html" title="This class implements a multi-threaded finite difference image to image solver that...">NarrowBandImageFilterBase</a> <a name="l00067"></a>00067 : <span class="keyword">public</span> <a class="code" href="classitk_1_1FiniteDifferenceImageFilter.html">FiniteDifferenceImageFilter</a><TInputImage, TOutputImage> <a name="l00068"></a>00068 { <a name="l00069"></a>00069 <span class="keyword">public</span>: <a name="l00070"></a>00070 <a name="l00072"></a><a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#bfedb354a5811e9b0a8e16bd5bbe0a79">00072</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html" title="This class implements a multi-threaded finite difference image to image solver that...">NarrowBandImageFilterBase</a> <a class="code" href="classitk_1_1LightObject.html" title="Light weight base class for most itk classes.">Self</a>; <a name="l00073"></a><a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#f786555ff46855973a2ee682ec575cee">00073</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1FiniteDifferenceImageFilter.html">FiniteDifferenceImageFilter<TInputImage, TOutputImage></a> <a class="code" href="classitk_1_1LightObject.html" title="Light weight base class for most itk classes.">Superclass</a>; <a name="l00074"></a><a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#59d9f1d49ce5a66358e9c138f52b2aaa">00074</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1SmartPointer.html">SmartPointer<Self></a> <a class="code" href="classitk_1_1SmartPointer.html">Pointer</a>; <a name="l00075"></a><a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#e7cbb4c62debdfca6305bd2e3a19effb">00075</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1SmartPointer.html">SmartPointer<const Self></a> <a class="code" href="classitk_1_1SmartPointer.html">ConstPointer</a>; <a name="l00076"></a>00076 <a name="l00078"></a><a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#71a333a163542c1d46c7ceb389a9899c">00078</a> <a class="code" href="itkMacro_8h.html#574c1f86661d409dd32c742307a0e96a">itkTypeMacro</a>(<a class="code" href="classitk_1_1NarrowBandImageFilterBase.html" title="This class implements a multi-threaded finite difference image to image solver that...">NarrowBandImageFilterBase</a>, <a class="code" href="classitk_1_1ImageToImageFilter.html" title="Base class for filters that take an image as input and produce an image as output...">ImageToImageFilter</a> ); <a name="l00079"></a>00079 <a name="l00081"></a>00081 <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1FiniteDifferenceImageFilter.html#0e6db5edc50c90d0de9ae39d9fc52912">Superclass::InputImageType</a> <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#71a333a163542c1d46c7ceb389a9899c">InputImageType</a>; <a name="l00082"></a><a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#839ea93da1a1f46c2ae744b9a97ec8d9">00082</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1FiniteDifferenceImageFilter.html#685f0047b13f6ef3cc80f72963a264e4">Superclass::OutputImageType</a> <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#839ea93da1a1f46c2ae744b9a97ec8d9">OutputImageType</a>; <a name="l00083"></a><a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#0639a35520306b0965515b5a45ebba08">00083</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1FiniteDifferenceImageFilter.html#b982c84ee1d8f032012d109da623f97c">Superclass::FiniteDifferenceFunctionType</a> <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#0639a35520306b0965515b5a45ebba08">FiniteDifferenceFunctionType</a>; <a name="l00084"></a>00084 <a name="l00087"></a>00087 <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#6a2b846c62f9a07847a4ca4d0c8dd465">itkStaticConstMacro</a>(ImageDimension, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>,Superclass::ImageDimension); <a name="l00088"></a>00088 <a name="l00091"></a><a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#bda516fcb091f68188bbf7f6aaa1c45e">00091</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1FiniteDifferenceImageFilter.html#de1112419129122ba1f3f55781fbc04f">Superclass::PixelType</a> <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#bda516fcb091f68188bbf7f6aaa1c45e">PixelType</a>; <a name="l00092"></a>00092 <a name="l00094"></a><a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#3ff5d8765f2457dbf1e91cc1ee950137">00094</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1FiniteDifferenceImageFilter.html#cc00d2e00f3c09ec1d558569539cb9a0">Superclass::TimeStepType</a> <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#3ff5d8765f2457dbf1e91cc1ee950137">TimeStepType</a>; <a name="l00095"></a>00095 <a name="l00097"></a><a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#41ff83ecf6790edba1ffcab092fb2834">00097</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="classitk_1_1NarrowBandImageFilterBase.html#41ff83ecf6790edba1ffcab092fb2834">IndexType</a>; <a name="l00098"></a>00098 <a name="l00101"></a><a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#b85fba004a6a3cc945a04793894032c8">00101</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> OutputImageType::ValueType <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#b85fba004a6a3cc945a04793894032c8">ValueType</a>; <a name="l00102"></a>00102 <a name="l00104"></a><a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#63107eb91ec389c2a824021f4d4a75c0">00104</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1BandNode.html">BandNode<IndexType,PixelType></a> <a class="code" href="classitk_1_1BandNode.html">BandNodeType</a>; <a name="l00105"></a>00105 <a name="l00107"></a><a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#e9b4970c48d309dee375310619c4bdd9">00107</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1NarrowBand.html">NarrowBand<BandNodeType></a> <a class="code" href="classitk_1_1NarrowBand.html">NarrowBandType</a>; <a name="l00108"></a><a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#ce6526eff2c81e6b443403a799d32bc7">00108</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">NarrowBandType::Pointer</a> <a class="code" href="classitk_1_1SmartPointer.html">NarrowBandPointer</a>; <a name="l00109"></a><a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#a3e3bf03a76722f6a57d792327208a01">00109</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="structitk_1_1NarrowBand_1_1RegionStruct.html">NarrowBandType::RegionType</a> <a class="code" href="structitk_1_1NarrowBand_1_1RegionStruct.html">RegionType</a>; <a name="l00110"></a>00110 <a name="l00112"></a>00112 <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>( IsoSurfaceValue, <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#b85fba004a6a3cc945a04793894032c8">ValueType</a>); <a name="l00113"></a>00113 <a class="code" href="itkMacro_8h.html#1600305bb01e39e87c472d8bf29bd1cf">itkGetMacro</a>( IsoSurfaceValue, <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#b85fba004a6a3cc945a04793894032c8">ValueType</a>); <a name="l00115"></a>00115 <a name="l00117"></a>00117 <span class="comment">// itkGetMacro( RMSChange, ValueType);</span> <a name="l00118"></a>00118 <a name="l00123"></a><a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#42124930616dacc9809bb5a177d7e340">00123</a> <span class="keywordtype">void</span> <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#42124930616dacc9809bb5a177d7e340">InsertNarrowBandNode</a> (<a class="code" href="classitk_1_1BandNode.html">BandNodeType</a> &node) <a name="l00124"></a>00124 { <a name="l00125"></a>00125 <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#2615c6be0ef3ef300ce845bd9d1f01f0">m_NarrowBand</a>->PushBack(node); <span class="comment">// add new node </span> <a name="l00126"></a>00126 this-><a class="code" href="classitk_1_1Object.html#33101e349626ac58ced6682b061d8277">Modified</a>(); <a name="l00127"></a>00127 } <a name="l00128"></a><a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#2f1f2677f00dcb7941581c20ade9baf7">00128</a> <span class="keywordtype">void</span> <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#42124930616dacc9809bb5a177d7e340">InsertNarrowBandNode</a> (<a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#41ff83ecf6790edba1ffcab092fb2834">IndexType</a> &index) <a name="l00129"></a>00129 { <a name="l00130"></a>00130 <a class="code" href="classitk_1_1BandNode.html">BandNodeType</a> tmpnode; <a name="l00131"></a>00131 tmpnode.<a class="code" href="classitk_1_1BandNode.html#f2a4e62a4336271dc8cd661fa195c966">m_Index</a> = index; <a name="l00132"></a>00132 <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#2615c6be0ef3ef300ce845bd9d1f01f0">m_NarrowBand</a>->PushBack(tmpnode); <a name="l00133"></a>00133 this-><a class="code" href="classitk_1_1Object.html#33101e349626ac58ced6682b061d8277">Modified</a>(); <a name="l00134"></a>00134 } <a name="l00135"></a><a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#b45b97437680b1f3f1b1a9744c1f0f8f">00135</a> <span class="keywordtype">void</span> <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#42124930616dacc9809bb5a177d7e340">InsertNarrowBandNode</a> (<a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#41ff83ecf6790edba1ffcab092fb2834">IndexType</a> &index, <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#bda516fcb091f68188bbf7f6aaa1c45e">PixelType</a> &value, <span class="keywordtype">signed</span> <span class="keywordtype">char</span> &nodestate) <a name="l00136"></a>00136 { <a name="l00137"></a>00137 <a class="code" href="classitk_1_1BandNode.html">BandNodeType</a> tmpnode; <a name="l00138"></a>00138 tmpnode.<a class="code" href="classitk_1_1BandNode.html#398582b75c1bddf022eacbe5c25c31fa">m_Data</a> = value; <a name="l00139"></a>00139 tmpnode.<a class="code" href="classitk_1_1BandNode.html#f2a4e62a4336271dc8cd661fa195c966">m_Index</a> = index; <a name="l00140"></a>00140 tmpnode.<a class="code" href="classitk_1_1BandNode.html#9d9e140777b39e2ae4d8230ccd02b830">m_NodeState</a> = nodestate; <a name="l00142"></a>00142 <a name="l00143"></a>00143 <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#2615c6be0ef3ef300ce845bd9d1f01f0">m_NarrowBand</a>->PushBack(tmpnode); <a name="l00144"></a>00144 this-><a class="code" href="classitk_1_1Object.html#33101e349626ac58ced6682b061d8277">Modified</a>(); <a name="l00145"></a>00145 } <a name="l00146"></a>00146 <a name="l00150"></a><a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#cff5a4a976efe6c02d311a6837f77ca7">00150</a> <span class="keywordtype">void</span> <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#cff5a4a976efe6c02d311a6837f77ca7">SetNarrowBandTotalRadius</a> (<span class="keywordtype">float</span> val) <a name="l00151"></a>00151 { <a name="l00152"></a>00152 <span class="keywordflow">if</span> (<a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#2615c6be0ef3ef300ce845bd9d1f01f0">m_NarrowBand</a>->GetTotalRadius() != val) <a name="l00153"></a>00153 { <a name="l00154"></a>00154 <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#2615c6be0ef3ef300ce845bd9d1f01f0">m_NarrowBand</a>->SetTotalRadius(val); <a name="l00155"></a>00155 this-><a class="code" href="classitk_1_1Object.html#33101e349626ac58ced6682b061d8277">Modified</a>(); <a name="l00156"></a>00156 } <a name="l00157"></a>00157 } <a name="l00159"></a>00159 <a name="l00161"></a><a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#dfe07590d45ebbb93fb993699cd4cd5e">00161</a> <span class="keywordtype">float</span> <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#dfe07590d45ebbb93fb993699cd4cd5e">GetNarrowBandTotalRadius</a>() <a name="l00162"></a>00162 { <a name="l00163"></a>00163 <span class="keywordflow">return</span> <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#2615c6be0ef3ef300ce845bd9d1f01f0">m_NarrowBand</a>->GetTotalRadius(); <a name="l00164"></a>00164 } <a name="l00165"></a>00165 <a name="l00168"></a><a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#555ec18669cc5ca58fcc9b2b069fc09c">00168</a> <span class="keywordtype">void</span> <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#555ec18669cc5ca58fcc9b2b069fc09c">SetNarrowBandInnerRadius</a> (<span class="keywordtype">float</span> val) <a name="l00169"></a>00169 { <a name="l00170"></a>00170 <span class="keywordflow">if</span> (<a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#2615c6be0ef3ef300ce845bd9d1f01f0">m_NarrowBand</a>->GetInnerRadius() != val) <a name="l00171"></a>00171 { <a name="l00172"></a>00172 <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#2615c6be0ef3ef300ce845bd9d1f01f0">m_NarrowBand</a>->SetInnerRadius(val); <a name="l00173"></a>00173 this-><a class="code" href="classitk_1_1Object.html#33101e349626ac58ced6682b061d8277">Modified</a>(); <a name="l00174"></a>00174 } <a name="l00175"></a>00175 } <a name="l00177"></a>00177 <a name="l00179"></a><a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#6732ee223a0512216f52c8137b341f17">00179</a> <span class="keywordtype">float</span> <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#6732ee223a0512216f52c8137b341f17">GetNarrowBandInnerRadius</a>() <a name="l00180"></a>00180 { <a name="l00181"></a>00181 <span class="keywordflow">return</span> <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#2615c6be0ef3ef300ce845bd9d1f01f0">m_NarrowBand</a>->GetInnerRadius(); <a name="l00182"></a>00182 } <a name="l00183"></a>00183 <a name="l00189"></a><a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#a2e9e8bdf86749ebfcb2df45905c116e">00189</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#a2e9e8bdf86749ebfcb2df45905c116e">CreateNarrowBand</a> (){}; <a name="l00190"></a>00190 <a name="l00191"></a><a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#626a55772081168888776838053046af">00191</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#626a55772081168888776838053046af">SetNarrowBand</a>(<a class="code" href="classitk_1_1NarrowBand.html">NarrowBandType</a> * ptr) <a name="l00192"></a>00192 { <a name="l00193"></a>00193 <span class="keywordflow">if</span> ( <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#2615c6be0ef3ef300ce845bd9d1f01f0">m_NarrowBand</a> != ptr ) <a name="l00194"></a>00194 { <a name="l00195"></a>00195 <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#2615c6be0ef3ef300ce845bd9d1f01f0">m_NarrowBand</a> = ptr; <a name="l00196"></a>00196 this-><a class="code" href="classitk_1_1Object.html#33101e349626ac58ced6682b061d8277">Modified</a>(); <a name="l00197"></a>00197 } <a name="l00198"></a>00198 } <a name="l00199"></a>00199 <a name="l00200"></a>00200 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#0153d40ff759a40ceb8d41ee557600b2">CopyInputToOutput</a> (); <a name="l00201"></a>00201 <a name="l00202"></a>00202 <span class="keyword">protected</span>: <a name="l00203"></a><a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#2615c6be0ef3ef300ce845bd9d1f01f0">00203</a> <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">NarrowBandType::Pointer</a> <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#2615c6be0ef3ef300ce845bd9d1f01f0">m_NarrowBand</a>; <a name="l00204"></a><a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#c0d6ef4aa4c235302d0582078cf37284">00204</a> <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#c0d6ef4aa4c235302d0582078cf37284">NarrowBandImageFilterBase</a>() <a name="l00205"></a>00205 { <a name="l00206"></a>00206 <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#2615c6be0ef3ef300ce845bd9d1f01f0">m_NarrowBand</a> = <a class="code" href="classitk_1_1NarrowBand.html#63b0e67fa06bf1f00c840d04234e3456">NarrowBandType::New</a>(); <a name="l00207"></a>00207 <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#2615c6be0ef3ef300ce845bd9d1f01f0">m_NarrowBand</a>->SetTotalRadius(4); <a name="l00208"></a>00208 <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#2615c6be0ef3ef300ce845bd9d1f01f0">m_NarrowBand</a>->SetInnerRadius(2); <a name="l00209"></a>00209 <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#658badbb54c1cfebea2baa3ee468b978">m_ReinitializationFrequency</a> = 6; <a name="l00210"></a>00210 <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#c8a86e26892c7bf3d081470d8088c88b">m_IsoSurfaceValue</a> = 0.0; <a name="l00211"></a>00211 <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#7b953ae58290672dbe2920f014a1489b">m_Step</a> = 0; <a name="l00212"></a>00212 <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#f03597de09cf0e41e73d18b9fcc26270">m_Touched</a> = <span class="keyword">false</span>; <a name="l00213"></a>00213 <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#5f802279bbd8ee2bd85826ccf1b464ec">m_Barrier</a> = <a class="code" href="classitk_1_1Object.html#bd47887c0b027fb8aa273251f4ee8a9a">Barrier::New</a>(); <a name="l00214"></a>00214 } <a name="l00215"></a>00215 <a name="l00216"></a><a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#f8b7f8e8fe5ac818a84c1f2c1732ba93">00216</a> <span class="keyword">virtual</span> <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#f8b7f8e8fe5ac818a84c1f2c1732ba93">~NarrowBandImageFilterBase</a>() {} <a name="l00217"></a>00217 <span class="keywordtype">void</span> <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#1fe33c00b0f9decf7b2e88b62423e807">PrintSelf</a>(std::ostream& 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="l00218"></a>00218 <a name="l00221"></a><a class="code" href="structitk_1_1NarrowBandImageFilterBase_1_1ThreadRegionType.html">00221</a> <span class="keyword">struct </span><a class="code" href="structitk_1_1NarrowBandImageFilterBase_1_1ThreadRegionType.html">ThreadRegionType</a> <a name="l00222"></a>00222 { <a name="l00223"></a><a class="code" href="structitk_1_1NarrowBandImageFilterBase_1_1ThreadRegionType.html#c9bb89ef21f1968ec642010d814e95d8">00223</a> <span class="keyword">typename</span> <a class="code" href="classitk_1_1NarrowBand.html#6b31d5db86e4ec4cd4f24f68445a15ee">NarrowBandType::Iterator</a> <a class="code" href="structitk_1_1NarrowBandImageFilterBase_1_1ThreadRegionType.html#c9bb89ef21f1968ec642010d814e95d8">first</a>; <span class="comment">// this is the actual first element</span> <a name="l00224"></a><a class="code" href="structitk_1_1NarrowBandImageFilterBase_1_1ThreadRegionType.html#3d3296d6a9d8a99f5b465f2674c02666">00224</a> <span class="keyword">typename</span> <a class="code" href="classitk_1_1NarrowBand.html#6b31d5db86e4ec4cd4f24f68445a15ee">NarrowBandType::Iterator</a> <a class="code" href="structitk_1_1NarrowBandImageFilterBase_1_1ThreadRegionType.html#3d3296d6a9d8a99f5b465f2674c02666">last</a>; <span class="comment">// this is one past the actual last //element</span> <a name="l00225"></a>00225 }; <a name="l00226"></a>00226 <a name="l00229"></a><a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#863a2254a54afcc2593c0e6652fe0d17">00229</a> std::vector<RegionType> <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#863a2254a54afcc2593c0e6652fe0d17">m_RegionList</a>; <a name="l00230"></a>00230 <a name="l00233"></a>00233 <span class="keywordtype">void</span> <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#5d5ca3280827bd0bdab6d18d94ea5ac4">GetSplitRegion</a> (<span class="keywordtype">int</span> i, ThreadRegionType &splitRegion); <a name="l00234"></a>00234 <a name="l00239"></a>00239 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#dd450c96eb117fb94d75a14e9115a735">Initialize</a>(); <a name="l00240"></a>00240 <a name="l00245"></a>00245 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#620eb44a69e01560a92131d752e88464">InitializeIteration</a>(); <a name="l00246"></a>00246 <a name="l00249"></a>00249 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#b97548684a66da8ff746fc3c47d56afc">PostProcessOutput</a>(); <a name="l00250"></a>00250 <a name="l00251"></a>00251 <span class="comment">/* This function clears all pixels from the narrow band */</span> <a name="l00252"></a>00252 <span class="keywordtype">void</span> <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#80de83ab1485cb9b05c2a9c64377e9bb">ClearNarrowBand</a> (); <a name="l00253"></a>00253 <a name="l00255"></a>00255 <span class="keywordtype">void</span> <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#50f5f3c945fc3c0706b6d0b69cfe437f">WaitForAll</a>(); <a name="l00256"></a>00256 <a name="l00260"></a>00260 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#d2155f0bf7c6defdb570334abf9f7450">GenerateData</a>(); <a name="l00261"></a>00261 <a name="l00262"></a>00262 <span class="comment">/* Variables to control reinitialization */</span> <a name="l00263"></a><a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#658badbb54c1cfebea2baa3ee468b978">00263</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#658badbb54c1cfebea2baa3ee468b978">m_ReinitializationFrequency</a>; <a name="l00264"></a><a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#7b953ae58290672dbe2920f014a1489b">00264</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#7b953ae58290672dbe2920f014a1489b">m_Step</a>; <a name="l00265"></a><a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#f03597de09cf0e41e73d18b9fcc26270">00265</a> <span class="keywordtype">bool</span> <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#f03597de09cf0e41e73d18b9fcc26270">m_Touched</a>; <a name="l00266"></a><a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#116d7b27c275be0fb4ff87515319bc3e">00266</a> <span class="keywordtype">bool</span> * <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#116d7b27c275be0fb4ff87515319bc3e">m_TouchedForThread</a>; <a name="l00267"></a><a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#c8a86e26892c7bf3d081470d8088c88b">00267</a> <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#b85fba004a6a3cc945a04793894032c8">ValueType</a> <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#c8a86e26892c7bf3d081470d8088c88b">m_IsoSurfaceValue</a>; <a name="l00268"></a>00268 <a name="l00269"></a><a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#5f802279bbd8ee2bd85826ccf1b464ec">00269</a> <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">Barrier::Pointer</a> <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#5f802279bbd8ee2bd85826ccf1b464ec">m_Barrier</a>; <a name="l00270"></a>00270 <a name="l00271"></a>00271 <span class="keyword">private</span>: <a name="l00272"></a>00272 <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#c0d6ef4aa4c235302d0582078cf37284">NarrowBandImageFilterBase</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1LightObject.html" title="Light weight base class for most itk classes.">Self</a>&); <span class="comment">//purposely not implemented</span> <a name="l00273"></a>00273 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="classitk_1_1LightObject.html" title="Light weight base class for most itk classes.">Self</a>&); <span class="comment">//purposely not implemented</span> <a name="l00274"></a>00274 <a name="l00277"></a>00277 <span class="keyword">struct </span>NarrowBandImageFilterBaseThreadStruct <a name="l00278"></a>00278 { <a name="l00279"></a>00279 <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html" title="This class implements a multi-threaded finite difference image to image solver that...">NarrowBandImageFilterBase</a> *Filter; <a name="l00280"></a>00280 <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#3ff5d8765f2457dbf1e91cc1ee950137">TimeStepType</a> TimeStep; <a name="l00281"></a>00281 <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#3ff5d8765f2457dbf1e91cc1ee950137">TimeStepType</a> *TimeStepList; <a name="l00282"></a>00282 <span class="keywordtype">bool</span> *ValidTimeStepList; <a name="l00283"></a>00283 }; <a name="l00284"></a>00284 <a name="l00285"></a>00285 <span class="comment">/* This class does not use AllocateUpdateBuffer to allocate memory for its </span> <a name="l00286"></a>00286 <span class="comment"> * narrow band. This is taken care of in SetNarrowBand, and InsertNarrowBandNode</span> <a name="l00287"></a>00287 <span class="comment"> * functions. This function is here for compatability with the </span> <a name="l00288"></a>00288 <span class="comment"> * FiniteDifferenceSolver framework.</span> <a name="l00289"></a>00289 <span class="comment"> */</span> <a name="l00290"></a>00290 <span class="keyword">virtual</span> <span class="keywordtype">void</span> AllocateUpdateBuffer() {}; <a name="l00291"></a>00291 <a name="l00292"></a>00292 <a name="l00294"></a>00294 <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="l00295"></a>00295 <a name="l00299"></a>00299 <span class="keyword">virtual</span> <span class="keywordtype">void</span> ThreadedIterate(<span class="keywordtype">void</span> *arg, <span class="keywordtype">int</span> threadId); <a name="l00300"></a>00300 <a name="l00304"></a>00304 <span class="keyword">virtual</span> <span class="keywordtype">void</span> ThreadedApplyUpdate(<a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#3ff5d8765f2457dbf1e91cc1ee950137">TimeStepType</a> dt, <a name="l00305"></a>00305 <span class="keyword">const</span> ThreadRegionType &regionToProcess, <a name="l00306"></a>00306 <span class="keywordtype">int</span> threadId); <a name="l00307"></a>00307 <span class="keyword">virtual</span> <span class="keywordtype">void</span> ApplyUpdate(<a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#3ff5d8765f2457dbf1e91cc1ee950137">TimeStepType</a>){} <a name="l00308"></a>00308 <a name="l00312"></a>00312 <span class="keyword">virtual</span> <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#3ff5d8765f2457dbf1e91cc1ee950137">TimeStepType</a> ThreadedCalculateChange(<span class="keyword">const</span> ThreadRegionType &regionToProcess, <a name="l00313"></a>00313 <span class="keywordtype">int</span> threadId); <a name="l00314"></a>00314 <span class="keyword">virtual</span> <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html#3ff5d8765f2457dbf1e91cc1ee950137">TimeStepType</a> CalculateChange() {<span class="keywordflow">return</span> 0;} <a name="l00316"></a>00316 <a name="l00317"></a>00317 }; <a name="l00318"></a>00318 <a name="l00319"></a>00319 }<span class="comment">// end namespace itk</span> <a name="l00320"></a>00320 <a name="l00321"></a>00321 <span class="preprocessor">#ifndef ITK_MANUAL_INSTANTIATION</span> <a name="l00322"></a>00322 <span class="preprocessor"></span><span class="preprocessor">#include "itkNarrowBandImageFilterBase.txx"</span> <a name="l00323"></a>00323 <span class="preprocessor">#endif</span> <a name="l00324"></a>00324 <span class="preprocessor"></span> <a name="l00325"></a>00325 <span class="preprocessor">#endif</span> <a name="l00326"></a>00326 <span class="preprocessor"></span> </pre></div></div> <hr><address><small> Generated at Thu May 7 23:37:43 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>, © 1997-2000</small></address> </body> </html>