Sophie

Sophie

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

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: itkSegmentationLevelSetImageFilter.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_16b0d2d22c345042f35cebae66b36010.html">Algorithms</a>
  </div>
<div class="contents">
<h1>itkSegmentationLevelSetImageFilter.h</h1><a href="itkSegmentationLevelSetImageFilter_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: itkSegmentationLevelSetImageFilter.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-27 19:30:15 $</span>
<a name="l00007"></a>00007 <span class="comment">  Version:   $Revision: 1.35 $</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 __itkSegmentationLevelSetImageFilter_h</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define __itkSegmentationLevelSetImageFilter_h</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span>
<a name="l00020"></a>00020 <span class="preprocessor">#include "<a class="code" href="itkSparseFieldLevelSetImageFilter_8h.html">itkSparseFieldLevelSetImageFilter.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 
<a name="l00023"></a>00023 <span class="keyword">namespace </span>itk {
<a name="l00024"></a>00024 
<a name="l00139"></a>00139 <span class="keyword">template</span> &lt;<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 = <span class="keywordtype">float</span> &gt;
<a name="l00142"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html">00142</a> <span class="keyword">class </span><a class="code" href="itkWin32Header_8h.html#7d4384322557205d75f0719c012dded6">ITK_EXPORT</a> <a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html" title="A base class which defines the API for implementing a special class of image segmentation...">SegmentationLevelSetImageFilter</a>
<a name="l00143"></a>00143   : <span class="keyword">public</span> <a class="code" href="classitk_1_1SparseFieldLevelSetImageFilter.html" title="This class implements a finite difference partial differential equation solver for...">SparseFieldLevelSetImageFilter</a>&lt;TInputImage, Image&lt;TOutputPixelType,
<a name="l00144"></a>00144                                      ::itk::GetImageDimension&lt;TInputImage&gt;::ImageDimension&gt; &gt;
<a name="l00145"></a>00145 {
<a name="l00146"></a>00146 <span class="keyword">public</span>:
<a name="l00147"></a>00147 
<a name="l00150"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#e58f172d2203e8ba17a3601fdb4c74d3">00150</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html" title="A base class which defines the API for implementing a special class of image segmentation...">SegmentationLevelSetImageFilter</a> <a class="code" href="classitk_1_1LightObject.html" title="Light weight base class for most itk classes.">Self</a>;
<a name="l00151"></a>00151 
<a name="l00154"></a>00154   <a class="code" href="itkMacro_8h.html#1905cf6b2e88235996fa7ff73b2fb0eb">itkStaticConstMacro</a>(InputImageDimension, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>, TInputImage::ImageDimension);
<a name="l00155"></a>00155 
<a name="l00157"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#85c9affb3cd75f5e607b72f2584893a1">00157</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">Image&lt;TOutputPixelType, itkGetStaticConstMacro(InputImageDimension)&gt;</a> <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">OutputImageType</a>;
<a name="l00158"></a>00158 
<a name="l00160"></a>00160   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1SparseFieldLevelSetImageFilter.html" title="This class implements a finite difference partial differential equation solver for...">SparseFieldLevelSetImageFilter&lt;TInputImage, OutputImageType&gt;</a>
<a name="l00161"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#59be35c6d05471cda13ac8d495acd6c5">00161</a>                                     <a class="code" href="classitk_1_1LightObject.html" title="Light weight base class for most itk classes.">Superclass</a>;
<a name="l00162"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#032de86882111d5e91d15d4bddacd08a">00162</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="l00163"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#9e2a6397f8ca4aaca70b4e5b5347c874">00163</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="l00164"></a>00164 
<a name="l00166"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#494f64d80f6a0f45b79ad883e3d6c484">00166</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::ValueType       ValueType;
<a name="l00167"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#cc5068f95c410231df1608a28e9543f4">00167</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="l00168"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#5e32aca736defa40cf67e197c4c6e23c">00168</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::TimeStepType    TimeStepType;
<a name="l00169"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#fa2a28f2395880b540fd6791398217d3">00169</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="l00170"></a>00170 
<a name="l00172"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#886d1ca4700a42e7d5bf815e4b6e8fdf">00172</a>   <span class="keyword">typedef</span> TFeatureImage FeatureImageType;
<a name="l00173"></a>00173 
<a name="l00175"></a>00175   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1SegmentationLevelSetFunction.html">SegmentationLevelSetFunction&lt;OutputImageType, FeatureImageType&gt;</a>
<a name="l00176"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#859b831bf4a7b2a7396bb109563b486c">00176</a>   <a class="code" href="classitk_1_1SegmentationLevelSetFunction.html">SegmentationFunctionType</a>;
<a name="l00177"></a>00177 
<a name="l00179"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#c4f3c2bee84ae51da9ca5c21590f0669">00179</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="l00180"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#02fcdfe6f9caa7512e486cf3a0e09561">00180</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> SegmentationFunctionType::ImageType       SpeedImageType;
<a name="l00181"></a>00181 
<a name="l00183"></a>00183   <a class="code" href="itkMacro_8h.html#574c1f86661d409dd32c742307a0e96a">itkTypeMacro</a>(<a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html" title="A base class which defines the API for implementing a special class of image segmentation...">SegmentationLevelSetImageFilter</a>, <a class="code" href="classitk_1_1SparseFieldLevelSetImageFilter.html" title="This class implements a finite difference partial differential equation solver for...">SparseFieldLevelSetImageFilter</a>);
<a name="l00184"></a>00184 
<a name="l00187"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#ad8b8fe973911d617613390736671bdf">00187</a>   <span class="keywordtype">void</span> SetMaximumIterations (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i)
<a name="l00188"></a>00188     {
<a name="l00189"></a>00189     <a class="code" href="itkMacro_8h.html#0c47033c6ca9aae1319b1793f4419ada">itkWarningMacro</a>(<span class="stringliteral">"SetMaximumIterations is deprecated.  Please use SetNumberOfIterations instead."</span>);
<a name="l00190"></a>00190     this-&gt;SetNumberOfIterations(i);
<a name="l00191"></a>00191     }
<a name="l00192"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#a599b46e6ff33dc118bfb83df48654fc">00192</a>   <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> GetMaximumIterations()
<a name="l00193"></a>00193     {
<a name="l00194"></a>00194     <a class="code" href="itkMacro_8h.html#0c47033c6ca9aae1319b1793f4419ada">itkWarningMacro</a>(<span class="stringliteral">"GetMaximumIterations is deprecated. Please use GetNumberOfIterations instead."</span>);
<a name="l00195"></a>00195     <span class="keywordflow">return</span> this-&gt;GetNumberOfIterations();
<a name="l00196"></a>00196     }
<a name="l00198"></a>00198 
<a name="l00201"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#5266164d20f984b21f2a8cab8650bb69">00201</a>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetFeatureImage(<span class="keyword">const</span> FeatureImageType *f)
<a name="l00202"></a>00202     {
<a name="l00203"></a>00203     this-&gt;<a class="code" href="classitk_1_1ProcessObject.html#148829de75f8eae1161af95151710808">ProcessObject::SetNthInput</a>( 1, const_cast&lt; FeatureImageType * &gt;(f) );
<a name="l00204"></a>00204     m_SegmentationFunction-&gt;SetFeatureImage(f);
<a name="l00205"></a>00205     }
<a name="l00206"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#be81025e243d00ab7cc23c1eccae1fb1">00206</a>   <span class="keyword">virtual</span> FeatureImageType * GetFeatureImage()
<a name="l00207"></a>00207     { <span class="keywordflow">return</span> ( static_cast&lt; FeatureImageType *&gt;(this-&gt;<a class="code" href="classitk_1_1ProcessObject.html#1cb9c8ea89b6357d9d851f4179f933dd">ProcessObject::GetInput</a>(1)) ); }
<a name="l00209"></a>00209 
<a name="l00212"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#5304f3c567fda00fab82c806e8f91215">00212</a>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetInitialImage(<a class="code" href="namespaceHardConnectedComponentImageFilter.html#3742cbac150bee74daa9aab85ed80623">InputImageType</a> *f)
<a name="l00213"></a>00213     {
<a name="l00214"></a>00214     this-&gt;SetInput(f);
<a name="l00215"></a>00215     }
<a name="l00216"></a>00216 
<a name="l00218"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#59b6a7c36059977429816be6720778a3">00218</a>   <span class="keywordtype">void</span> SetInput2(<span class="keyword">const</span> FeatureImageType *input)
<a name="l00219"></a>00219     {
<a name="l00220"></a>00220     this-&gt;SetFeatureImage( input );
<a name="l00221"></a>00221     }
<a name="l00222"></a>00222 
<a name="l00226"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#d08aa537b5a328eaca51626074e9be91">00226</a>   <span class="keywordtype">void</span> SetSpeedImage( SpeedImageType *s )
<a name="l00227"></a>00227     {  m_SegmentationFunction-&gt;SetSpeedImage( s ); }
<a name="l00228"></a>00228 
<a name="l00232"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#0138ecafb272886cee953c4ff11fb143">00232</a>   <span class="keywordtype">void</span> SetAdvectionImage( <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">VectorImageType</a> *v)
<a name="l00233"></a>00233     { m_SegmentationFunction-&gt;SetAdvectionImage( v ); }
<a name="l00234"></a>00234 
<a name="l00237"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#89121e9cf2d86215794403689fb85e79">00237</a>   <span class="keyword">virtual</span> <span class="keyword">const</span> SpeedImageType *GetSpeedImage()<span class="keyword"> const</span>
<a name="l00238"></a>00238 <span class="keyword">    </span>{ <span class="keywordflow">return</span> m_SegmentationFunction-&gt;GetSpeedImage(); }
<a name="l00239"></a>00239 
<a name="l00242"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#f8ccc3ae9dff792a1339de33255dade0">00242</a>   <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">VectorImageType</a> *GetAdvectionImage()<span class="keyword"> const</span>
<a name="l00243"></a>00243 <span class="keyword">    </span>{ <span class="keywordflow">return</span> m_SegmentationFunction-&gt;GetAdvectionImage(); }
<a name="l00244"></a>00244 
<a name="l00248"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#2ee863b9b950c188b1b51f83ed34b560">00248</a>   <span class="keywordtype">void</span> SetUseNegativeFeaturesOn()
<a name="l00249"></a>00249     {
<a name="l00250"></a>00250     <a class="code" href="itkMacro_8h.html#0c47033c6ca9aae1319b1793f4419ada">itkWarningMacro</a>( &lt;&lt; <span class="stringliteral">"SetUseNegativeFeaturesOn has been deprecated.  Please use ReverseExpansionDirectionOn() instead"</span> );
<a name="l00251"></a>00251     this-&gt;ReverseExpansionDirectionOn();
<a name="l00252"></a>00252     }
<a name="l00253"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#e76aecb5332220789c97ef116b711e09">00253</a>   <span class="keywordtype">void</span> SetUseNegativeFeaturesOff()
<a name="l00254"></a>00254     {
<a name="l00255"></a>00255     <a class="code" href="itkMacro_8h.html#0c47033c6ca9aae1319b1793f4419ada">itkWarningMacro</a>( &lt;&lt; <span class="stringliteral">"SetUseNegativeFeaturesOff has been deprecated.  Please use ReverseExpansionDirectionOff() instead"</span> );
<a name="l00256"></a>00256     this-&gt;ReverseExpansionDirectionOff();
<a name="l00257"></a>00257     }
<a name="l00259"></a>00259 
<a name="l00262"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#ab9603c5733b857d8274597085d0e062">00262</a>   <span class="keywordtype">void</span> SetUseNegativeFeatures( <span class="keywordtype">bool</span> u )
<a name="l00263"></a>00263     {
<a name="l00264"></a>00264     <a class="code" href="itkMacro_8h.html#0c47033c6ca9aae1319b1793f4419ada">itkWarningMacro</a>( &lt;&lt; <span class="stringliteral">"SetUseNegativeFeatures has been deprecated.  Please use SetReverseExpansionDirection instead"</span> );
<a name="l00265"></a>00265     <span class="keywordflow">if</span> (u == <span class="keyword">true</span>)
<a name="l00266"></a>00266       {
<a name="l00267"></a>00267       this-&gt;SetReverseExpansionDirection(<span class="keyword">false</span>);
<a name="l00268"></a>00268       }
<a name="l00269"></a>00269     <span class="keywordflow">else</span>
<a name="l00270"></a>00270       {
<a name="l00271"></a>00271       this-&gt;SetReverseExpansionDirection(<span class="keyword">true</span>);
<a name="l00272"></a>00272       }
<a name="l00273"></a>00273     }
<a name="l00274"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#7820a942181249ccd8a1237094960bf2">00274</a>   <span class="keywordtype">bool</span> GetUseNegativeFeatures()<span class="keyword"> const</span>
<a name="l00275"></a>00275 <span class="keyword">    </span>{
<a name="l00276"></a>00276     <a class="code" href="itkMacro_8h.html#0c47033c6ca9aae1319b1793f4419ada">itkWarningMacro</a>( &lt;&lt; <span class="stringliteral">"GetUseNegativeFeatures has been deprecated.  Please use GetReverseExpansionDirection() instead"</span> );
<a name="l00277"></a>00277     <span class="keywordflow">if</span> ( m_ReverseExpansionDirection == <span class="keyword">false</span>)
<a name="l00278"></a>00278       {
<a name="l00279"></a>00279       <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00280"></a>00280       }
<a name="l00281"></a>00281     <span class="keywordflow">else</span>
<a name="l00282"></a>00282       {
<a name="l00283"></a>00283       <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00284"></a>00284       }
<a name="l00285"></a>00285     }
<a name="l00287"></a>00287 
<a name="l00296"></a>00296   <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>(ReverseExpansionDirection, <span class="keywordtype">bool</span>);
<a name="l00297"></a>00297   <a class="code" href="itkMacro_8h.html#1600305bb01e39e87c472d8bf29bd1cf">itkGetMacro</a>(ReverseExpansionDirection, <span class="keywordtype">bool</span>);
<a name="l00298"></a>00298   <a class="code" href="itkMacro_8h.html#9e7d129ffebb09fd28bc213e02d87248">itkBooleanMacro</a>(ReverseExpansionDirection);
<a name="l00300"></a>00300 
<a name="l00306"></a>00306   <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>(AutoGenerateSpeedAdvection, <span class="keywordtype">bool</span>);
<a name="l00307"></a>00307   <a class="code" href="itkMacro_8h.html#1600305bb01e39e87c472d8bf29bd1cf">itkGetMacro</a>(AutoGenerateSpeedAdvection, <span class="keywordtype">bool</span>);
<a name="l00308"></a>00308   <a class="code" href="itkMacro_8h.html#9e7d129ffebb09fd28bc213e02d87248">itkBooleanMacro</a>(AutoGenerateSpeedAdvection);
<a name="l00310"></a>00310 
<a name="l00315"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#eb4f055761e24a5cfd0490befc16de0f">00315</a>   <span class="keywordtype">void</span> SetFeatureScaling(ValueType v)
<a name="l00316"></a>00316     {
<a name="l00317"></a>00317     <span class="keywordflow">if</span> (v != m_SegmentationFunction-&gt;GetPropagationWeight())
<a name="l00318"></a>00318       {
<a name="l00319"></a>00319       this-&gt;SetPropagationScaling(v);
<a name="l00320"></a>00320       }
<a name="l00321"></a>00321     <span class="keywordflow">if</span> (v != m_SegmentationFunction-&gt;GetAdvectionWeight())
<a name="l00322"></a>00322       {
<a name="l00323"></a>00323       this-&gt;SetAdvectionScaling(v);
<a name="l00324"></a>00324       }
<a name="l00325"></a>00325     }
<a name="l00327"></a>00327 
<a name="l00330"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#1791f94ee0252f720d4283a59e0bc600">00330</a>   <span class="keywordtype">void</span> SetPropagationScaling(ValueType v)
<a name="l00331"></a>00331     {
<a name="l00332"></a>00332     <span class="keywordflow">if</span> (v != m_SegmentationFunction-&gt;GetPropagationWeight())
<a name="l00333"></a>00333       {
<a name="l00334"></a>00334       m_SegmentationFunction-&gt;SetPropagationWeight(v);
<a name="l00335"></a>00335       this-&gt;Modified();
<a name="l00336"></a>00336       }
<a name="l00337"></a>00337     }
<a name="l00338"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#71da040581c9136d492ed5ba0d0655ba">00338</a>   ValueType GetPropagationScaling()<span class="keyword"> const</span>
<a name="l00339"></a>00339 <span class="keyword">    </span>{
<a name="l00340"></a>00340     <span class="keywordflow">return</span> m_SegmentationFunction-&gt;GetPropagationWeight();
<a name="l00341"></a>00341     }
<a name="l00343"></a>00343 
<a name="l00346"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#5e6cb7ba622c31d907452c5d6f516560">00346</a>   <span class="keywordtype">void</span> SetAdvectionScaling(ValueType v)
<a name="l00347"></a>00347     {
<a name="l00348"></a>00348     <span class="keywordflow">if</span> (v != m_SegmentationFunction-&gt;GetAdvectionWeight())
<a name="l00349"></a>00349       {
<a name="l00350"></a>00350       m_SegmentationFunction-&gt;SetAdvectionWeight(v);
<a name="l00351"></a>00351       this-&gt;Modified();
<a name="l00352"></a>00352       }
<a name="l00353"></a>00353     }
<a name="l00354"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#100137d5e753651331d30775660c0207">00354</a>   ValueType GetAdvectionScaling()<span class="keyword"> const</span>
<a name="l00355"></a>00355 <span class="keyword">    </span>{
<a name="l00356"></a>00356     <span class="keywordflow">return</span> m_SegmentationFunction-&gt;GetAdvectionWeight();
<a name="l00357"></a>00357     }
<a name="l00359"></a>00359 
<a name="l00364"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#8425f76e0ee50bf7eecbaf84fee10f7e">00364</a>   <span class="keywordtype">void</span> SetCurvatureScaling(ValueType v)
<a name="l00365"></a>00365     {
<a name="l00366"></a>00366     <span class="keywordflow">if</span> (v != m_SegmentationFunction-&gt;GetCurvatureWeight())
<a name="l00367"></a>00367       {
<a name="l00368"></a>00368       m_SegmentationFunction-&gt;SetCurvatureWeight(v);
<a name="l00369"></a>00369       this-&gt;Modified();
<a name="l00370"></a>00370       }
<a name="l00371"></a>00371     }
<a name="l00372"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#8763c4aa6e4a498bd3c30eb9269b9da7">00372</a>   ValueType GetCurvatureScaling()<span class="keyword"> const</span>
<a name="l00373"></a>00373 <span class="keyword">    </span>{
<a name="l00374"></a>00374     <span class="keywordflow">return</span> m_SegmentationFunction-&gt;GetCurvatureWeight();
<a name="l00375"></a>00375     }
<a name="l00377"></a>00377 
<a name="l00379"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#16aab574581d0d3501321eb1b6b93082">00379</a>   <span class="keywordtype">void</span> SetUseMinimalCurvature( <span class="keywordtype">bool</span> b )
<a name="l00380"></a>00380     {
<a name="l00381"></a>00381     <span class="keywordflow">if</span> ( m_SegmentationFunction-&gt;GetUseMinimalCurvature() != b)
<a name="l00382"></a>00382       {
<a name="l00383"></a>00383       m_SegmentationFunction-&gt;SetUseMinimalCurvature( b );
<a name="l00384"></a>00384       this-&gt;Modified();
<a name="l00385"></a>00385       }
<a name="l00386"></a>00386     }
<a name="l00387"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#d6c8a6121faebd56638fee107b5f179a">00387</a>   <span class="keywordtype">bool</span> GetUseMinimalCurvature()<span class="keyword"> const</span>
<a name="l00388"></a>00388 <span class="keyword">    </span>{
<a name="l00389"></a>00389     <span class="keywordflow">return</span> m_SegmentationFunction-&gt;GetUseMinimalCurvature();
<a name="l00390"></a>00390     }
<a name="l00391"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#c485a2cb87739e90fe1b7bad2ce11e7d">00391</a>   <span class="keywordtype">void</span> UseMinimalCurvatureOn()
<a name="l00392"></a>00392     {
<a name="l00393"></a>00393     this-&gt;SetUseMinimalCurvature(<span class="keyword">true</span>);
<a name="l00394"></a>00394     }
<a name="l00395"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#402cfefa35e86c95c0d2d62fde155598">00395</a>   <span class="keywordtype">void</span> UseMinimalCurvatureOff()
<a name="l00396"></a>00396     {
<a name="l00397"></a>00397     this-&gt;SetUseMinimalCurvature(<span class="keyword">false</span>);
<a name="l00398"></a>00398     }
<a name="l00400"></a>00400 
<a name="l00401"></a>00401   
<a name="l00407"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#707b60df9c8e73156e59c68d0a019ca5">00407</a>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetSegmentationFunction(<a class="code" href="classitk_1_1SegmentationLevelSetFunction.html">SegmentationFunctionType</a> *s)
<a name="l00408"></a>00408     {
<a name="l00409"></a>00409     m_SegmentationFunction = s; 
<a name="l00410"></a>00410 
<a name="l00411"></a>00411     <span class="keyword">typename</span> SegmentationFunctionType::RadiusType r;
<a name="l00412"></a>00412     r.Fill( 1 );
<a name="l00413"></a>00413   
<a name="l00414"></a>00414     m_SegmentationFunction-&gt;<a class="code" href="classitk_1_1SegmentationLevelSetFunction.html#4a162af370e7afac6550c2a867aaa8f2">Initialize</a>(r);
<a name="l00415"></a>00415     this-&gt;SetDifferenceFunction(m_SegmentationFunction);
<a name="l00416"></a>00416     this-&gt;Modified();
<a name="l00417"></a>00417     }
<a name="l00418"></a>00418 
<a name="l00419"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#c7c86867fd6b148d54dfe63a9d12e1e5">00419</a>   <span class="keyword">virtual</span> <a class="code" href="classitk_1_1SegmentationLevelSetFunction.html">SegmentationFunctionType</a> *GetSegmentationFunction()
<a name="l00420"></a>00420     { <span class="keywordflow">return</span> m_SegmentationFunction; }
<a name="l00421"></a>00421 
<a name="l00422"></a>00422   
<a name="l00427"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#b5d1cd805218a1162b8035eb71a2b4b3">00427</a>   <span class="keywordtype">void</span> SetMaximumCurvatureTimeStep(<span class="keywordtype">double</span> n)
<a name="l00428"></a>00428     {
<a name="l00429"></a>00429     <span class="keywordflow">if</span> ( n != m_SegmentationFunction-&gt;GetMaximumCurvatureTimeStep() )
<a name="l00430"></a>00430       {
<a name="l00431"></a>00431       m_SegmentationFunction-&gt;SetMaximumCurvatureTimeStep(n);
<a name="l00432"></a>00432       this-&gt;Modified();
<a name="l00433"></a>00433       }
<a name="l00434"></a>00434     }
<a name="l00435"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#55018643d3aebb4d07ba3b3695747269">00435</a>   <span class="keywordtype">double</span> GetMaximumCurvatureTimeStep()<span class="keyword"> const</span>
<a name="l00436"></a>00436 <span class="keyword">    </span>{
<a name="l00437"></a>00437     <span class="keywordflow">return</span> m_SegmentationFunction-&gt;GetMaximumCurvatureTimeStep();
<a name="l00438"></a>00438     }
<a name="l00440"></a>00440 
<a name="l00445"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#6e7aacb408f460c8bbcdd487691edcbc">00445</a>   <span class="keywordtype">void</span> SetMaximumPropagationTimeStep(<span class="keywordtype">double</span> n)
<a name="l00446"></a>00446     {
<a name="l00447"></a>00447     <span class="keywordflow">if</span> (n != m_SegmentationFunction-&gt;GetMaximumPropagationTimeStep() )
<a name="l00448"></a>00448       {
<a name="l00449"></a>00449       m_SegmentationFunction-&gt;SetMaximumPropagationTimeStep(n);
<a name="l00450"></a>00450       this-&gt;Modified();
<a name="l00451"></a>00451       }
<a name="l00452"></a>00452     }
<a name="l00453"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#b442f364621d2be4c70980beaebf8928">00453</a>   <span class="keywordtype">double</span> GetMaximumPropagationTimeStep()<span class="keyword"> const</span>
<a name="l00454"></a>00454 <span class="keyword">    </span>{
<a name="l00455"></a>00455     <span class="keywordflow">return</span> m_SegmentationFunction-&gt;GetMaximumPropagationTimeStep();
<a name="l00456"></a>00456     }
<a name="l00458"></a>00458 
<a name="l00462"></a>00462   <span class="keywordtype">void</span> GenerateSpeedImage();
<a name="l00463"></a>00463 
<a name="l00467"></a>00467   <span class="keywordtype">void</span> GenerateAdvectionImage();
<a name="l00468"></a>00468 
<a name="l00469"></a>00469 <span class="preprocessor">#ifdef ITK_USE_CONCEPT_CHECKING</span>
<a name="l00470"></a>00470 <span class="preprocessor"></span>
<a name="l00471"></a>00471   <a class="code" href="itkConceptChecking_8h.html#009eae6c305d9c390972159815e6a710">itkConceptMacro</a>(OutputHasNumericTraitsCheck,
<a name="l00472"></a>00472                   (<a class="code" href="structitk_1_1Concept_1_1HasNumericTraits.html">Concept::HasNumericTraits&lt;TOutputPixelType&gt;</a>));
<a name="l00473"></a>00473 
<a name="l00475"></a>00475 <span class="preprocessor">#endif</span>
<a name="l00476"></a>00476 <span class="preprocessor"></span>
<a name="l00477"></a>00477 <span class="keyword">protected</span>:
<a name="l00478"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#08a71821b4b78b9b7d26fae0d4945118">00478</a>   <span class="keyword">virtual</span> <a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#08a71821b4b78b9b7d26fae0d4945118">~SegmentationLevelSetImageFilter</a>() {}
<a name="l00479"></a>00479   <a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html" title="A base class which defines the API for implementing a special class of image segmentation...">SegmentationLevelSetImageFilter</a>();
<a name="l00480"></a>00480 
<a name="l00481"></a>00481   <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="l00482"></a>00482 
<a name="l00484"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#024cc1239439ec93a19303dc75be63f1">00484</a>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> InitializeIteration()
<a name="l00485"></a>00485     {
<a name="l00486"></a>00486     Superclass::InitializeIteration();
<a name="l00487"></a>00487     <span class="comment">// Estimate the progress of the filter</span>
<a name="l00488"></a>00488     this-&gt;SetProgress( (<span class="keywordtype">float</span>) ((<span class="keywordtype">float</span>)this-&gt;GetElapsedIterations()
<a name="l00489"></a>00489                                 / (<span class="keywordtype">float</span>)this-&gt;GetNumberOfIterations()) );
<a name="l00490"></a>00490     }
<a name="l00492"></a>00492 
<a name="l00495"></a>00495   <span class="keywordtype">void</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#f75a5945cdd8315676941024a0b8c1e9">GenerateData</a>();
<a name="l00496"></a>00496 
<a name="l00499"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#db6a902a42b180e81244676917954c1a">00499</a>   <span class="keywordtype">bool</span> m_ReverseExpansionDirection;
<a name="l00500"></a>00500 
<a name="l00505"></a><a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html#4f50901bd60f2dd697b1a931abc2ac44">00505</a>   <span class="keywordtype">bool</span> m_AutoGenerateSpeedAdvection;
<a name="l00506"></a>00506 
<a name="l00507"></a>00507 <span class="keyword">private</span>:
<a name="l00508"></a>00508   <a class="code" href="classitk_1_1SegmentationLevelSetImageFilter.html" title="A base class which defines the API for implementing a special class of image segmentation...">SegmentationLevelSetImageFilter</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>&amp;); <span class="comment">//purposely not implemented</span>
<a name="l00509"></a>00509   <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>&amp;); <span class="comment">//purposely not implemented</span>
<a name="l00510"></a>00510 
<a name="l00511"></a>00511   <a class="code" href="classitk_1_1SegmentationLevelSetFunction.html">SegmentationFunctionType</a> *m_SegmentationFunction;
<a name="l00512"></a>00512 };
<a name="l00513"></a>00513 
<a name="l00514"></a>00514 } <span class="comment">// end namespace itk</span>
<a name="l00515"></a>00515 
<a name="l00516"></a>00516 <span class="preprocessor">#ifndef ITK_MANUAL_INSTANTIATION</span>
<a name="l00517"></a>00517 <span class="preprocessor"></span><span class="preprocessor">#include "itkSegmentationLevelSetImageFilter.txx"</span>
<a name="l00518"></a>00518 <span class="preprocessor">#endif</span>
<a name="l00519"></a>00519 <span class="preprocessor"></span>
<a name="l00520"></a>00520 <span class="preprocessor">#endif</span>
<a name="l00521"></a>00521 <span class="preprocessor"></span>
</pre></div></div>
<hr><address><small>
Generated at Fri May 8 00:09:01 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>