<!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: itkNarrowBandThresholdSegmentationLevelSetImageFilter.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>itkNarrowBandThresholdSegmentationLevelSetImageFilter.h</h1><a href="itkNarrowBandThresholdSegmentationLevelSetImageFilter_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: itkNarrowBandThresholdSegmentationLevelSetImageFilter.h,v $</span> <a name="l00005"></a>00005 <span class="comment"> Language: C++</span> <a name="l00006"></a>00006 <span class="comment"> Date: $Date: 2009-01-26 21:45:53 $</span> <a name="l00007"></a>00007 <span class="comment"> Version: $Revision: 1.6 $</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 __itkNarrowBandThresholdSegmentationLevelSetImageFilter_h</span> <a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define __itkNarrowBandThresholdSegmentationLevelSetImageFilter_h</span> <a name="l00019"></a>00019 <span class="preprocessor"></span> <a name="l00020"></a>00020 <span class="preprocessor">#include "<a class="code" href="itkNarrowBandLevelSetImageFilter_8h.html">itkNarrowBandLevelSetImageFilter.h</a>"</span> <a name="l00021"></a>00021 <span class="preprocessor">#include "<a class="code" href="itkThresholdSegmentationLevelSetFunction_8h.html">itkThresholdSegmentationLevelSetFunction.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="l00081"></a>00081 <span class="keyword">template</span> <<span class="keyword">class </span>TInputImage, <a name="l00082"></a>00082 <span class="keyword">class </span>TFeatureImage, <a name="l00083"></a>00083 <span class="keyword">class </span>TOutputPixelType = <span class="keywordtype">float</span> > <a name="l00084"></a><a class="code" href="classitk_1_1NarrowBandThresholdSegmentationLevelSetImageFilter.html">00084</a> <span class="keyword">class </span><a class="code" href="itkWin32Header_8h.html#7d4384322557205d75f0719c012dded6">ITK_EXPORT</a> <a class="code" href="classitk_1_1NarrowBandThresholdSegmentationLevelSetImageFilter.html" title="Segments structures in images based on intensity values.">NarrowBandThresholdSegmentationLevelSetImageFilter</a> <a name="l00085"></a>00085 : <span class="keyword">public</span> <a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html" title="A base class which defines the API for implementing a special class of image segmentation...">NarrowBandLevelSetImageFilter</a><TInputImage, TFeatureImage, <a name="l00086"></a>00086 TOutputPixelType, Image<TOutputPixelType, <a name="l00087"></a>00087 ::itk::GetImageDimension<TInputImage>::ImageDimension> > <a name="l00088"></a>00088 { <a name="l00089"></a>00089 <span class="keyword">public</span>: <a name="l00091"></a><a class="code" href="classitk_1_1NarrowBandThresholdSegmentationLevelSetImageFilter.html#852a86e73c744501d2ddd90860002337">00091</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1NarrowBandThresholdSegmentationLevelSetImageFilter.html" title="Segments structures in images based on intensity values.">NarrowBandThresholdSegmentationLevelSetImageFilter</a> <a class="code" href="classitk_1_1NarrowBandThresholdSegmentationLevelSetImageFilter.html" title="Segments structures in images based on intensity values.">Self</a>; <a name="l00092"></a>00092 <span class="keyword">typedef</span> <a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html" title="A base class which defines the API for implementing a special class of image segmentation...">NarrowBandLevelSetImageFilter</a><TInputImage, TFeatureImage, TOutputPixelType, <a name="l00093"></a><a class="code" href="classitk_1_1NarrowBandThresholdSegmentationLevelSetImageFilter.html#376a0e1be62d2d185e382c81169089c4">00093</a> <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">Image<TOutputPixelType, ::itk::GetImageDimension<TInputImage>::ImageDimension</a>> > <a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html">Superclass</a>; <a name="l00094"></a><a class="code" href="classitk_1_1NarrowBandThresholdSegmentationLevelSetImageFilter.html#fad43b257bb945731f72a03bae854449">00094</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="l00095"></a><a class="code" href="classitk_1_1NarrowBandThresholdSegmentationLevelSetImageFilter.html#9f0bfdc04e5c9b667e3a552655439628">00095</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="l00096"></a>00096 <a name="l00098"></a><a class="code" href="classitk_1_1NarrowBandThresholdSegmentationLevelSetImageFilter.html#5386b4c596a13f8ef865ad76f8cfeb4f">00098</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::ValueType ValueType; <a name="l00099"></a><a class="code" href="classitk_1_1NarrowBandThresholdSegmentationLevelSetImageFilter.html#6d857b39c4fc3831d767d414309d5a86">00099</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.">Superclass::OutputImageType</a> <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">OutputImageType</a>; <a name="l00100"></a><a class="code" href="classitk_1_1NarrowBandThresholdSegmentationLevelSetImageFilter.html#8e722553696ea4ed9e128349fd50cc0d">00100</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::FeatureImageType FeatureImageType; <a name="l00101"></a>00101 <a name="l00103"></a>00103 <span class="keyword">typedef</span> <a class="code" href="classitk_1_1ThresholdSegmentationLevelSetFunction.html" title="This function is used in ThresholdSegmentationLevelSetImageFilter to segment structures...">ThresholdSegmentationLevelSetFunction</a><<a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">OutputImageType</a>, <a name="l00104"></a><a class="code" href="classitk_1_1NarrowBandThresholdSegmentationLevelSetImageFilter.html#aec7e21129f0936a1287f37db39826d3">00104</a> FeatureImageType> <a class="code" href="classitk_1_1ThresholdSegmentationLevelSetFunction.html" title="This function is used in ThresholdSegmentationLevelSetImageFilter to segment structures...">ThresholdFunctionType</a>; <a name="l00105"></a><a class="code" href="classitk_1_1NarrowBandThresholdSegmentationLevelSetImageFilter.html#529543edf75cd55e1be9e0c21b66aaa1">00105</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">ThresholdFunctionType::Pointer</a> <a class="code" href="classitk_1_1SmartPointer.html">ThresholdFunctionPointer</a>; <a name="l00106"></a>00106 <a name="l00108"></a>00108 <a class="code" href="itkMacro_8h.html#574c1f86661d409dd32c742307a0e96a">itkTypeMacro</a>(<a class="code" href="classitk_1_1NarrowBandThresholdSegmentationLevelSetImageFilter.html" title="Segments structures in images based on intensity values.">NarrowBandThresholdSegmentationLevelSetImageFilter</a>, <a class="code" href="classitk_1_1NarrowBandLevelSetImageFilter.html" title="A base class which defines the API for implementing a special class of image segmentation...">NarrowBandLevelSetImageFilter</a>); <a name="l00109"></a>00109 <a name="l00111"></a>00111 <a class="code" href="itkMacro_8h.html#0fdc15685afa271857c57e7cd482f30c">itkNewMacro</a>(<a class="code" href="classitk_1_1NarrowBandThresholdSegmentationLevelSetImageFilter.html" title="Segments structures in images based on intensity values.">Self</a>); <a name="l00112"></a>00112 <a name="l00114"></a><a class="code" href="classitk_1_1NarrowBandThresholdSegmentationLevelSetImageFilter.html#e069566c439caee6a4e572a0d8dc4247">00114</a> <span class="keywordtype">void</span> SetUpperThreshold(ValueType v) <a name="l00115"></a>00115 { <a name="l00116"></a>00116 this->m_ThresholdFunction->SetUpperThreshold(v); <a name="l00117"></a>00117 this->Modified(); <a name="l00118"></a>00118 } <a name="l00119"></a><a class="code" href="classitk_1_1NarrowBandThresholdSegmentationLevelSetImageFilter.html#4f6aeb2c331d421f25ba3481b1efc744">00119</a> <span class="keywordtype">void</span> SetLowerThreshold(ValueType v) <a name="l00120"></a>00120 { <a name="l00121"></a>00121 this->m_ThresholdFunction->SetLowerThreshold(v); <a name="l00122"></a>00122 this->Modified(); <a name="l00123"></a>00123 } <a name="l00124"></a><a class="code" href="classitk_1_1NarrowBandThresholdSegmentationLevelSetImageFilter.html#37b6a717bff3eddc7b8b759b64502639">00124</a> ValueType GetUpperThreshold()<span class="keyword"> const</span> <a name="l00125"></a>00125 <span class="keyword"> </span>{ <a name="l00126"></a>00126 <span class="keywordflow">return</span> m_ThresholdFunction->GetUpperThreshold(); <a name="l00127"></a>00127 } <a name="l00128"></a><a class="code" href="classitk_1_1NarrowBandThresholdSegmentationLevelSetImageFilter.html#3116ded89669c0796a32c4733cde4ab3">00128</a> ValueType GetLowerThreshold()<span class="keyword"> const</span> <a name="l00129"></a>00129 <span class="keyword"> </span>{ <a name="l00130"></a>00130 <span class="keywordflow">return</span> m_ThresholdFunction->GetLowerThreshold(); <a name="l00131"></a>00131 } <a name="l00133"></a>00133 <a name="l00136"></a><a class="code" href="classitk_1_1NarrowBandThresholdSegmentationLevelSetImageFilter.html#cd3540680591ad5175b0347a01a5e820">00136</a> <span class="keywordtype">void</span> SetEdgeWeight(ValueType v) <a name="l00137"></a>00137 { <a name="l00138"></a>00138 this->m_ThresholdFunction->SetEdgeWeight(v); <a name="l00139"></a>00139 this->Modified(); <a name="l00140"></a>00140 } <a name="l00141"></a><a class="code" href="classitk_1_1NarrowBandThresholdSegmentationLevelSetImageFilter.html#0f9b8f2d6494cc0c754b1a98511f34c3">00141</a> ValueType GetEdgeWeight()<span class="keyword"> const</span> <a name="l00142"></a>00142 <span class="keyword"> </span>{ <a name="l00143"></a>00143 <span class="keywordflow">return</span> m_ThresholdFunction->GetEdgeWeight(); <a name="l00144"></a>00144 } <a name="l00146"></a>00146 <a name="l00150"></a><a class="code" href="classitk_1_1NarrowBandThresholdSegmentationLevelSetImageFilter.html#c304b8ddceeabdf0d71070776fc7e654">00150</a> <span class="keywordtype">void</span> SetSmoothingIterations(<span class="keywordtype">int</span> v) <a name="l00151"></a>00151 { <a name="l00152"></a>00152 this->m_ThresholdFunction->SetSmoothingIterations(v); <a name="l00153"></a>00153 this->Modified(); <a name="l00154"></a>00154 } <a name="l00155"></a><a class="code" href="classitk_1_1NarrowBandThresholdSegmentationLevelSetImageFilter.html#923e1d1138f566f792f76794b7936ddb">00155</a> <span class="keywordtype">int</span> GetSmoothingIterations()<span class="keyword"> const</span> <a name="l00156"></a>00156 <span class="keyword"> </span>{ <a name="l00157"></a>00157 <span class="keywordflow">return</span> m_ThresholdFunction->GetSmoothingIterations(); <a name="l00158"></a>00158 } <a name="l00160"></a>00160 <a name="l00164"></a><a class="code" href="classitk_1_1NarrowBandThresholdSegmentationLevelSetImageFilter.html#6f88287e6acbfe177dbea1e220fabb1a">00164</a> <span class="keywordtype">void</span> SetSmoothingTimeStep(ValueType v) <a name="l00165"></a>00165 { <a name="l00166"></a>00166 this->m_ThresholdFunction->SetSmoothingTimeStep(v); <a name="l00167"></a>00167 this->Modified(); <a name="l00168"></a>00168 } <a name="l00169"></a><a class="code" href="classitk_1_1NarrowBandThresholdSegmentationLevelSetImageFilter.html#e7cc9dc7b08998a89563d2c9a7b9b475">00169</a> ValueType GetSmoothingTimeStep()<span class="keyword"> const</span> <a name="l00170"></a>00170 <span class="keyword"> </span>{ <a name="l00171"></a>00171 <span class="keywordflow">return</span> m_ThresholdFunction->GetSmoothingTimeStep(); <a name="l00172"></a>00172 } <a name="l00174"></a>00174 <a name="l00178"></a><a class="code" href="classitk_1_1NarrowBandThresholdSegmentationLevelSetImageFilter.html#f4beff1c4620bdee89c51afc47af5589">00178</a> <span class="keywordtype">void</span> SetSmoothingConductance(ValueType v) <a name="l00179"></a>00179 { <a name="l00180"></a>00180 this->m_ThresholdFunction->SetSmoothingConductance(v); <a name="l00181"></a>00181 this->Modified(); <a name="l00182"></a>00182 } <a name="l00183"></a><a class="code" href="classitk_1_1NarrowBandThresholdSegmentationLevelSetImageFilter.html#ffd65e097a66f873e3fe11a23824583b">00183</a> ValueType GetSmoothingConductance()<span class="keyword"> const</span> <a name="l00184"></a>00184 <span class="keyword"> </span>{ <a name="l00185"></a>00185 <span class="keywordflow">return</span> m_ThresholdFunction->GetSmoothingConductance(); <a name="l00186"></a>00186 } <a name="l00188"></a>00188 <a name="l00189"></a>00189 <span class="preprocessor">#ifdef ITK_USE_CONCEPT_CHECKING</span> <a name="l00190"></a>00190 <span class="preprocessor"></span> <a name="l00191"></a>00191 <a class="code" href="itkConceptChecking_8h.html#009eae6c305d9c390972159815e6a710">itkConceptMacro</a>(OutputHasNumericTraitsCheck, <a name="l00192"></a>00192 (<a class="code" href="structitk_1_1Concept_1_1HasNumericTraits.html">Concept::HasNumericTraits<TOutputPixelType></a>)); <a name="l00193"></a>00193 <a name="l00195"></a>00195 <span class="preprocessor">#endif</span> <a name="l00196"></a>00196 <span class="preprocessor"></span> <a name="l00197"></a>00197 <span class="keyword">protected</span>: <a name="l00198"></a><a class="code" href="classitk_1_1NarrowBandThresholdSegmentationLevelSetImageFilter.html#e9829812dd4bfbf2e1bab33c7a1c6bed">00198</a> <a class="code" href="classitk_1_1NarrowBandThresholdSegmentationLevelSetImageFilter.html#e9829812dd4bfbf2e1bab33c7a1c6bed">~NarrowBandThresholdSegmentationLevelSetImageFilter</a>() {} <a name="l00199"></a>00199 <a class="code" href="classitk_1_1NarrowBandThresholdSegmentationLevelSetImageFilter.html" title="Segments structures in images based on intensity values.">NarrowBandThresholdSegmentationLevelSetImageFilter</a>(); <a name="l00200"></a>00200 <a name="l00201"></a>00201 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#920ae03048a5ad715d803ca2e92b52de">PrintSelf</a>(std::ostream &os, <a class="code" href="classitk_1_1Indent.html" title="Control indentation during Print() invocation.">Indent</a> indent) <span class="keyword">const</span>; <a name="l00202"></a>00202 <a name="l00203"></a>00203 <a class="code" href="classitk_1_1NarrowBandThresholdSegmentationLevelSetImageFilter.html" title="Segments structures in images based on intensity values.">NarrowBandThresholdSegmentationLevelSetImageFilter</a>(<span class="keyword">const</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ac7d0120fe5292cdcdddb6163b8cb150">Self</a> &); <span class="comment">// purposely not impl.</span> <a name="l00204"></a>00204 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ac7d0120fe5292cdcdddb6163b8cb150">Self</a>&); <span class="comment">//purposely not implemented</span> <a name="l00205"></a>00205 <span class="keyword">private</span>: <a name="l00206"></a>00206 ThresholdFunctionPointer m_ThresholdFunction; <a name="l00207"></a>00207 }; <a name="l00208"></a>00208 <a name="l00209"></a>00209 } <span class="comment">// end namespace itk</span> <a name="l00210"></a>00210 <a name="l00211"></a>00211 <span class="preprocessor">#ifndef ITK_MANUAL_INSTANTIATION</span> <a name="l00212"></a>00212 <span class="preprocessor"></span><span class="preprocessor">#include "itkNarrowBandThresholdSegmentationLevelSetImageFilter.txx"</span> <a name="l00213"></a>00213 <span class="preprocessor">#endif</span> <a name="l00214"></a>00214 <span class="preprocessor"></span> <a name="l00215"></a>00215 <span class="preprocessor">#endif</span> <a name="l00216"></a>00216 <span class="preprocessor"></span> </pre></div></div> <hr><address><small> Generated at Thu May 7 23:38:18 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>