Sophie

Sophie

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

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: itkThresholdLabelerImageFilter.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_00ffda33c24cbbf617b202f4f3bcb7e8.html">BasicFilters</a>
  </div>
<div class="contents">
<h1>itkThresholdLabelerImageFilter.h</h1><a href="itkThresholdLabelerImageFilter_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: itkThresholdLabelerImageFilter.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-18 16:11:15 $</span>
<a name="l00007"></a>00007 <span class="comment">  Version:   $Revision: 1.10 $</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 __itkThresholdLabelerImageFilter_h</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define __itkThresholdLabelerImageFilter_h</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span>
<a name="l00020"></a>00020 <span class="preprocessor">#include "<a class="code" href="itkUnaryFunctorImageFilter_8h.html">itkUnaryFunctorImageFilter.h</a>"</span>
<a name="l00021"></a>00021 <span class="preprocessor">#include "<a class="code" href="itkConceptChecking_8h.html">itkConceptChecking.h</a>"</span>
<a name="l00022"></a>00022 <span class="preprocessor">#include "itkNumericTraits.h"</span>
<a name="l00023"></a>00023 
<a name="l00024"></a>00024 <span class="keyword">namespace </span>itk
<a name="l00025"></a>00025 {
<a name="l00026"></a>00026   
<a name="l00042"></a>00042 <span class="keyword">namespace </span>Functor {  
<a name="l00043"></a>00043   
<a name="l00044"></a>00044 <span class="keyword">template</span>&lt; <span class="keyword">class</span> TInput, <span class="keyword">class</span> TOutput &gt;
<a name="l00045"></a><a class="code" href="classitk_1_1Functor_1_1ThresholdLabeler.html">00045</a> <span class="keyword">class </span><a class="code" href="classitk_1_1Functor_1_1ThresholdLabeler.html">ThresholdLabeler</a>
<a name="l00046"></a>00046 {
<a name="l00047"></a>00047 <span class="keyword">public</span>:
<a name="l00048"></a><a class="code" href="classitk_1_1Functor_1_1ThresholdLabeler.html#d530ed49d366ba715698e2c8b7755221">00048</a>   <a class="code" href="classitk_1_1Functor_1_1ThresholdLabeler.html#d530ed49d366ba715698e2c8b7755221">ThresholdLabeler</a>() { m_LabelOffset = NumericTraits&lt;TOutput&gt;::One; }
<a name="l00049"></a><a class="code" href="classitk_1_1Functor_1_1ThresholdLabeler.html#23ad182426820cf7779c1530c9fb9bdf">00049</a>   <a class="code" href="classitk_1_1Functor_1_1ThresholdLabeler.html#23ad182426820cf7779c1530c9fb9bdf">~ThresholdLabeler</a>() {};
<a name="l00050"></a>00050 
<a name="l00051"></a>00051   <span class="keyword">typedef</span> <span class="keyword">typename</span> NumericTraits&lt; TInput &gt;::RealType <a class="code" href="classitk_1_1Functor_1_1ThresholdLabeler.html#90f28e1b4da06789f961657b1bd1001c">RealThresholdType</a>;
<a name="l00052"></a><a class="code" href="classitk_1_1Functor_1_1ThresholdLabeler.html#c8503fd15717a66eb67465bc82f65008">00052</a>   <span class="keyword">typedef</span> std::vector&lt;RealThresholdType&gt;             <a class="code" href="classitk_1_1Functor_1_1ThresholdLabeler.html#c8503fd15717a66eb67465bc82f65008">RealThresholdVector</a>;
<a name="l00053"></a>00053 
<a name="l00055"></a><a class="code" href="classitk_1_1Functor_1_1ThresholdLabeler.html#7fe20dc0dc682f9fb10b7dc0ba6c1f18">00055</a>   <span class="keywordtype">void</span> <a class="code" href="classitk_1_1Functor_1_1ThresholdLabeler.html#7fe20dc0dc682f9fb10b7dc0ba6c1f18">SetThresholds</a>( <span class="keyword">const</span> <a class="code" href="classitk_1_1Functor_1_1ThresholdLabeler.html#c8503fd15717a66eb67465bc82f65008">RealThresholdVector</a> &amp; thresholds )
<a name="l00056"></a>00056     { m_Thresholds = thresholds; }
<a name="l00057"></a>00057 
<a name="l00059"></a><a class="code" href="classitk_1_1Functor_1_1ThresholdLabeler.html#eea0f61cbf93c9e546394b645bf0ad9c">00059</a>   <span class="keywordtype">void</span> <a class="code" href="classitk_1_1Functor_1_1ThresholdLabeler.html#eea0f61cbf93c9e546394b645bf0ad9c">SetLabelOffset</a>( <span class="keyword">const</span> TOutput &amp; labelOffset )
<a name="l00060"></a>00060     { m_LabelOffset = labelOffset; }
<a name="l00061"></a>00061 
<a name="l00062"></a><a class="code" href="classitk_1_1Functor_1_1ThresholdLabeler.html#d97e9256a31fabec4ce7d4754a297549">00062</a>   <span class="keywordtype">bool</span> <a class="code" href="classitk_1_1Functor_1_1ThresholdLabeler.html#d97e9256a31fabec4ce7d4754a297549">operator!=</a>( <span class="keyword">const</span> <a class="code" href="classitk_1_1Functor_1_1ThresholdLabeler.html">ThresholdLabeler</a> &amp; other )<span class="keyword"> const</span>
<a name="l00063"></a>00063 <span class="keyword">    </span>{
<a name="l00064"></a>00064     <span class="keywordflow">if</span>( m_Thresholds != other.m_Thresholds ||
<a name="l00065"></a>00065         m_LabelOffset != other.m_LabelOffset )
<a name="l00066"></a>00066       {
<a name="l00067"></a>00067       <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00068"></a>00068       }
<a name="l00069"></a>00069     <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00070"></a>00070     }
<a name="l00071"></a><a class="code" href="classitk_1_1Functor_1_1ThresholdLabeler.html#c420f4e93185251243999b8d090f0752">00071</a>   <span class="keywordtype">bool</span> <a class="code" href="classitk_1_1Functor_1_1ThresholdLabeler.html#c420f4e93185251243999b8d090f0752">operator==</a>( <span class="keyword">const</span> <a class="code" href="classitk_1_1Functor_1_1ThresholdLabeler.html">ThresholdLabeler</a> &amp; other )<span class="keyword"> const</span>
<a name="l00072"></a>00072 <span class="keyword">    </span>{
<a name="l00073"></a>00073     <span class="keywordflow">return</span> !(*<span class="keyword">this</span> != other);
<a name="l00074"></a>00074     }
<a name="l00075"></a>00075 
<a name="l00076"></a><a class="code" href="classitk_1_1Functor_1_1ThresholdLabeler.html#c3d353312195eeee0e0ccd990d08b7c2">00076</a>   <span class="keyword">inline</span> TOutput <a class="code" href="classitk_1_1Functor_1_1ThresholdLabeler.html#c3d353312195eeee0e0ccd990d08b7c2">operator()</a>( <span class="keyword">const</span> TInput &amp; <a class="code" href="classA.html">A</a> )
<a name="l00077"></a>00077     {
<a name="l00078"></a>00078     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> size = m_Thresholds.size();
<a name="l00079"></a>00079     <span class="keywordflow">if</span> (size == 0)
<a name="l00080"></a>00080       {
<a name="l00081"></a>00081       <span class="keywordflow">return</span> m_LabelOffset;
<a name="l00082"></a>00082       }
<a name="l00083"></a>00083     <span class="keywordflow">if</span> (A &lt;= m_Thresholds[0])
<a name="l00084"></a>00084       {
<a name="l00085"></a>00085       <span class="keywordflow">return</span> m_LabelOffset;
<a name="l00086"></a>00086       }
<a name="l00087"></a>00087     <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i=0; i&lt;size-1; i++)
<a name="l00088"></a>00088       {
<a name="l00089"></a>00089       <span class="comment">/* Value is in this class if it equals the upper bound. */</span>
<a name="l00090"></a>00090       <span class="keywordflow">if</span> (m_Thresholds[i] &lt; A &amp;&amp; A &lt;= m_Thresholds[i+1])
<a name="l00091"></a>00091         {
<a name="l00092"></a>00092         <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span>TOutput<span class="keyword">&gt;</span>(i+1) + m_LabelOffset;
<a name="l00093"></a>00093         }
<a name="l00094"></a>00094       }
<a name="l00095"></a>00095     <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span>TOutput<span class="keyword">&gt;</span>(size) + m_LabelOffset;
<a name="l00096"></a>00096     }
<a name="l00097"></a>00097 
<a name="l00098"></a>00098 <span class="keyword">private</span>:
<a name="l00099"></a>00099 
<a name="l00100"></a>00100   <a class="code" href="classitk_1_1Functor_1_1ThresholdLabeler.html#c8503fd15717a66eb67465bc82f65008">RealThresholdVector</a> m_Thresholds;
<a name="l00101"></a>00101   TOutput             m_LabelOffset;
<a name="l00102"></a>00102 };
<a name="l00103"></a>00103 }
<a name="l00104"></a>00104 
<a name="l00105"></a>00105 <span class="keyword">template</span> &lt;<span class="keyword">class</span> TInputImage,<span class="keyword">class</span> TOutputImage&gt;
<a name="l00106"></a><a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html">00106</a> <span class="keyword">class </span><a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html" title="Label an input image according to a set of thresholds.">ThresholdLabelerImageFilter</a> :
<a name="l00107"></a>00107     <span class="keyword">public</span>
<a name="l00108"></a>00108 <a class="code" href="classitk_1_1UnaryFunctorImageFilter.html" title="Implements pixel-wise generic operation on one image.">UnaryFunctorImageFilter</a>&lt;TInputImage,TOutputImage, 
<a name="l00109"></a>00109                         Functor::ThresholdLabeler&lt; 
<a name="l00110"></a>00110   typename TInputImage::PixelType,
<a name="l00111"></a>00111   typename TOutputImage::PixelType&gt; &gt;
<a name="l00112"></a>00112 {
<a name="l00113"></a>00113 <span class="keyword">public</span>:
<a name="l00115"></a><a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html#0f6507886bcec0ff1d81f7552d4faaaf">00115</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html" title="Label an input image according to a set of thresholds.">ThresholdLabelerImageFilter</a>  <a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html" title="Label an input image according to a set of thresholds.">Self</a>;
<a name="l00116"></a>00116   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1UnaryFunctorImageFilter.html" title="Implements pixel-wise generic operation on one image.">UnaryFunctorImageFilter</a>&lt;
<a name="l00117"></a>00117     TInputImage,TOutputImage, 
<a name="l00118"></a>00118     <a class="code" href="classitk_1_1Functor_1_1ThresholdLabeler.html">Functor::ThresholdLabeler</a>&lt; 
<a name="l00119"></a>00119       <span class="keyword">typename</span> TInputImage::PixelType,
<a name="l00120"></a>00120       <span class="keyword">typename</span> TOutputImage::PixelType&gt;   
<a name="l00121"></a><a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html#edd8dee3ed94a0439704c7e8ee869f1c">00121</a>     &gt;                                  <a class="code" href="classitk_1_1UnaryFunctorImageFilter.html" title="Implements pixel-wise generic operation on one image.">Superclass</a>;
<a name="l00122"></a><a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html#678b9c70124be63f5bcd76f83a148fe9">00122</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="l00123"></a><a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html#aecbc6f31159b0652530837c7155498a">00123</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="l00124"></a>00124 
<a name="l00126"></a>00126   <a class="code" href="itkMacro_8h.html#0fdc15685afa271857c57e7cd482f30c">itkNewMacro</a>(<a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html" title="Label an input image according to a set of thresholds.">Self</a>);
<a name="l00127"></a>00127 
<a name="l00129"></a><a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html#5e34db1a845993722aeac9fede624e68">00129</a>   <a class="code" href="itkMacro_8h.html#574c1f86661d409dd32c742307a0e96a">itkTypeMacro</a>(<a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html" title="Label an input image according to a set of thresholds.">ThresholdLabelerImageFilter</a>, <a class="code" href="classitk_1_1UnaryFunctorImageFilter.html" title="Implements pixel-wise generic operation on one image.">UnaryFunctorImageFilter</a>);
<a name="l00130"></a>00130 
<a name="l00132"></a>00132   <span class="keyword">typedef</span> <span class="keyword">typename</span> TInputImage::PixelType   <a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html#5e34db1a845993722aeac9fede624e68">InputPixelType</a>;
<a name="l00133"></a><a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html#f1ecb5d738648d6b5fe6036ccfb6c982">00133</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> TOutputImage::PixelType  <a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html#f1ecb5d738648d6b5fe6036ccfb6c982">OutputPixelType</a>;
<a name="l00134"></a>00134 
<a name="l00136"></a><a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html#7e5b375484747bf5b23b736cd6b75bad">00136</a>   <span class="keyword">typedef</span> std::vector&lt;InputPixelType&gt;                        <a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html#7e5b375484747bf5b23b736cd6b75bad">ThresholdVector</a>;
<a name="l00137"></a><a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html#218e4500aaf5f3a76e51347c44680152">00137</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> NumericTraits&lt; InputPixelType &gt;::RealType <a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html#218e4500aaf5f3a76e51347c44680152">RealThresholdType</a>;
<a name="l00138"></a><a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html#0540239c44aaa9246dad970e27bb0f56">00138</a>   <span class="keyword">typedef</span> std::vector&lt;RealThresholdType&gt;                     <a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html#0540239c44aaa9246dad970e27bb0f56">RealThresholdVector</a>;
<a name="l00139"></a>00139 
<a name="l00140"></a>00140 
<a name="l00142"></a>00142 <span class="preprocessor">#ifdef ITK_USE_CONCEPT_CHECKING</span>
<a name="l00143"></a>00143 <span class="preprocessor"></span>
<a name="l00145"></a>00145   <a class="code" href="itkConceptChecking_8h.html#009eae6c305d9c390972159815e6a710">itkConceptMacro</a>(PixelTypeComparable,
<a name="l00146"></a>00146                   (<a class="code" href="structitk_1_1Concept_1_1Comparable.html">Concept::Comparable&lt;InputPixelType&gt;</a>));
<a name="l00147"></a>00147   <a class="code" href="itkConceptChecking_8h.html#009eae6c305d9c390972159815e6a710">itkConceptMacro</a>(OutputPixelTypeComparable,
<a name="l00148"></a>00148                   (<a class="code" href="structitk_1_1Concept_1_1Comparable.html">Concept::Comparable&lt;OutputPixelType&gt;</a>));
<a name="l00149"></a>00149   <a class="code" href="itkConceptChecking_8h.html#009eae6c305d9c390972159815e6a710">itkConceptMacro</a>(OutputPixelTypeOStreamWritable,
<a name="l00150"></a>00150                   (<a class="code" href="structitk_1_1Concept_1_1OStreamWritable.html">Concept::OStreamWritable&lt;OutputPixelType&gt;</a>));
<a name="l00151"></a>00151 
<a name="l00153"></a>00153 <span class="preprocessor">#endif</span>
<a name="l00154"></a>00154 <span class="preprocessor"></span>
<a name="l00156"></a><a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html#485290f10e361736523e816d8a7d2134">00156</a>   <span class="keywordtype">void</span> <a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html#485290f10e361736523e816d8a7d2134">SetThresholds</a>( <span class="keyword">const</span> <a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html#7e5b375484747bf5b23b736cd6b75bad">ThresholdVector</a> &amp; thresholds )
<a name="l00157"></a>00157     { 
<a name="l00158"></a>00158     m_Thresholds = thresholds;
<a name="l00159"></a>00159     m_RealThresholds.clear();
<a name="l00160"></a>00160     <span class="keyword">typename</span> ThresholdVector::const_iterator itr = m_Thresholds.begin();
<a name="l00161"></a>00161     <span class="keywordflow">while</span>( itr != m_Thresholds.end() )
<a name="l00162"></a>00162       {
<a name="l00163"></a>00163       m_RealThresholds.push_back( static_cast&lt; RealThresholdType &gt;( *itr ) );
<a name="l00164"></a>00164       ++itr;
<a name="l00165"></a>00165       }
<a name="l00166"></a>00166     this-&gt;<a class="code" href="classitk_1_1Object.html#33101e349626ac58ced6682b061d8277">Modified</a>();
<a name="l00167"></a>00167     }
<a name="l00169"></a>00169 
<a name="l00171"></a><a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html#7c583562fdb6f7f85f9ff6feabf8451e">00171</a>   <span class="keyword">const</span> <a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html#7e5b375484747bf5b23b736cd6b75bad">ThresholdVector</a> &amp; <a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html#7c583562fdb6f7f85f9ff6feabf8451e">GetThresholds</a>()<span class="keyword"> const</span>
<a name="l00172"></a>00172 <span class="keyword">    </span>{ <span class="keywordflow">return</span> m_Thresholds; }
<a name="l00173"></a>00173 
<a name="l00175"></a><a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html#60a7da0be39cd38754f502380822406a">00175</a>   <span class="keywordtype">void</span> <a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html#60a7da0be39cd38754f502380822406a">SetRealThresholds</a>( <span class="keyword">const</span> <a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html#0540239c44aaa9246dad970e27bb0f56">RealThresholdVector</a> &amp; thresholds )
<a name="l00176"></a>00176     { 
<a name="l00177"></a>00177     m_RealThresholds = thresholds;
<a name="l00178"></a>00178     m_Thresholds.clear();
<a name="l00179"></a>00179     <span class="keyword">typename</span> RealThresholdVector::const_iterator itr = m_RealThresholds.begin();
<a name="l00180"></a>00180     <span class="keywordflow">while</span>( itr != m_RealThresholds.end() )
<a name="l00181"></a>00181       {
<a name="l00182"></a>00182       m_Thresholds.push_back( static_cast&lt; InputPixelType &gt;( *itr ) );
<a name="l00183"></a>00183       ++itr;
<a name="l00184"></a>00184       }
<a name="l00185"></a>00185     this-&gt;<a class="code" href="classitk_1_1Object.html#33101e349626ac58ced6682b061d8277">Modified</a>();
<a name="l00186"></a>00186     }
<a name="l00188"></a>00188 
<a name="l00190"></a><a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html#12153c219c3501576ad9a6fa48a10448">00190</a>   <span class="keyword">const</span> <a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html#0540239c44aaa9246dad970e27bb0f56">RealThresholdVector</a> &amp; <a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html#12153c219c3501576ad9a6fa48a10448">GetRealThresholds</a>()<span class="keyword"> const</span>
<a name="l00191"></a>00191 <span class="keyword">    </span>{ <span class="keywordflow">return</span> m_RealThresholds; }
<a name="l00192"></a>00192 
<a name="l00194"></a>00194   <a class="code" href="itkMacro_8h.html#5cefe2f514fdc24c2484af7849042f18">itkSetClampMacro</a>(LabelOffset,<a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html#f1ecb5d738648d6b5fe6036ccfb6c982">OutputPixelType</a>, NumericTraits&lt;OutputPixelType&gt;::Zero,NumericTraits&lt;OutputPixelType&gt;::max() );
<a name="l00195"></a>00195   <a class="code" href="itkMacro_8h.html#1600305bb01e39e87c472d8bf29bd1cf">itkGetMacro</a>(LabelOffset,<a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html#f1ecb5d738648d6b5fe6036ccfb6c982">OutputPixelType</a>);
<a name="l00197"></a>00197 
<a name="l00198"></a>00198 <span class="keyword">protected</span>:
<a name="l00199"></a>00199   <a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html#bdd3db84cd6631c0d082dd96fb851fd9">ThresholdLabelerImageFilter</a>();
<a name="l00200"></a><a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html#a4ea6b51ff7262749eb435acb7dfd6dd">00200</a>   <span class="keyword">virtual</span> <a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html#a4ea6b51ff7262749eb435acb7dfd6dd">~ThresholdLabelerImageFilter</a>() {}
<a name="l00201"></a>00201   <span class="keywordtype">void</span> <a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html#bab202b03827aa225da228e473636056">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="l00202"></a>00202 
<a name="l00205"></a>00205   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html#4bd0d0b3838694995ed6b9f2fd74e87c">BeforeThreadedGenerateData</a>();
<a name="l00206"></a>00206 
<a name="l00207"></a>00207 <span class="keyword">private</span>:
<a name="l00208"></a>00208   <a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html#bdd3db84cd6631c0d082dd96fb851fd9">ThresholdLabelerImageFilter</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html#0f6507886bcec0ff1d81f7552d4faaaf">Self</a>&amp;); <span class="comment">//purposely not implemented</span>
<a name="l00209"></a>00209   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html#0f6507886bcec0ff1d81f7552d4faaaf">Self</a>&amp;); <span class="comment">//purposely not implemented</span>
<a name="l00210"></a>00210 
<a name="l00211"></a>00211   <a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html#7e5b375484747bf5b23b736cd6b75bad">ThresholdVector</a>        m_Thresholds;
<a name="l00212"></a>00212   <a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html#0540239c44aaa9246dad970e27bb0f56">RealThresholdVector</a>    m_RealThresholds;
<a name="l00213"></a>00213   <a class="code" href="classitk_1_1ThresholdLabelerImageFilter.html#f1ecb5d738648d6b5fe6036ccfb6c982">OutputPixelType</a>        m_LabelOffset;
<a name="l00214"></a>00214 };
<a name="l00215"></a>00215 
<a name="l00216"></a>00216 } <span class="comment">// end namespace itk</span>
<a name="l00217"></a>00217 
<a name="l00218"></a>00218 <span class="preprocessor">#ifndef ITK_MANUAL_INSTANTIATION</span>
<a name="l00219"></a>00219 <span class="preprocessor"></span><span class="preprocessor">#include "itkThresholdLabelerImageFilter.txx"</span>
<a name="l00220"></a>00220 <span class="preprocessor">#endif</span>
<a name="l00221"></a>00221 <span class="preprocessor"></span>
<a name="l00222"></a>00222 <span class="preprocessor">#endif</span>
<a name="l00223"></a>00223 <span class="preprocessor"></span>
</pre></div></div>
<hr><address><small>
Generated at Fri May 8 00:21:43 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>