<!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: itkNarrowBandLevelSetImageFilter.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_16b0d2d22c345042f35cebae66b36010.html">Algorithms</a> </div> <div class="contents"> <h1>itkNarrowBandLevelSetImageFilter.h</h1><a href="itkNarrowBandLevelSetImageFilter_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: itkNarrowBandLevelSetImageFilter.h,v $</span> <a name="l00005"></a>00005 <span class="comment"> Language: C++</span> <a name="l00006"></a>00006 <span class="comment"> Date: $Date: 2009-01-26 21:45:53 $</span> <a name="l00007"></a>00007 <span class="comment"> Version: $Revision: 1.11 $</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 __itkNarrowBandLevelSetImageFilter_h</span> <a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define __itkNarrowBandLevelSetImageFilter_h</span> <a name="l00019"></a>00019 <span class="preprocessor"></span> <a name="l00020"></a>00020 <span class="preprocessor">#include "<a class="code" href="itkNarrowBandImageFilterBase_8h.html">itkNarrowBandImageFilterBase.h</a>"</span> <a name="l00021"></a>00021 <span class="preprocessor">#include "<a class="code" href="itkSegmentationLevelSetFunction_8h.html">itkSegmentationLevelSetFunction.h</a>"</span> <a name="l00022"></a>00022 <span class="preprocessor">#include "<a class="code" href="itkFastChamferDistanceImageFilter_8h.html">itkFastChamferDistanceImageFilter.h</a>"</span> <a name="l00023"></a>00023 <span class="preprocessor">#include "<a class="code" href="itkIsoContourDistanceImageFilter_8h.html">itkIsoContourDistanceImageFilter.h</a>"</span> <a name="l00024"></a>00024 <a name="l00025"></a>00025 <span class="keyword">namespace </span>itk { <a name="l00026"></a>00026 <a name="l00139"></a>00139 <span class="keyword">template</span> <<span class="keyword">class </span>TInputImage, <a name="l00140"></a>00140 <span class="keyword">class </span>TFeatureImage, <a name="l00141"></a>00141 <span class="keyword">class </span>TOutputPixelType = float, <a name="l00142"></a>00142 <span class="keyword">class </span>TOutputImage = Image<TOutputPixelType,<a class="code" href="structitk_1_1GetImageDimension.html"></a> <a name="l00143"></a>00143 <a class="code" href="structitk_1_1GetImageDimension.html"> ::itk::GetImageDimension<TInputImage>::ImageDimension</a>> > <a name="l00144"></a><a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html">00144</a> <span class="keyword">class </span><a class="code" href="itkWin32Header_8h.html#7d4384322557205d75f0719c012dded6">ITK_EXPORT</a> <a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html" title="A base class which defines the API for implementing a special class of image segmentation...">NarrowBandLevelSetImageFilter</a> <a name="l00145"></a>00145 : <span class="keyword">public</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><TInputImage, TOutputImage> <a name="l00146"></a>00146 { <a name="l00147"></a>00147 <span class="keyword">public</span>: <a name="l00148"></a>00148 <a name="l00150"></a><a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html#7044755a9cb870eecd20b6d96ed4caf5">00150</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html" title="A base class which defines the API for implementing a special class of image segmentation...">NarrowBandLevelSetImageFilter</a> <a class="code" href="classitk_1_1LightObject.html" title="Light weight base class for most itk classes.">Self</a>; <a name="l00151"></a><a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html#298b7f972a3add6d2587b759e839c3b3">00151</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1NarrowBandImageFilterBase.html">NarrowBandImageFilterBase<TInputImage, TOutputImage></a> <a class="code" href="classitk_1_1LightObject.html" title="Light weight base class for most itk classes.">Superclass</a>; <a name="l00152"></a><a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html#191fce694233e858887a57ddccd0c08b">00152</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="l00153"></a><a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html#369b207c4d8536d3bd8b43ff64889c0f">00153</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="l00154"></a>00154 <a name="l00156"></a><a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html#d3bd50b440ac3302a2af1739e3001cba">00156</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::ValueType ValueType; <a name="l00157"></a><a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html#b4b490dcef7adc0c7d84a0fa290af8e2">00157</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#be32dc19e71d40322ad9828b9ab40853">Superclass::IndexType</a> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#be32dc19e71d40322ad9828b9ab40853">IndexType</a>; <a name="l00158"></a><a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html#2845614b3ccb104fdad69a9415bda2a9">00158</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::TimeStepType TimeStepType; <a name="l00159"></a><a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html#14b9d8f41cd60abb78f4ee145e67b2a0">00159</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#3742cbac150bee74daa9aab85ed80623">Superclass::InputImageType</a> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#3742cbac150bee74daa9aab85ed80623">InputImageType</a>; <a name="l00160"></a>00160 <a name="l00162"></a><a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html#b118c997f3bdba9c76e584c1ba6c1a54">00162</a> <span class="keyword">typedef</span> TOutputImage <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">OutputImageType</a>; <a name="l00163"></a><a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html#c441a5f18b2207f626279cce73665f6d">00163</a> <span class="keyword">typedef</span> TFeatureImage FeatureImageType; <a name="l00164"></a>00164 <a name="l00166"></a>00166 <span class="keyword">typedef</span> <a class="code" href="classitk_1_1SegmentationLevelSetFunction.html">SegmentationLevelSetFunction <OutputImageType, FeatureImageType></a> <a name="l00167"></a><a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html#d77d0b892468bd372121bf3c21d8f646">00167</a> <a class="code" href="classitk_1_1SegmentationLevelSetFunction.html">SegmentationFunctionType</a>; <a name="l00168"></a>00168 <a name="l00170"></a><a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html#d8bbe6f2149c61a1f17aece5835c4fc7">00170</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">SegmentationFunctionType::VectorImageType</a> <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">VectorImageType</a>; <a name="l00171"></a>00171 <a name="l00173"></a>00173 <a class="code" href="itkMacro_8h.html#574c1f86661d409dd32c742307a0e96a">itkTypeMacro</a>(<a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html" title="A base class which defines the API for implementing a special class of image segmentation...">NarrowBandLevelSetImageFilter</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 name="l00174"></a>00174 <a name="l00177"></a><a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html#18da30dfe1b7efd4227fa636f700c66d">00177</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetFeatureImage(<span class="keyword">const</span> FeatureImageType *f) <a name="l00178"></a>00178 { <a name="l00179"></a>00179 this-><a class="code" href="classitk_1_1ProcessObject.html#148829de75f8eae1161af95151710808">ProcessObject::SetNthInput</a>( 1, const_cast< FeatureImageType * >(f) ); <a name="l00180"></a>00180 m_SegmentationFunction->SetFeatureImage(f); <a name="l00181"></a>00181 } <a name="l00182"></a><a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html#63f6ccae208b7162e1a9184f9bae9ea5">00182</a> <span class="keyword">virtual</span> FeatureImageType * GetFeatureImage() <a name="l00183"></a>00183 { <a name="l00184"></a>00184 <span class="keywordflow">return</span> ( static_cast< FeatureImageType *>(this-><a class="code" href="classitk_1_1ProcessObject.html#1cb9c8ea89b6357d9d851f4179f933dd">ProcessObject::GetInput</a>(1)) ); <a name="l00185"></a>00185 } <a name="l00187"></a>00187 <a name="l00190"></a><a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html#276b16c98249844ebfc7cd8f92ff833b">00190</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetInitialImage(<a class="code" href="namespaceHardConnectedComponentImageFilter.html#3742cbac150bee74daa9aab85ed80623">InputImageType</a> *f) <a name="l00191"></a>00191 { <a name="l00192"></a>00192 this->SetInput(f); <a name="l00193"></a>00193 } <a name="l00194"></a>00194 <a name="l00195"></a><a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html#12eeca69f65cd025fd40c602627a6b91">00195</a> <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keyword">typename</span> SegmentationFunctionType::ImageType *GetSpeedImage()<span class="keyword"> const</span> <a name="l00196"></a>00196 <span class="keyword"> </span>{ <span class="keywordflow">return</span> m_SegmentationFunction->GetSpeedImage(); } <a name="l00197"></a>00197 <a name="l00198"></a><a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html#7c9dc4d545513b5c9762991155bcafe9">00198</a> <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">SegmentationFunctionType::VectorImageType</a> *GetAdvectionImage()<span class="keyword"> const</span> <a name="l00199"></a>00199 <span class="keyword"> </span>{ <span class="keywordflow">return</span> m_SegmentationFunction->GetAdvectionImage(); } <a name="l00200"></a>00200 <a name="l00204"></a><a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html#bf1b0012adf25df36fba28d3ea677755">00204</a> <span class="keywordtype">void</span> SetUseNegativeFeaturesOn() <a name="l00205"></a>00205 { <a name="l00206"></a>00206 <a class="code" href="itkMacro_8h.html#0c47033c6ca9aae1319b1793f4419ada">itkWarningMacro</a>( << <span class="stringliteral">"SetUseNegativeFeaturesOn has been deprecated. Please use ReverseExpansionDirectionOn() instead"</span> ); <a name="l00207"></a>00207 this->ReverseExpansionDirectionOn(); <a name="l00208"></a>00208 } <a name="l00209"></a><a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html#718ef5280921ebf2980d56280a0889ef">00209</a> <span class="keywordtype">void</span> SetUseNegativeFeaturesOff() <a name="l00210"></a>00210 { <a name="l00211"></a>00211 <a class="code" href="itkMacro_8h.html#0c47033c6ca9aae1319b1793f4419ada">itkWarningMacro</a>( << <span class="stringliteral">"SetUseNegativeFeaturesOff has been deprecated. Please use ReverseExpansionDirectionOff() instead"</span> ); <a name="l00212"></a>00212 this->ReverseExpansionDirectionOff(); <a name="l00213"></a>00213 } <a name="l00215"></a>00215 <a name="l00218"></a><a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html#cf4ff1339564b30739fc972514b8bd14">00218</a> <span class="keywordtype">void</span> SetUseNegativeFeatures( <span class="keywordtype">bool</span> u ) <a name="l00219"></a>00219 { <a name="l00220"></a>00220 <a class="code" href="itkMacro_8h.html#0c47033c6ca9aae1319b1793f4419ada">itkWarningMacro</a>( << <span class="stringliteral">"SetUseNegativeFeatures has been deprecated. Please use SetReverseExpansionDirection instead"</span> ); <a name="l00221"></a>00221 <span class="keywordflow">if</span> (u == <span class="keyword">true</span>) <a name="l00222"></a>00222 { <a name="l00223"></a>00223 this->SetReverseExpansionDirection(<span class="keyword">false</span>); <a name="l00224"></a>00224 } <a name="l00225"></a>00225 <span class="keywordflow">else</span> <a name="l00226"></a>00226 { <a name="l00227"></a>00227 this->SetReverseExpansionDirection(<span class="keyword">true</span>); <a name="l00228"></a>00228 } <a name="l00229"></a>00229 } <a name="l00230"></a><a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html#0d213fad8accbf663a935d6ebeaa2c67">00230</a> <span class="keywordtype">bool</span> GetUseNegativeFeatures()<span class="keyword"> const</span> <a name="l00231"></a>00231 <span class="keyword"> </span>{ <a name="l00232"></a>00232 <a class="code" href="itkMacro_8h.html#0c47033c6ca9aae1319b1793f4419ada">itkWarningMacro</a>( << <span class="stringliteral">"GetUseNegativeFeatures has been deprecated. Please use GetReverseExpansionDirection() instead"</span> ); <a name="l00233"></a>00233 <span class="keywordflow">if</span> ( this->GetReverseExpansionDirection() == <span class="keyword">false</span>) <a name="l00234"></a>00234 { <a name="l00235"></a>00235 <span class="keywordflow">return</span> <span class="keyword">true</span>; <a name="l00236"></a>00236 } <a name="l00237"></a>00237 <span class="keywordflow">else</span> <a name="l00238"></a>00238 { <a name="l00239"></a>00239 <span class="keywordflow">return</span> <span class="keyword">false</span>; <a name="l00240"></a>00240 } <a name="l00241"></a>00241 } <a name="l00243"></a>00243 <a name="l00252"></a>00252 <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>(ReverseExpansionDirection, <span class="keywordtype">bool</span>); <a name="l00253"></a>00253 <a class="code" href="itkMacro_8h.html#89294335d94b115d40e2603f2fff7950">itkGetConstMacro</a>(ReverseExpansionDirection, <span class="keywordtype">bool</span>); <a name="l00254"></a>00254 <a class="code" href="itkMacro_8h.html#9e7d129ffebb09fd28bc213e02d87248">itkBooleanMacro</a>(ReverseExpansionDirection); <a name="l00256"></a>00256 <a name="l00261"></a><a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html#d6e38b3c9b94f04ca77a5ece3be687ad">00261</a> <span class="keywordtype">void</span> SetFeatureScaling(ValueType v) <a name="l00262"></a>00262 { <a name="l00263"></a>00263 <span class="keywordflow">if</span> (v != m_SegmentationFunction->GetPropagationWeight()) <a name="l00264"></a>00264 { <a name="l00265"></a>00265 this->SetPropagationScaling(v); <a name="l00266"></a>00266 } <a name="l00267"></a>00267 <span class="keywordflow">if</span> (v != m_SegmentationFunction->GetAdvectionWeight()) <a name="l00268"></a>00268 { <a name="l00269"></a>00269 this->SetAdvectionScaling(v); <a name="l00270"></a>00270 } <a name="l00271"></a>00271 } <a name="l00273"></a>00273 <a name="l00276"></a><a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html#6b15f2ec9edbddeb3817f95019802d09">00276</a> <span class="keywordtype">void</span> SetPropagationScaling(ValueType v) <a name="l00277"></a>00277 { <a name="l00278"></a>00278 <span class="keywordflow">if</span> (v != m_SegmentationFunction->GetPropagationWeight()) <a name="l00279"></a>00279 { <a name="l00280"></a>00280 m_SegmentationFunction->SetPropagationWeight(v); <a name="l00281"></a>00281 } <a name="l00282"></a>00282 } <a name="l00283"></a><a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html#6bdf2764b9f5ab5e627113d611417b59">00283</a> ValueType GetPropagationScaling()<span class="keyword"> const</span> <a name="l00284"></a>00284 <span class="keyword"> </span>{ <a name="l00285"></a>00285 <span class="keywordflow">return</span> m_SegmentationFunction->GetPropagationWeight(); <a name="l00286"></a>00286 } <a name="l00288"></a>00288 <a name="l00291"></a><a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html#a39af537069f15cb0113265552f36b2e">00291</a> <span class="keywordtype">void</span> SetAdvectionScaling(ValueType v) <a name="l00292"></a>00292 { <a name="l00293"></a>00293 <span class="keywordflow">if</span> (v != m_SegmentationFunction->GetAdvectionWeight()) <a name="l00294"></a>00294 { <a name="l00295"></a>00295 m_SegmentationFunction->SetAdvectionWeight(v); <a name="l00296"></a>00296 } <a name="l00297"></a>00297 } <a name="l00298"></a><a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html#16ae456880c2f63c1fef7b8b268a4155">00298</a> ValueType GetAdvectionScaling()<span class="keyword"> const</span> <a name="l00299"></a>00299 <span class="keyword"> </span>{ <a name="l00300"></a>00300 <span class="keywordflow">return</span> m_SegmentationFunction->GetAdvectionWeight(); <a name="l00301"></a>00301 } <a name="l00303"></a>00303 <a name="l00308"></a><a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html#ca62b0e5fed7dd64cad2ecb165f6174e">00308</a> <span class="keywordtype">void</span> SetCurvatureScaling(ValueType v) <a name="l00309"></a>00309 { <a name="l00310"></a>00310 <span class="keywordflow">if</span> (v != m_SegmentationFunction->GetCurvatureWeight()) <a name="l00311"></a>00311 { <a name="l00312"></a>00312 m_SegmentationFunction->SetCurvatureWeight(v); <a name="l00313"></a>00313 } <a name="l00314"></a>00314 } <a name="l00315"></a><a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html#1f86c9d45b0eb9249a94c8664a2e8b8e">00315</a> ValueType GetCurvatureScaling()<span class="keyword"> const</span> <a name="l00316"></a>00316 <span class="keyword"> </span>{ <a name="l00317"></a>00317 <span class="keywordflow">return</span> m_SegmentationFunction->GetCurvatureWeight(); <a name="l00318"></a>00318 } <a name="l00320"></a>00320 <a name="l00323"></a>00323 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetSegmentationFunction(SegmentationFunctionType *s); <a name="l00324"></a><a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html#8bc36b3df942e8fcc5b458ca53e3d7df">00324</a> <span class="keyword">virtual</span> <a class="code" href="classitk_1_1SegmentationLevelSetFunction.html">SegmentationFunctionType</a> *GetSegmentationFunction() <a name="l00325"></a>00325 { <span class="keywordflow">return</span> m_SegmentationFunction; } <a name="l00327"></a>00327 <a name="l00330"></a><a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html#ab39a6f54b43d699ebc26b5c8e4383ce">00330</a> <span class="keywordtype">void</span> SetMaximumIterations (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i) <a name="l00331"></a>00331 { <a name="l00332"></a>00332 <a class="code" href="itkMacro_8h.html#0c47033c6ca9aae1319b1793f4419ada">itkWarningMacro</a>(<span class="stringliteral">"SetMaximumIterations is deprecated. Please use SetNumberOfIterations instead."</span>); <a name="l00333"></a>00333 this->SetNumberOfIterations(i); <a name="l00334"></a>00334 } <a name="l00335"></a><a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html#e7e471667d26e88453fb9762b6864e9b">00335</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> GetMaximumIterations() <a name="l00336"></a>00336 { <a name="l00337"></a>00337 <a class="code" href="itkMacro_8h.html#0c47033c6ca9aae1319b1793f4419ada">itkWarningMacro</a>(<span class="stringliteral">"GetMaximumIterations is deprecated. Please use GetNumberOfIterations instead."</span>); <a name="l00338"></a>00338 <span class="keywordflow">return</span> this->GetNumberOfIterations(); <a name="l00339"></a>00339 } <a name="l00341"></a>00341 <a name="l00342"></a><a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html#6435fdf5016cd7ef066738045aa89a43">00342</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetMaximumRMSError(<span class="keyword">const</span> <span class="keywordtype">double</span>) <a name="l00343"></a>00343 { <a name="l00344"></a>00344 <a class="code" href="itkMacro_8h.html#0c47033c6ca9aae1319b1793f4419ada">itkWarningMacro</a>(<span class="stringliteral">"The current implmentation of this solver does not compute maximum RMS change. The maximum RMS error value will not be set or used."</span>); <a name="l00345"></a>00345 } <a name="l00346"></a>00346 <a name="l00347"></a>00347 <span class="preprocessor">#ifdef ITK_USE_CONCEPT_CHECKING</span> <a name="l00348"></a>00348 <span class="preprocessor"></span> <a name="l00349"></a>00349 <a class="code" href="itkConceptChecking_8h.html#009eae6c305d9c390972159815e6a710">itkConceptMacro</a>(OutputHasNumericTraitsCheck, <a name="l00350"></a>00350 (<a class="code" href="structitk_1_1Concept_1_1HasNumericTraits.html">Concept::HasNumericTraits<typename TOutputImage::PixelType></a>)); <a name="l00351"></a>00351 <a name="l00353"></a>00353 <span class="preprocessor">#endif</span> <a name="l00354"></a>00354 <span class="preprocessor"></span> <a name="l00355"></a>00355 <span class="keyword">protected</span>: <a name="l00356"></a><a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html#2efdad4932067953031f1bf878892a53">00356</a> <span class="keyword">virtual</span> <a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html#2efdad4932067953031f1bf878892a53">~NarrowBandLevelSetImageFilter</a>() {} <a name="l00357"></a>00357 <a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html" title="A base class which defines the API for implementing a special class of image segmentation...">NarrowBandLevelSetImageFilter</a>(); <a name="l00358"></a>00358 <a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html" title="A base class which defines the API for implementing a special class of image segmentation...">NarrowBandLevelSetImageFilter</a>(<span class="keyword">const</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ac7d0120fe5292cdcdddb6163b8cb150">Self</a> &); <span class="comment">//purposely not implemented</span> <a name="l00359"></a>00359 <a name="l00360"></a>00360 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#920ae03048a5ad715d803ca2e92b52de">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="l00361"></a>00361 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ac7d0120fe5292cdcdddb6163b8cb150">Self</a>&); <span class="comment">//purposely not implemented</span> <a name="l00362"></a>00362 <a name="l00364"></a><a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html#a837362ee93ee17ea115cf1c3cfee714">00364</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> InitializeIteration() <a name="l00365"></a>00365 { <a name="l00366"></a>00366 Superclass::InitializeIteration(); <a name="l00367"></a>00367 <span class="comment">// Estimate the progress of the filter</span> <a name="l00368"></a>00368 this->SetProgress( (<span class="keywordtype">float</span>) ((<span class="keywordtype">float</span>)this->GetElapsedIterations() <a name="l00369"></a>00369 / (<span class="keywordtype">float</span>)this->GetNumberOfIterations()) ); <a name="l00370"></a>00370 } <a name="l00372"></a>00372 <a name="l00376"></a>00376 <span class="keyword">virtual</span> <span class="keywordtype">void</span> CreateNarrowBand (); <a name="l00377"></a>00377 <a name="l00380"></a>00380 <span class="keywordtype">void</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#f75a5945cdd8315676941024a0b8c1e9">GenerateData</a>(); <a name="l00381"></a>00381 <a name="l00384"></a><a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html#23e99b7aed06c2ca3d62194696f73d24">00384</a> <span class="keywordtype">bool</span> m_ReverseExpansionDirection; <a name="l00385"></a>00385 <a name="l00389"></a>00389 <span class="keyword">typedef</span> <a class="code" href="classitk_1_1IsoContourDistanceImageFilter.html" title="Compute an approximate distance from an interpolated isocontour to the close grid...">IsoContourDistanceImageFilter<OutputImageType,OutputImageType></a> <a name="l00390"></a><a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html#8ad84c17d84e506fa629788995d131c3">00390</a> <a class="code" href="classitk_1_1IsoContourDistanceImageFilter.html" title="Compute an approximate distance from an interpolated isocontour to the close grid...">IsoFilterType</a>; <a name="l00391"></a>00391 <span class="keyword">typedef</span> <a class="code" href="classitk_1_1FastChamferDistanceImageFilter.html" title="This class compute the signed (positive and negative) chamfer distance in a narrow...">FastChamferDistanceImageFilter<OutputImageType,OutputImageType></a> <a name="l00392"></a><a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html#ae7d7a4a591ada429eab6437dd9d08de">00392</a> <a class="code" href="classitk_1_1FastChamferDistanceImageFilter.html" title="This class compute the signed (positive and negative) chamfer distance in a narrow...">ChamferFilterType</a>; <a name="l00393"></a>00393 <a name="l00394"></a><a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html#d36e1dbcfe820ddec7a9874739ea9170">00394</a> <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">IsoFilterType::Pointer</a> m_IsoFilter; <a name="l00395"></a><a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html#b0b384b3b3dddce3d6baeb85f846dcde">00395</a> <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">ChamferFilterType::Pointer</a> m_ChamferFilter; <a name="l00396"></a>00396 <a name="l00397"></a>00397 <span class="keyword">private</span>: <a name="l00398"></a>00398 <a class="code" href="classitk_1_1SegmentationLevelSetFunction.html">SegmentationFunctionType</a> *m_SegmentationFunction; <a name="l00399"></a>00399 }; <a name="l00400"></a>00400 <a name="l00401"></a>00401 } <span class="comment">// end namespace itk</span> <a name="l00402"></a>00402 <a name="l00403"></a>00403 <span class="preprocessor">#ifndef ITK_MANUAL_INSTANTIATION</span> <a name="l00404"></a>00404 <span class="preprocessor"></span><span class="preprocessor">#include "itkNarrowBandLevelSetImageFilter.txx"</span> <a name="l00405"></a>00405 <span class="preprocessor">#endif</span> <a name="l00406"></a>00406 <span class="preprocessor"></span> <a name="l00407"></a>00407 <span class="preprocessor">#endif</span> <a name="l00408"></a>00408 <span class="preprocessor"></span> </pre></div></div> <hr><address><small> Generated at Thu May 7 23:38:02 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>