<!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: itkCollidingFrontsImageFilter.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>itkCollidingFrontsImageFilter.h</h1><a href="itkCollidingFrontsImageFilter_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: itkCollidingFrontsImageFilter.h,v $</span> <a name="l00005"></a>00005 <span class="comment"> Language: C++</span> <a name="l00006"></a>00006 <span class="comment"> Date: $Date: 2008-10-23 16:15:23 $</span> <a name="l00007"></a>00007 <span class="comment"> Version: $Revision: 1.3 $</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 <a name="l00018"></a>00018 <span class="preprocessor">#ifndef __itkCollidingFrontsImageFilter_h</span> <a name="l00019"></a>00019 <span class="preprocessor"></span><span class="preprocessor">#define __itkCollidingFrontsImageFilter_h</span> <a name="l00020"></a>00020 <span class="preprocessor"></span> <a name="l00021"></a>00021 <span class="preprocessor">#include "<a class="code" href="itkFastMarchingUpwindGradientImageFilter_8h.html">itkFastMarchingUpwindGradientImageFilter.h</a>"</span> <a name="l00022"></a>00022 <span class="preprocessor">#include "<a class="code" href="itkImageToImageFilter_8h.html">itkImageToImageFilter.h</a>"</span> <a name="l00023"></a>00023 <span class="preprocessor">#include "<a class="code" href="itkImage_8h.html">itkImage.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="l00055"></a>00055 <span class="keyword">template</span> <<span class="keyword">typename</span> TInputImage, <span class="keyword">typename</span> TOutputImage> <a name="l00056"></a><a class="code" href="classitk_1_1CollidingFrontsImageFilter.html">00056</a> <span class="keyword">class </span><a class="code" href="classitk_1_1CollidingFrontsImageFilter.html" title="Selects a region of space where two independent fronts run towards each other.">CollidingFrontsImageFilter</a> : <a name="l00057"></a>00057 <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>< TInputImage, TOutputImage > <a name="l00058"></a>00058 { <a name="l00059"></a>00059 <span class="keyword">public</span>: <a name="l00061"></a><a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#01ef3f6cd3372c383b7cf4294138b97f">00061</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1CollidingFrontsImageFilter.html" title="Selects a region of space where two independent fronts run towards each other.">CollidingFrontsImageFilter</a> <a class="code" href="classitk_1_1CollidingFrontsImageFilter.html" title="Selects a region of space where two independent fronts run towards each other.">Self</a>; <a name="l00062"></a><a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#0b752e43822e6aa4ae79275514a3ef60">00062</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1ImageToImageFilter.html">ImageToImageFilter< TInputImage, TOutputImage ></a> <a class="code" href="classitk_1_1ImageToImageFilter.html">Superclass</a>; <a name="l00063"></a><a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#4124eb29a3394d71af70d5dc4fb248b3">00063</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="l00064"></a><a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#f834f71a432cabd0837e437946347f19">00064</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="l00065"></a>00065 <a name="l00067"></a>00067 <a class="code" href="itkMacro_8h.html#0fdc15685afa271857c57e7cd482f30c">itkNewMacro</a>(<a class="code" href="classitk_1_1CollidingFrontsImageFilter.html" title="Selects a region of space where two independent fronts run towards each other.">Self</a>); <a name="l00068"></a>00068 <a name="l00070"></a><a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#88a413b8aa4a204106594dd1489e46c6">00070</a> <a class="code" href="itkMacro_8h.html#574c1f86661d409dd32c742307a0e96a">itkTypeMacro</a>(<a class="code" href="classitk_1_1CollidingFrontsImageFilter.html" title="Selects a region of space where two independent fronts run towards each other.">CollidingFrontsImageFilter</a>, <a class="code" href="classitk_1_1ImageToImageFilter.html" title="Base class for filters that take an image as input and produce an image as output...">ImageToImageFilter</a>); <a name="l00071"></a>00071 <a name="l00074"></a>00074 <span class="keyword">typedef</span> <span class="keyword">typename</span> TOutputImage::PixelType <a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#88a413b8aa4a204106594dd1489e46c6">OutputPixelType</a>; <a name="l00075"></a><a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#4b710bb715b8a6206f3621880e76e76c">00075</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> TInputImage::PixelType <a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#4b710bb715b8a6206f3621880e76e76c">InputPixelType</a>; <a name="l00076"></a><a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#bce2fecde81eee69bf3ab4392d14e3a8">00076</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> NumericTraits<InputPixelType>::RealType <a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#bce2fecde81eee69bf3ab4392d14e3a8">RealType</a>; <a name="l00077"></a>00077 <a name="l00080"></a>00080 <a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#1f56d0a96e3c3c140825a90ed39f8735">itkStaticConstMacro</a>(ImageDimension, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>, <a name="l00081"></a>00081 TOutputImage::ImageDimension); <a name="l00082"></a>00082 <a name="l00084"></a><a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#f3591d2893e69aed8f818c572ab6db0f">00084</a> <span class="keyword">typedef</span> TInputImage <a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#f3591d2893e69aed8f818c572ab6db0f">InputImageType</a>; <a name="l00085"></a><a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#7d8cb13a768066b0a546c1ddc2571837">00085</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="itkFEMMacro_8h.html#539cce1a3282ba59952dedcbf9cdb23f">InputImageType::Pointer</a> <a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#7d8cb13a768066b0a546c1ddc2571837">InputImagePointer</a>; <a name="l00086"></a><a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#b04b89c033af3d47224a3b056e3407fb">00086</a> <span class="keyword">typedef</span> TOutputImage <a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#b04b89c033af3d47224a3b056e3407fb">OutputImageType</a>; <a name="l00087"></a><a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#b97d7fa78dd341f9152570c1002ce918">00087</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="itkFEMMacro_8h.html#539cce1a3282ba59952dedcbf9cdb23f">OutputImageType::Pointer</a> <a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#b97d7fa78dd341f9152570c1002ce918">OutputImagePointer</a>; <a name="l00088"></a>00088 <a name="l00090"></a><a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#ee4a092e55d36da7b1a1ed0cbfc54daf">00090</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1ImageToImageFilter.html#add1fd8996ca1345aeebf25d1f34eecc">Superclass::OutputImageRegionType</a> <a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#ee4a092e55d36da7b1a1ed0cbfc54daf">OutputImageRegionType</a>; <a name="l00091"></a>00091 <a name="l00093"></a><a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#862e59045b890c97b70e3c1016e48468">00093</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1FastMarchingUpwindGradientImageFilter.html" title="Generates the upwind gradient field of fast marching arrival times.">itk::FastMarchingUpwindGradientImageFilter<TInputImage,TOutputImage></a> <a class="code" href="classitk_1_1FastMarchingUpwindGradientImageFilter.html" title="Generates the upwind gradient field of fast marching arrival times.">FastMarchingUpwindGradientImageFilterType</a>; <a name="l00094"></a>00094 <a name="l00096"></a>00096 <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1FastMarchingUpwindGradientImageFilter.html#68ba1670ff8dcee161493b459f67c674">FastMarchingUpwindGradientImageFilterType::PixelType</a> <a name="l00097"></a><a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#3550ff459169e56fa0aa620181b9eecb">00097</a> <a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#3550ff459169e56fa0aa620181b9eecb">PixelType</a>; <a name="l00098"></a>00098 <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1LevelSetNode.html">FastMarchingUpwindGradientImageFilterType::NodeType</a> <a name="l00099"></a><a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#0b5e36dd26cd2893baa310ca609c3333">00099</a> <a class="code" href="classitk_1_1LevelSetNode.html">NodeType</a>; <a name="l00100"></a>00100 <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1VectorContainer.html">FastMarchingUpwindGradientImageFilterType::NodeContainer</a> <a name="l00101"></a><a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#9e51f2b2a14d1f858e32dfefcf54b250">00101</a> <a class="code" href="classitk_1_1VectorContainer.html">NodeContainer</a>; <a name="l00102"></a>00102 <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">FastMarchingUpwindGradientImageFilterType::NodeContainerPointer</a> <a name="l00103"></a><a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#2c5c8a00ffd910c19002ab0cfb542282">00103</a> <a class="code" href="classitk_1_1SmartPointer.html">NodeContainerPointer</a>; <a name="l00104"></a>00104 <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">FastMarchingUpwindGradientImageFilterType::GradientImageType</a> <a name="l00105"></a><a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#2cd2649816196914be02b7558e1e600b">00105</a> <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">GradientImageType</a>; <a name="l00106"></a><a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#10a1e51b53d62bf168b6617134bdaf8a">00106</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1Index.html" title="Represent a n-dimensional index in a n-dimensional image.">FastMarchingUpwindGradientImageFilterType::IndexType</a> <a class="code" href="classitk_1_1Index.html" title="Represent a n-dimensional index in a n-dimensional image.">IndexType</a>; <a name="l00107"></a>00107 <a name="l00110"></a><a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#dc08de72221d45accce8794e0ec45123">00110</a> <span class="keywordtype">void</span> <a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#dc08de72221d45accce8794e0ec45123">SetSeedPoints1</a>( <a class="code" href="classitk_1_1VectorContainer.html">NodeContainer</a> * points ) <a name="l00111"></a>00111 { <a name="l00112"></a>00112 m_SeedPoints1 = points; <a name="l00113"></a>00113 this-><a class="code" href="classitk_1_1Object.html#33101e349626ac58ced6682b061d8277">Modified</a>(); <a name="l00114"></a>00114 } <a name="l00116"></a>00116 <a name="l00118"></a><a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#84c070108e09941ea07b634abb8612c6">00118</a> <a class="code" href="classitk_1_1SmartPointer.html">NodeContainerPointer</a> <a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#84c070108e09941ea07b634abb8612c6">GetSeedPoints1</a>( ) <a name="l00119"></a>00119 { <span class="keywordflow">return</span> m_SeedPoints1; } <a name="l00120"></a>00120 <a name="l00123"></a><a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#0fd6d88602fdeb0faaddfe42f5f6c663">00123</a> <span class="keywordtype">void</span> <a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#0fd6d88602fdeb0faaddfe42f5f6c663">SetSeedPoints2</a>( <a class="code" href="classitk_1_1VectorContainer.html">NodeContainer</a> * points ) <a name="l00124"></a>00124 { <a name="l00125"></a>00125 m_SeedPoints2 = points; <a name="l00126"></a>00126 this-><a class="code" href="classitk_1_1Object.html#33101e349626ac58ced6682b061d8277">Modified</a>(); <a name="l00127"></a>00127 } <a name="l00129"></a>00129 <a name="l00131"></a><a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#aecbff0632add31c0f89815dcd9b68fd">00131</a> <a class="code" href="classitk_1_1SmartPointer.html">NodeContainerPointer</a> <a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#aecbff0632add31c0f89815dcd9b68fd">GetSeedPoints2</a>( ) <a name="l00132"></a>00132 { <span class="keywordflow">return</span> m_SeedPoints2; } <a name="l00133"></a>00133 <a name="l00134"></a>00134 <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>(NegativeEpsilon, <span class="keywordtype">double</span>); <a name="l00135"></a>00135 <a class="code" href="itkMacro_8h.html#1600305bb01e39e87c472d8bf29bd1cf">itkGetMacro</a>(NegativeEpsilon, <span class="keywordtype">double</span>); <a name="l00136"></a>00136 <a name="l00137"></a>00137 <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>(ApplyConnectivity, <span class="keywordtype">bool</span>); <a name="l00138"></a>00138 <a class="code" href="itkMacro_8h.html#1600305bb01e39e87c472d8bf29bd1cf">itkGetMacro</a>(ApplyConnectivity, <span class="keywordtype">bool</span>); <a name="l00139"></a>00139 <a class="code" href="itkMacro_8h.html#9e7d129ffebb09fd28bc213e02d87248">itkBooleanMacro</a>(ApplyConnectivity); <a name="l00140"></a>00140 <a name="l00141"></a>00141 <span class="preprocessor">#ifdef ITK_USE_CONCEPT_CHECKING</span> <a name="l00142"></a>00142 <span class="preprocessor"></span> <a name="l00143"></a>00143 <a class="code" href="itkConceptChecking_8h.html#009eae6c305d9c390972159815e6a710">itkConceptMacro</a>(InputHasNumericTraitsCheck, <a name="l00144"></a>00144 (<a class="code" href="structitk_1_1Concept_1_1HasNumericTraits.html">Concept::HasNumericTraits<InputPixelType></a>)); <a name="l00145"></a>00145 <a name="l00147"></a>00147 <span class="preprocessor">#endif</span> <a name="l00148"></a>00148 <span class="preprocessor"></span> <a name="l00149"></a>00149 <span class="keyword">protected</span>: <a name="l00150"></a>00150 <a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#32b1be709bed825abe3c33d85c795066">CollidingFrontsImageFilter</a>(); <a name="l00151"></a><a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#e402e9f481cd66c51eca76cbff9ae177">00151</a> <span class="keyword">virtual</span> <a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#e402e9f481cd66c51eca76cbff9ae177">~CollidingFrontsImageFilter</a>() {} <a name="l00152"></a>00152 <a name="l00153"></a>00153 <span class="keywordtype">void</span> <a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#adaff510d08447a72a8fe28bda4c724b">GenerateData</a>(); <a name="l00154"></a>00154 <a name="l00155"></a>00155 <span class="keywordtype">void</span> <a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#32f29fa88a938a6271734575829c5ee9">PrintSelf</a>(std::ostream&, <a class="code" href="classitk_1_1Indent.html" title="Control indentation during Print() invocation.">Indent</a>) <span class="keyword">const</span>; <a name="l00156"></a>00156 <a name="l00157"></a>00157 <span class="keyword">private</span>: <a name="l00158"></a>00158 <a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#32b1be709bed825abe3c33d85c795066">CollidingFrontsImageFilter</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#01ef3f6cd3372c383b7cf4294138b97f">Self</a>&); <span class="comment">//purposely not implemented</span> <a name="l00159"></a>00159 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#01ef3f6cd3372c383b7cf4294138b97f">Self</a>&); <span class="comment">//purposely not implemented</span> <a name="l00160"></a>00160 <a name="l00161"></a>00161 <a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#2c5c8a00ffd910c19002ab0cfb542282">NodeContainerPointer</a> m_SeedPoints1; <a name="l00162"></a>00162 <a class="code" href="classitk_1_1CollidingFrontsImageFilter.html#2c5c8a00ffd910c19002ab0cfb542282">NodeContainerPointer</a> m_SeedPoints2; <a name="l00163"></a>00163 <a name="l00164"></a>00164 <span class="keywordtype">bool</span> m_ApplyConnectivity; <a name="l00165"></a>00165 <a name="l00166"></a>00166 <span class="keywordtype">double</span> m_NegativeEpsilon; <a name="l00167"></a>00167 }; <a name="l00168"></a>00168 <a name="l00169"></a>00169 } <span class="comment">// end namespace itk</span> <a name="l00170"></a>00170 <a name="l00171"></a>00171 <span class="preprocessor">#ifndef ITK_MANUAL_INSTANTIATION</span> <a name="l00172"></a>00172 <span class="preprocessor"></span><span class="preprocessor">#include "itkCollidingFrontsImageFilter.txx"</span> <a name="l00173"></a>00173 <span class="preprocessor">#endif</span> <a name="l00174"></a>00174 <span class="preprocessor"></span> <a name="l00175"></a>00175 <span class="preprocessor">#endif</span> <a name="l00176"></a>00176 <span class="preprocessor"></span> </pre></div></div> <hr><address><small> Generated at Thu May 7 22:25:24 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>