Sophie

Sophie

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

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: itkFastMarchingImageFilter.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>itkFastMarchingImageFilter.h</h1><a href="itkFastMarchingImageFilter_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: itkFastMarchingImageFilter.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-12-21 19:13:11 $</span>
<a name="l00007"></a>00007 <span class="comment">  Version:   $Revision: 1.39 $</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 __itkFastMarchingImageFilter_h</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define __itkFastMarchingImageFilter_h</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span>
<a name="l00020"></a>00020 <span class="preprocessor">#include "<a class="code" href="itkImageToImageFilter_8h.html">itkImageToImageFilter.h</a>"</span>
<a name="l00021"></a>00021 <span class="preprocessor">#include "<a class="code" href="itkLevelSet_8h.html">itkLevelSet.h</a>"</span>
<a name="l00022"></a>00022 <span class="preprocessor">#include "<a class="code" href="itkIndex_8h.html">itkIndex.h</a>"</span>
<a name="l00023"></a>00023 <span class="preprocessor">#include "vnl/vnl_math.h"</span>
<a name="l00024"></a>00024 
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;functional&gt;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;queue&gt;</span>
<a name="l00027"></a>00027 
<a name="l00028"></a>00028 <span class="keyword">namespace </span>itk
<a name="l00029"></a>00029 {
<a name="l00030"></a>00030 
<a name="l00101"></a>00101 <span class="keyword">template</span> &lt;
<a name="l00102"></a>00102   <span class="keyword">class </span>TLevelSet, 
<a name="l00103"></a>00103   <span class="keyword">class </span>TSpeedImage = Image&lt;float,::itk::GetImageDimension&lt;TLevelSet&gt;::ImageDimension&gt; &gt;
<a name="l00104"></a><a class="code" href="classitk_1_1FastMarchingImageFilter.html">00104</a> <span class="keyword">class </span><a class="code" href="itkWin32Header_8h.html#7d4384322557205d75f0719c012dded6">ITK_EXPORT</a> <a class="code" href="classitk_1_1FastMarchingImageFilter.html" title="Solve an Eikonal equation using Fast Marching.">FastMarchingImageFilter</a> :
<a name="l00105"></a>00105     <span class="keyword">public</span> <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>&lt;TSpeedImage,TLevelSet&gt;
<a name="l00106"></a>00106 {
<a name="l00107"></a>00107 <span class="keyword">public</span>:
<a name="l00109"></a><a class="code" href="classitk_1_1FastMarchingImageFilter.html#60d9193e24a10b5f2334231c7f53a68e">00109</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1FastMarchingImageFilter.html" title="Solve an Eikonal equation using Fast Marching.">FastMarchingImageFilter</a>   <a class="code" href="classitk_1_1LightObject.html" title="Light weight base class for most itk classes.">Self</a>;
<a name="l00110"></a><a class="code" href="classitk_1_1FastMarchingImageFilter.html#6a275f93c8b568906702ef91a9ef9050">00110</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1ImageSource.html">ImageSource&lt;TLevelSet&gt;</a>    <a class="code" href="classitk_1_1LightObject.html" title="Light weight base class for most itk classes.">Superclass</a>;
<a name="l00111"></a><a class="code" href="classitk_1_1FastMarchingImageFilter.html#2633596860f5f745c5c45f8cfe60518b">00111</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="l00112"></a><a class="code" href="classitk_1_1FastMarchingImageFilter.html#9509d1d6de9057dbc58cf32fee28bd12">00112</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="l00113"></a>00113 
<a name="l00115"></a>00115   <a class="code" href="itkMacro_8h.html#0fdc15685afa271857c57e7cd482f30c">itkNewMacro</a>(<a class="code" href="classitk_1_1LightObject.html" title="Light weight base class for most itk classes.">Self</a>);
<a name="l00116"></a>00116 
<a name="l00118"></a><a class="code" href="classitk_1_1FastMarchingImageFilter.html#46cd633c8b97246a22fe08a5be8913ee">00118</a>   <a class="code" href="itkMacro_8h.html#574c1f86661d409dd32c742307a0e96a">itkTypeMacro</a>(<a class="code" href="classitk_1_1FastMarchingImageFilter.html" title="Solve an Eikonal equation using Fast Marching.">FastMarchingImageFilter</a>, <a class="code" href="classitk_1_1ImageSource.html" title="Base class for all process objects that output image data.">ImageSource</a>);
<a name="l00119"></a>00119 
<a name="l00121"></a>00121   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1LevelSetTypeDefault.html" title="Level set type information.">LevelSetTypeDefault&lt;TLevelSet&gt;</a>              <a class="code" href="classitk_1_1LevelSetTypeDefault.html" title="Level set type information.">LevelSetType</a>;
<a name="l00122"></a><a class="code" href="classitk_1_1FastMarchingImageFilter.html#536b0fe23871c3920a74839bae6da66e">00122</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> LevelSetType::LevelSetImageType    LevelSetImageType;
<a name="l00123"></a><a class="code" href="classitk_1_1FastMarchingImageFilter.html#b2b1c2cb17ce8548c40eb884b37b5d96">00123</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> LevelSetType::LevelSetPointer      LevelSetPointer;
<a name="l00124"></a><a class="code" href="classitk_1_1FastMarchingImageFilter.html#17e637ac554eb0e20e4a72c3b20eb5be">00124</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> LevelSetType::PixelType            PixelType;
<a name="l00125"></a><a class="code" href="classitk_1_1FastMarchingImageFilter.html#7b1647134577d1ce1a6587113ce86c3b">00125</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1LevelSetNode.html">LevelSetType::NodeType</a>             <a class="code" href="classitk_1_1LevelSetNode.html">NodeType</a>;
<a name="l00126"></a><a class="code" href="classitk_1_1FastMarchingImageFilter.html#6923ff3f705782d5c7ad05ab0135b1d5">00126</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1VectorContainer.html">LevelSetType::NodeContainer</a>        <a class="code" href="classitk_1_1VectorContainer.html">NodeContainer</a>;
<a name="l00127"></a><a class="code" href="classitk_1_1FastMarchingImageFilter.html#0ce9480ad4dc95b8e72f2a6c93db1693">00127</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">LevelSetType::NodeContainerPointer</a> <a class="code" href="classitk_1_1SmartPointer.html">NodeContainerPointer</a>;
<a name="l00128"></a><a class="code" href="classitk_1_1FastMarchingImageFilter.html#8b241d6426a884b46f7d17c7613c8d4e">00128</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#5bf82236e1e50e653de84c8ead448599">LevelSetImageType::SizeType</a>        OutputSizeType;
<a name="l00129"></a><a class="code" href="classitk_1_1FastMarchingImageFilter.html#3b753c728db29b726b793815893755db">00129</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ed8c4a40607d317c666eb96ea265e126">LevelSetImageType::RegionType</a>      OutputRegionType;
<a name="l00130"></a><a class="code" href="classitk_1_1FastMarchingImageFilter.html#a74901c9e9efbc856646c1d49a712787">00130</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> LevelSetImageType::SpacingType     OutputSpacingType;
<a name="l00131"></a><a class="code" href="classitk_1_1FastMarchingImageFilter.html#c81460877eb24fb86732b1520343d707">00131</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> LevelSetImageType::DirectionType   OutputDirectionType;
<a name="l00132"></a><a class="code" href="classitk_1_1FastMarchingImageFilter.html#41c7279f4746322b6bdf5f18a5b776a6">00132</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> LevelSetImageType::PointType       OutputPointType;
<a name="l00133"></a>00133 
<a name="l00134"></a><a class="code" href="classitk_1_1FastMarchingImageFilter_1_1AxisNodeType.html">00134</a>   <span class="keyword">class </span><a class="code" href="classitk_1_1FastMarchingImageFilter_1_1AxisNodeType.html">AxisNodeType</a> : <span class="keyword">public</span> <a class="code" href="classitk_1_1LevelSetNode.html">NodeType</a>
<a name="l00135"></a>00135     {
<a name="l00136"></a>00136     <span class="keyword">public</span>:
<a name="l00137"></a><a class="code" href="classitk_1_1FastMarchingImageFilter_1_1AxisNodeType.html#10fb5635dfc7e18f7e5af22498f1b670">00137</a>       <span class="keywordtype">int</span> <a class="code" href="classitk_1_1FastMarchingImageFilter_1_1AxisNodeType.html#10fb5635dfc7e18f7e5af22498f1b670">GetAxis</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_Axis; }
<a name="l00138"></a><a class="code" href="classitk_1_1FastMarchingImageFilter_1_1AxisNodeType.html#f686780010e6baebcdfdbd297e484fdd">00138</a>       <span class="keywordtype">void</span> <a class="code" href="classitk_1_1FastMarchingImageFilter_1_1AxisNodeType.html#f686780010e6baebcdfdbd297e484fdd">SetAxis</a>( <span class="keywordtype">int</span> axis ) { m_Axis = axis; }
<a name="l00139"></a><a class="code" href="classitk_1_1FastMarchingImageFilter_1_1AxisNodeType.html#679bf6df3ce424b7a03163a5703d2c57">00139</a>       <span class="keyword">const</span> <a class="code" href="classitk_1_1FastMarchingImageFilter_1_1AxisNodeType.html">AxisNodeType</a> &amp; operator=(<span class="keyword">const</span> <a class="code" href="classitk_1_1LevelSetNode.html">NodeType</a> &amp; node)
<a name="l00140"></a>00140       { this-&gt;NodeType::operator=(node); <span class="keywordflow">return</span> *<span class="keyword">this</span>; }
<a name="l00141"></a>00141     <span class="keyword">private</span>:
<a name="l00142"></a>00142       <span class="keywordtype">int</span> m_Axis;
<a name="l00143"></a>00143   };
<a name="l00144"></a>00144 
<a name="l00146"></a><a class="code" href="classitk_1_1FastMarchingImageFilter.html#9964724b5012a1474de86df35649392c">00146</a>   <span class="keyword">typedef</span> TSpeedImage SpeedImageType;
<a name="l00147"></a>00147 
<a name="l00149"></a><a class="code" href="classitk_1_1FastMarchingImageFilter.html#90eef344b55abbf96eaf7f7e52c64fbd">00149</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="itkFEMMacro_8h.html#539cce1a3282ba59952dedcbf9cdb23f">SpeedImageType::Pointer</a>        SpeedImagePointer;
<a name="l00150"></a><a class="code" href="classitk_1_1FastMarchingImageFilter.html#791380b17ad6ff986da7d4ad1e52017e">00150</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="itkFEMMacro_8h.html#68fafcc6909430ccd70cbc4aeee0107c">SpeedImageType::ConstPointer</a>   SpeedImageConstPointer;
<a name="l00151"></a>00151 
<a name="l00153"></a>00153   <a class="code" href="itkMacro_8h.html#1905cf6b2e88235996fa7ff73b2fb0eb">itkStaticConstMacro</a>(SetDimension, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>,
<a name="l00154"></a>00154                       LevelSetType::SetDimension);
<a name="l00155"></a>00155   <a class="code" href="itkMacro_8h.html#1905cf6b2e88235996fa7ff73b2fb0eb">itkStaticConstMacro</a>(SpeedImageDimension, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>,
<a name="l00156"></a>00156                       SpeedImageType::ImageDimension);
<a name="l00158"></a>00158 
<a name="l00160"></a><a class="code" href="classitk_1_1FastMarchingImageFilter.html#fb6f4c49629366a8e2967fa1a9b98fcb">00160</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Index.html" title="Represent a n-dimensional index in a n-dimensional image.">Index&lt;itkGetStaticConstMacro(SetDimension)&gt;</a> <a class="code" href="classitk_1_1Index.html" title="Represent a n-dimensional index in a n-dimensional image.">IndexType</a>;
<a name="l00161"></a>00161 
<a name="l00166"></a><a class="code" href="classitk_1_1FastMarchingImageFilter.html#3e8bce70d066e3a67abb3aafaa1a2e2dd5bde3f5b8f6c3f1a4a35f51b4eecfbf">00166</a>   <span class="keyword">enum</span> <a class="code" href="classitk_1_1FastMarchingImageFilter.html#3e8bce70d066e3a67abb3aafaa1a2e2d">LabelType</a> { FarPoint, AlivePoint, TrialPoint };
<a name="l00167"></a>00167 
<a name="l00169"></a><a class="code" href="classitk_1_1FastMarchingImageFilter.html#2d8710317c6b0866931f84dc08ef0332">00169</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">Image&lt;unsigned char, itkGetStaticConstMacro(SetDimension)&gt;</a> <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">LabelImageType</a>;
<a name="l00170"></a>00170 
<a name="l00172"></a><a class="code" href="classitk_1_1FastMarchingImageFilter.html#52ee3ae8e8266475e5c140ed5cf99553">00172</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">LabelImageType::Pointer</a> <a class="code" href="classitk_1_1SmartPointer.html">LabelImagePointer</a>;
<a name="l00173"></a>00173 
<a name="l00176"></a><a class="code" href="classitk_1_1FastMarchingImageFilter.html#9441e9c9e9444661fe8e2eea9e69b948">00176</a>   <span class="keywordtype">void</span> SetAlivePoints( <a class="code" href="classitk_1_1VectorContainer.html">NodeContainer</a> * points )
<a name="l00177"></a>00177     { 
<a name="l00178"></a>00178     m_AlivePoints = points; 
<a name="l00179"></a>00179     this-&gt;Modified(); 
<a name="l00180"></a>00180     }
<a name="l00182"></a>00182 
<a name="l00184"></a><a class="code" href="classitk_1_1FastMarchingImageFilter.html#407dc38c40a70d3f613c55e466e32e8f">00184</a>   <a class="code" href="classitk_1_1SmartPointer.html">NodeContainerPointer</a> GetAlivePoints( )
<a name="l00185"></a>00185     {
<a name="l00186"></a>00186     <span class="keywordflow">return</span> m_AlivePoints;
<a name="l00187"></a>00187     }
<a name="l00188"></a>00188 
<a name="l00191"></a><a class="code" href="classitk_1_1FastMarchingImageFilter.html#ce9631ea63197e03715826864ce86e50">00191</a>   <span class="keywordtype">void</span> SetTrialPoints( <a class="code" href="classitk_1_1VectorContainer.html">NodeContainer</a> * points )
<a name="l00192"></a>00192     { 
<a name="l00193"></a>00193     m_TrialPoints = points;
<a name="l00194"></a>00194     this-&gt;Modified();
<a name="l00195"></a>00195     }
<a name="l00197"></a>00197 
<a name="l00199"></a><a class="code" href="classitk_1_1FastMarchingImageFilter.html#b63faf637bc33d49b05999542aa5e2f0">00199</a>   <a class="code" href="classitk_1_1SmartPointer.html">NodeContainerPointer</a> GetTrialPoints( )
<a name="l00200"></a>00200     {
<a name="l00201"></a>00201     <span class="keywordflow">return</span> m_TrialPoints;
<a name="l00202"></a>00202     }
<a name="l00203"></a>00203 
<a name="l00205"></a><a class="code" href="classitk_1_1FastMarchingImageFilter.html#08e08e7cac286ad84949d0918795beb2">00205</a>   <a class="code" href="classitk_1_1SmartPointer.html">LabelImagePointer</a> GetLabelImage()<span class="keyword"> const</span>
<a name="l00206"></a>00206 <span class="keyword">    </span>{
<a name="l00207"></a>00207     <span class="keywordflow">return</span> m_LabelImage;
<a name="l00208"></a>00208     }
<a name="l00209"></a>00209 
<a name="l00213"></a><a class="code" href="classitk_1_1FastMarchingImageFilter.html#4d9c6e86e4823a49f2ed594aeba7d55c">00213</a>   <span class="keywordtype">void</span> SetSpeedConstant( <span class="keywordtype">double</span> value )
<a name="l00214"></a>00214     {
<a name="l00215"></a>00215     m_SpeedConstant = value;
<a name="l00216"></a>00216     m_InverseSpeed = -1.0 * vnl_math_sqr( 1.0 / m_SpeedConstant );
<a name="l00217"></a>00217     this-&gt;Modified();
<a name="l00218"></a>00218     }
<a name="l00220"></a>00220 
<a name="l00222"></a>00222   <a class="code" href="itkMacro_8h.html#7d989c13a1a213168db99ae0f84185d4">itkGetConstReferenceMacro</a>( SpeedConstant, <span class="keywordtype">double</span> );
<a name="l00223"></a>00223 
<a name="l00228"></a>00228   <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>( NormalizationFactor, <span class="keywordtype">double</span> );
<a name="l00229"></a>00229   <a class="code" href="itkMacro_8h.html#1600305bb01e39e87c472d8bf29bd1cf">itkGetMacro</a>( NormalizationFactor, <span class="keywordtype">double</span> );
<a name="l00231"></a>00231 
<a name="l00235"></a>00235   <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>( StoppingValue, <span class="keywordtype">double</span> );
<a name="l00236"></a>00236 
<a name="l00238"></a>00238   <a class="code" href="itkMacro_8h.html#7d989c13a1a213168db99ae0f84185d4">itkGetConstReferenceMacro</a>( StoppingValue, <span class="keywordtype">double</span> );
<a name="l00239"></a>00239 
<a name="l00244"></a>00244   <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>( CollectPoints, <span class="keywordtype">bool</span> );
<a name="l00245"></a>00245 
<a name="l00247"></a>00247   <a class="code" href="itkMacro_8h.html#7d989c13a1a213168db99ae0f84185d4">itkGetConstReferenceMacro</a>( CollectPoints, <span class="keywordtype">bool</span> );
<a name="l00248"></a>00248   <a class="code" href="itkMacro_8h.html#9e7d129ffebb09fd28bc213e02d87248">itkBooleanMacro</a>( CollectPoints );
<a name="l00250"></a>00250 
<a name="l00255"></a><a class="code" href="classitk_1_1FastMarchingImageFilter.html#797e5fab0b6d3bb5ffed71dd0b009eda">00255</a>   <a class="code" href="classitk_1_1SmartPointer.html">NodeContainerPointer</a> GetProcessedPoints()<span class="keyword"> const</span>
<a name="l00256"></a>00256 <span class="keyword">    </span>{
<a name="l00257"></a>00257     <span class="keywordflow">return</span> m_ProcessedPoints;
<a name="l00258"></a>00258     }
<a name="l00259"></a>00259 
<a name="l00266"></a><a class="code" href="classitk_1_1FastMarchingImageFilter.html#f1455e604d57163bfa63d11d87ba9dc6">00266</a>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetOutputSize( <span class="keyword">const</span> OutputSizeType&amp; size )
<a name="l00267"></a>00267   { m_OutputRegion = size; }
<a name="l00268"></a><a class="code" href="classitk_1_1FastMarchingImageFilter.html#3ee4a4ede5a45df39b073714650e9bbb">00268</a>   <span class="keyword">virtual</span> OutputSizeType GetOutputSize()<span class="keyword"> const</span>
<a name="l00269"></a>00269 <span class="keyword">  </span>{ <span class="keywordflow">return</span> m_OutputRegion.GetSize(); }
<a name="l00270"></a>00270   <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>( OutputRegion, OutputRegionType );
<a name="l00271"></a>00271   <a class="code" href="itkMacro_8h.html#7d989c13a1a213168db99ae0f84185d4">itkGetConstReferenceMacro</a>( OutputRegion, OutputRegionType );
<a name="l00272"></a>00272   <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>( OutputSpacing, OutputSpacingType );
<a name="l00273"></a>00273   <a class="code" href="itkMacro_8h.html#7d989c13a1a213168db99ae0f84185d4">itkGetConstReferenceMacro</a>( OutputSpacing, OutputSpacingType );
<a name="l00274"></a>00274   <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>( OutputDirection, OutputDirectionType );
<a name="l00275"></a>00275   <a class="code" href="itkMacro_8h.html#7d989c13a1a213168db99ae0f84185d4">itkGetConstReferenceMacro</a>( OutputDirection, OutputDirectionType );
<a name="l00276"></a>00276   <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>( OutputOrigin, OutputPointType );
<a name="l00277"></a>00277   <a class="code" href="itkMacro_8h.html#7d989c13a1a213168db99ae0f84185d4">itkGetConstReferenceMacro</a>( OutputOrigin, OutputPointType );
<a name="l00278"></a>00278   <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>( OverrideOutputInformation, <span class="keywordtype">bool</span> );
<a name="l00279"></a>00279   <a class="code" href="itkMacro_8h.html#7d989c13a1a213168db99ae0f84185d4">itkGetConstReferenceMacro</a>( OverrideOutputInformation, <span class="keywordtype">bool</span> );
<a name="l00280"></a>00280   <a class="code" href="itkMacro_8h.html#9e7d129ffebb09fd28bc213e02d87248">itkBooleanMacro</a>( OverrideOutputInformation );
<a name="l00282"></a>00282 
<a name="l00283"></a>00283 <span class="preprocessor">#ifdef ITK_USE_CONCEPT_CHECKING</span>
<a name="l00284"></a>00284 <span class="preprocessor"></span>
<a name="l00285"></a>00285   <a class="code" href="itkConceptChecking_8h.html#009eae6c305d9c390972159815e6a710">itkConceptMacro</a>(SameDimensionCheck,
<a name="l00286"></a>00286     (<a class="code" href="structitk_1_1Concept_1_1SameDimension.html">Concept::SameDimension&lt;SetDimension, SpeedImageDimension&gt;</a>));
<a name="l00287"></a>00287   <a class="code" href="itkConceptChecking_8h.html#009eae6c305d9c390972159815e6a710">itkConceptMacro</a>(SpeedConvertibleToDoubleCheck,
<a name="l00288"></a>00288     (<a class="code" href="structitk_1_1Concept_1_1Convertible.html">Concept::Convertible&lt;typename TSpeedImage::PixelType, double&gt;</a>));
<a name="l00289"></a>00289   <a class="code" href="itkConceptChecking_8h.html#009eae6c305d9c390972159815e6a710">itkConceptMacro</a>(DoubleConvertibleToLevelSetCheck,
<a name="l00290"></a>00290     (<a class="code" href="structitk_1_1Concept_1_1Convertible.html">Concept::Convertible&lt;double, PixelType&gt;</a>));
<a name="l00291"></a>00291   <a class="code" href="itkConceptChecking_8h.html#009eae6c305d9c390972159815e6a710">itkConceptMacro</a>(LevelSetOStreamWritableCheck,
<a name="l00292"></a>00292     (<a class="code" href="structitk_1_1Concept_1_1OStreamWritable.html">Concept::OStreamWritable&lt;PixelType&gt;</a>));
<a name="l00293"></a>00293 
<a name="l00295"></a>00295 <span class="preprocessor">#endif</span>
<a name="l00296"></a>00296 <span class="preprocessor"></span>
<a name="l00297"></a>00297 <span class="keyword">protected</span>:
<a name="l00298"></a>00298   <a class="code" href="classitk_1_1FastMarchingImageFilter.html" title="Solve an Eikonal equation using Fast Marching.">FastMarchingImageFilter</a>();
<a name="l00299"></a><a class="code" href="classitk_1_1FastMarchingImageFilter.html#aec08d7e0c2952cb12b6f0d0e8833648">00299</a>   <a class="code" href="classitk_1_1FastMarchingImageFilter.html#aec08d7e0c2952cb12b6f0d0e8833648">~FastMarchingImageFilter</a>(){};
<a name="l00300"></a>00300   <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="l00301"></a>00301 
<a name="l00302"></a>00302   <span class="keyword">virtual</span> <span class="keywordtype">void</span> Initialize( LevelSetImageType * );
<a name="l00303"></a>00303   <span class="keyword">virtual</span> <span class="keywordtype">void</span> UpdateNeighbors( <span class="keyword">const</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#be32dc19e71d40322ad9828b9ab40853">IndexType</a>&amp; index, 
<a name="l00304"></a>00304                                 <span class="keyword">const</span> SpeedImageType *, LevelSetImageType * );
<a name="l00305"></a>00305   <span class="keyword">virtual</span> <span class="keywordtype">double</span> UpdateValue( <span class="keyword">const</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#be32dc19e71d40322ad9828b9ab40853">IndexType</a>&amp; index, 
<a name="l00306"></a>00306                               <span class="keyword">const</span> SpeedImageType *, LevelSetImageType * );
<a name="l00307"></a>00307 
<a name="l00308"></a>00308 
<a name="l00309"></a><a class="code" href="classitk_1_1FastMarchingImageFilter.html#f0b2dc1f05e95c3adce0f3a4837d807b">00309</a>   <span class="keyword">const</span> AxisNodeType&amp; GetNodeUsedInCalculation(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> idx)<span class="keyword"> const</span>
<a name="l00310"></a>00310 <span class="keyword">  </span>{ <span class="keywordflow">return</span> m_NodesUsed[idx]; }
<a name="l00311"></a>00311 
<a name="l00312"></a>00312   <span class="keywordtype">void</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#f75a5945cdd8315676941024a0b8c1e9">GenerateData</a>();
<a name="l00313"></a>00313 
<a name="l00315"></a>00315   <span class="keyword">virtual</span> <span class="keywordtype">void</span> GenerateOutputInformation();
<a name="l00316"></a>00316   <span class="keyword">virtual</span> <span class="keywordtype">void</span> EnlargeOutputRequestedRegion(<a class="code" href="classitk_1_1DataObject.html" title="Base class for all data objects in ITK.">DataObject</a> *output);
<a name="l00318"></a>00318 
<a name="l00323"></a><a class="code" href="classitk_1_1FastMarchingImageFilter.html#0257a01e7af623ec6b6680dd88fe07db">00323</a>   <a class="code" href="itkMacro_8h.html#7d989c13a1a213168db99ae0f84185d4">itkGetConstReferenceMacro</a>( LargeValue, PixelType );
<a name="l00324"></a>00324 
<a name="l00325"></a>00325   OutputRegionType                              m_BufferedRegion;
<a name="l00326"></a><a class="code" href="classitk_1_1FastMarchingImageFilter.html#2209bc241a63c985c1a8d4967d93b5db">00326</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#be32dc19e71d40322ad9828b9ab40853">LevelSetImageType::IndexType</a> LevelSetIndexType;
<a name="l00327"></a><a class="code" href="classitk_1_1FastMarchingImageFilter.html#e4e6cc49847ad26f7788ade0bbebb253">00327</a>   LevelSetIndexType                             m_StartIndex;
<a name="l00328"></a><a class="code" href="classitk_1_1FastMarchingImageFilter.html#ff218079ccba57aa7323bcfbf16b824a">00328</a>   LevelSetIndexType                             m_LastIndex;
<a name="l00329"></a>00329 
<a name="l00330"></a>00330   <a class="code" href="itkMacro_8h.html#7d989c13a1a213168db99ae0f84185d4">itkGetConstReferenceMacro</a>( StartIndex, LevelSetIndexType );
<a name="l00331"></a>00331   <a class="code" href="itkMacro_8h.html#7d989c13a1a213168db99ae0f84185d4">itkGetConstReferenceMacro</a>( LastIndex, LevelSetIndexType );
<a name="l00332"></a>00332 
<a name="l00333"></a>00333 <span class="keyword">private</span>:
<a name="l00334"></a>00334   <a class="code" href="classitk_1_1FastMarchingImageFilter.html" title="Solve an Eikonal equation using Fast Marching.">FastMarchingImageFilter</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="l00335"></a>00335   <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="l00336"></a>00336   
<a name="l00337"></a>00337   <a class="code" href="classitk_1_1SmartPointer.html">NodeContainerPointer</a>                          m_AlivePoints;
<a name="l00338"></a>00338   <a class="code" href="classitk_1_1SmartPointer.html">NodeContainerPointer</a>                          m_TrialPoints;
<a name="l00339"></a>00339 
<a name="l00340"></a>00340   <a class="code" href="classitk_1_1SmartPointer.html">LabelImagePointer</a>                             m_LabelImage;
<a name="l00341"></a>00341   
<a name="l00342"></a>00342   <span class="keywordtype">double</span>                                        m_SpeedConstant;
<a name="l00343"></a>00343   <span class="keywordtype">double</span>                                        m_InverseSpeed;
<a name="l00344"></a>00344   <span class="keywordtype">double</span>                                        m_StoppingValue;
<a name="l00345"></a>00345     
<a name="l00346"></a>00346   <span class="keywordtype">bool</span>                                          m_CollectPoints;
<a name="l00347"></a>00347   <a class="code" href="classitk_1_1SmartPointer.html">NodeContainerPointer</a>                          m_ProcessedPoints;
<a name="l00348"></a>00348 
<a name="l00349"></a>00349   OutputRegionType                              m_OutputRegion;
<a name="l00350"></a>00350   OutputPointType                               m_OutputOrigin;
<a name="l00351"></a>00351   OutputSpacingType                             m_OutputSpacing;
<a name="l00352"></a>00352   OutputDirectionType                           m_OutputDirection;
<a name="l00353"></a>00353   <span class="keywordtype">bool</span>                                          m_OverrideOutputInformation;
<a name="l00354"></a>00354 
<a name="l00355"></a>00355 
<a name="l00356"></a>00356   <span class="keyword">typename</span> LevelSetImageType::PixelType         m_LargeValue;
<a name="l00357"></a>00357   AxisNodeType                                  m_NodesUsed[SetDimension];
<a name="l00358"></a>00358 
<a name="l00362"></a>00362   <span class="keyword">typedef</span> std::vector&lt;AxisNodeType&gt;  HeapContainer;
<a name="l00363"></a>00363   <span class="keyword">typedef</span> std::greater&lt;AxisNodeType&gt; NodeComparer;
<a name="l00364"></a>00364   <span class="keyword">typedef</span> std::priority_queue&lt; AxisNodeType, HeapContainer, NodeComparer &gt;
<a name="l00365"></a>00365                                      HeapType;
<a name="l00366"></a>00366 
<a name="l00367"></a>00367   HeapType    m_TrialHeap;
<a name="l00368"></a>00368 
<a name="l00369"></a>00369   <span class="keywordtype">double</span>    m_NormalizationFactor;
<a name="l00370"></a>00370 };
<a name="l00371"></a>00371 
<a name="l00372"></a>00372 } <span class="comment">// namespace itk</span>
<a name="l00373"></a>00373 
<a name="l00374"></a>00374 
<a name="l00375"></a>00375 <span class="preprocessor">#ifndef ITK_MANUAL_INSTANTIATION</span>
<a name="l00376"></a>00376 <span class="preprocessor"></span><span class="preprocessor">#include "itkFastMarchingImageFilter.txx"</span>
<a name="l00377"></a>00377 <span class="preprocessor">#endif</span>
<a name="l00378"></a>00378 <span class="preprocessor"></span>
<a name="l00379"></a>00379 <span class="preprocessor">#endif</span>
<a name="l00380"></a>00380 <span class="preprocessor"></span>
</pre></div></div>
<hr><address><small>
Generated at Thu May 7 22:40: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>,
 &copy;&nbsp;1997-2000</small></address>
</body>
</html>