Sophie

Sophie

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

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: itkWatershedRelabeler.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>itkWatershedRelabeler.h</h1><a href="itkWatershedRelabeler_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: itkWatershedRelabeler.h,v $</span>
<a name="l00005"></a>00005 <span class="comment">  Language:  C++</span>
<a name="l00006"></a>00006 <span class="comment">  Date:      $Date: 2009-01-27 19:30:18 $</span>
<a name="l00007"></a>00007 <span class="comment">  Version:   $Revision: 1.11 $</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 __itkWatershedRelabeler_h</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define __itkWatershedRelabeler_h</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span>
<a name="l00020"></a>00020 <span class="preprocessor">#include "<a class="code" href="itkEquivalencyTable_8h.html">itkEquivalencyTable.h</a>"</span>
<a name="l00021"></a>00021 <span class="preprocessor">#include "<a class="code" href="itkWatershedSegmentTree_8h.html">itkWatershedSegmentTree.h</a>"</span>
<a name="l00022"></a>00022 <span class="preprocessor">#include "<a class="code" href="itkWatershedSegmenter_8h.html">itkWatershedSegmenter.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="l00027"></a>00027 <span class="keyword">namespace </span>watershed
<a name="l00028"></a>00028 {
<a name="l00029"></a>00029 
<a name="l00063"></a>00063 <span class="keyword">template</span> &lt;<span class="keyword">class</span> TScalarType, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> TImageDimension&gt;
<a name="l00064"></a><a class="code" href="classitk_1_1watershed_1_1Relabeler.html">00064</a> <span class="keyword">class </span><a class="code" href="itkWin32Header_8h.html#7d4384322557205d75f0719c012dded6">ITK_EXPORT</a> <a class="code" href="classitk_1_1watershed_1_1Relabeler.html">Relabeler</a>
<a name="l00065"></a>00065   : <span class="keyword">public</span> <a class="code" href="classitk_1_1ProcessObject.html" title="ProcessObject is the base class for all process objects (source, filters, mappers)...">ProcessObject</a>
<a name="l00066"></a>00066 {
<a name="l00067"></a>00067 <span class="keyword">public</span>:
<a name="l00069"></a><a class="code" href="classitk_1_1watershed_1_1Relabeler.html#ddb2bbbf759db855adf3a62631c8b181">00069</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1watershed_1_1Relabeler.html">Relabeler</a>                <a class="code" href="classitk_1_1LightObject.html" title="Light weight base class for most itk classes.">Self</a>;
<a name="l00070"></a><a class="code" href="classitk_1_1watershed_1_1Relabeler.html#435a010b79e4d7e3ed110f05059d00d6">00070</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1ProcessObject.html" title="ProcessObject is the base class for all process objects (source, filters, mappers)...">ProcessObject</a>            <a class="code" href="classitk_1_1LightObject.html" title="Light weight base class for most itk classes.">Superclass</a>;
<a name="l00071"></a><a class="code" href="classitk_1_1watershed_1_1Relabeler.html#a0a3e81711939a5e0f7118249d31e7e9">00071</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="l00072"></a><a class="code" href="classitk_1_1watershed_1_1Relabeler.html#62d2e2dfd7072e89c7e4820dd7c8ac4e">00072</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="l00073"></a>00073   <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="l00074"></a>00074   <a class="code" href="itkMacro_8h.html#574c1f86661d409dd32c742307a0e96a">itkTypeMacro</a>(WatershedRelabeler, <a class="code" href="classitk_1_1ProcessObject.html" title="ProcessObject is the base class for all process objects (source, filters, mappers)...">ProcessObject</a>);
<a name="l00076"></a>00076 
<a name="l00078"></a>00078   <a class="code" href="itkMacro_8h.html#1905cf6b2e88235996fa7ff73b2fb0eb">itkStaticConstMacro</a>(ImageDimension, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>,TImageDimension);
<a name="l00079"></a>00079 
<a name="l00081"></a><a class="code" href="classitk_1_1watershed_1_1Relabeler.html#5babeb23280658c7c18fea7343886510">00081</a>   <span class="keyword">typedef</span> TScalarType                                    ScalarType;
<a name="l00082"></a><a class="code" href="classitk_1_1watershed_1_1Relabeler.html#04b23984044d7b5b7fa49432959fa1da">00082</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">Image&lt;unsigned long, TImageDimension&gt;</a>          <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">ImageType</a>;
<a name="l00083"></a><a class="code" href="classitk_1_1watershed_1_1Relabeler.html#d79385bb24656cc7513300a9785eb293">00083</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1watershed_1_1SegmentTree.html">SegmentTree&lt;ScalarType&gt;</a>                        <a class="code" href="classitk_1_1watershed_1_1SegmentTree.html">SegmentTreeType</a>;
<a name="l00084"></a><a class="code" href="classitk_1_1watershed_1_1Relabeler.html#f7663c6bb185750f3340909ceadc529c">00084</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1watershed_1_1Segmenter.html">Segmenter&lt;Image&lt;ScalarType, TImageDimension&gt;</a> &gt; <a class="code" href="classitk_1_1watershed_1_1Segmenter.html">SegmenterType</a>;
<a name="l00085"></a><a class="code" href="classitk_1_1watershed_1_1Relabeler.html#8c95df732d0b6f93d6860a25d6be3f3a">00085</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1SmartPointer.html">DataObject::Pointer</a>                            <a class="code" href="classitk_1_1SmartPointer.html">DataObjectPointer</a>;
<a name="l00086"></a>00086 
<a name="l00088"></a>00088   <span class="keyword">virtual</span> <a class="code" href="classitk_1_1SmartPointer.html">DataObjectPointer</a> MakeOutput(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> idx);
<a name="l00089"></a>00089 
<a name="l00091"></a><a class="code" href="classitk_1_1watershed_1_1Relabeler.html#b18ea1d1c811b253fb79f2f73a66de53">00091</a>   <span class="keywordtype">void</span> SetInputImage(<a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">ImageType</a> *img)
<a name="l00092"></a>00092     {
<a name="l00093"></a>00093     this-&gt;<a class="code" href="classitk_1_1ProcessObject.html#148829de75f8eae1161af95151710808">ProcessObject::SetNthInput</a>(0, img);
<a name="l00094"></a>00094     }
<a name="l00095"></a><a class="code" href="classitk_1_1watershed_1_1Relabeler.html#b630a019ba2758793306e24c13cc6e6e">00095</a>   <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">ImageType</a> * GetInputImage(<span class="keywordtype">void</span>)
<a name="l00096"></a>00096     {
<a name="l00097"></a>00097     <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span><a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">ImageType</a> *<span class="keyword">&gt;</span>
<a name="l00098"></a>00098       (this-&gt;<a class="code" href="classitk_1_1ProcessObject.html#1cb9c8ea89b6357d9d851f4179f933dd">ProcessObject::GetInput</a>(0) );
<a name="l00099"></a>00099     }
<a name="l00101"></a>00101 
<a name="l00103"></a><a class="code" href="classitk_1_1watershed_1_1Relabeler.html#01e17314aa113a9583720aa0fdad1d50">00103</a>   <span class="keywordtype">void</span> SetOutputImage(<a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">ImageType</a> * img)
<a name="l00104"></a>00104     {
<a name="l00105"></a>00105     this-&gt;<a class="code" href="classitk_1_1ProcessObject.html#2e8baf7173919c763c0ce5a5acc9146c">ProcessObject::SetNthOutput</a>(0,img);
<a name="l00106"></a>00106     }
<a name="l00107"></a><a class="code" href="classitk_1_1watershed_1_1Relabeler.html#6877c487ce6a61e0c0da3c3aab02b77c">00107</a>   <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">ImageType</a> * GetOutputImage(<span class="keywordtype">void</span>)
<a name="l00108"></a>00108     {
<a name="l00109"></a>00109     <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span><a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">ImageType</a> *<span class="keyword">&gt;</span>
<a name="l00110"></a>00110       (this-&gt;<a class="code" href="classitk_1_1ProcessObject.html#f24a0bf37dae4c4ea24a03caf200588d">ProcessObject::GetOutput</a>(0) );
<a name="l00111"></a>00111     }
<a name="l00113"></a>00113 
<a name="l00115"></a><a class="code" href="classitk_1_1watershed_1_1Relabeler.html#c4dd5d8748fc9c306b296c554f3a6386">00115</a>   <span class="keywordtype">void</span> SetInputSegmentTree(<a class="code" href="classitk_1_1watershed_1_1SegmentTree.html">SegmentTreeType</a> *et)
<a name="l00116"></a>00116     {
<a name="l00117"></a>00117     this-&gt;<a class="code" href="classitk_1_1ProcessObject.html#148829de75f8eae1161af95151710808">ProcessObject::SetNthInput</a>(1, et);
<a name="l00118"></a>00118     }
<a name="l00119"></a><a class="code" href="classitk_1_1watershed_1_1Relabeler.html#2d43012cca152cad6dafd4d65bae3603">00119</a>   <a class="code" href="classitk_1_1watershed_1_1SegmentTree.html">SegmentTreeType</a> * GetInputSegmentTree(<span class="keywordtype">void</span>)
<a name="l00120"></a>00120     {
<a name="l00121"></a>00121     <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span><a class="code" href="classitk_1_1watershed_1_1SegmentTree.html">SegmentTreeType</a> *<span class="keyword">&gt;</span>
<a name="l00122"></a>00122       (this-&gt;<a class="code" href="classitk_1_1ProcessObject.html#1cb9c8ea89b6357d9d851f4179f933dd">ProcessObject::GetInput</a>(1));
<a name="l00123"></a>00123     }
<a name="l00125"></a>00125 
<a name="l00127"></a>00127   <span class="keywordtype">void</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#f75a5945cdd8315676941024a0b8c1e9">GenerateData</a>();
<a name="l00128"></a>00128 
<a name="l00131"></a>00131   <a class="code" href="itkMacro_8h.html#5cefe2f514fdc24c2484af7849042f18">itkSetClampMacro</a>(FloodLevel, <span class="keywordtype">double</span>, 0.0, 1.0);
<a name="l00132"></a>00132   <a class="code" href="itkMacro_8h.html#1600305bb01e39e87c472d8bf29bd1cf">itkGetMacro</a>(FloodLevel, <span class="keywordtype">double</span>);
<a name="l00134"></a>00134 
<a name="l00136"></a>00136   <span class="keywordtype">void</span> GraftOutput(ImageType *graft);
<a name="l00137"></a>00137   <span class="keywordtype">void</span> GraftNthOutput(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> idx, ImageType *graft);
<a name="l00139"></a>00139 
<a name="l00140"></a>00140 <span class="keyword">protected</span>:
<a name="l00141"></a>00141   <a class="code" href="classitk_1_1watershed_1_1Relabeler.html">Relabeler</a>();
<a name="l00142"></a><a class="code" href="classitk_1_1watershed_1_1Relabeler.html#10c50be61d8af806664803a256b9a7a9">00142</a>   <span class="keyword">virtual</span> <a class="code" href="classitk_1_1watershed_1_1Relabeler.html#10c50be61d8af806664803a256b9a7a9">~Relabeler</a>() {}
<a name="l00143"></a><a class="code" href="classitk_1_1watershed_1_1Relabeler.html#7b4c99ef38fe44d90d94681b256122ef">00143</a>   <a class="code" href="classitk_1_1watershed_1_1Relabeler.html#7b4c99ef38fe44d90d94681b256122ef">Relabeler</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;) {}
<a name="l00144"></a><a class="code" href="classitk_1_1watershed_1_1Relabeler.html#71709d14d616084eb1da7725958b440c">00144</a>   <span class="keywordtype">void</span> <a class="code" href="classitk_1_1watershed_1_1Relabeler.html#71709d14d616084eb1da7725958b440c">operator=</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;) {}
<a name="l00145"></a>00145   <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="l00146"></a>00146   
<a name="l00147"></a><a class="code" href="classitk_1_1watershed_1_1Relabeler.html#996cb18d3df5aeeb6c861be2b19062b3">00147</a>   <span class="keywordtype">double</span> m_FloodLevel;
<a name="l00148"></a>00148   <span class="keywordtype">void</span> GenerateOutputRequestedRegion(<a class="code" href="classitk_1_1DataObject.html" title="Base class for all data objects in ITK.">DataObject</a> *output);
<a name="l00149"></a>00149   <span class="keywordtype">void</span> GenerateInputRequestedRegion();
<a name="l00150"></a>00150 };
<a name="l00151"></a>00151   
<a name="l00152"></a>00152 }<span class="comment">// end namespace watershed</span>
<a name="l00153"></a>00153 }<span class="comment">// end namespace itk</span>
<a name="l00154"></a>00154 
<a name="l00155"></a>00155 <span class="preprocessor">#ifndef ITK_MANUAL_INSTANTIATION</span>
<a name="l00156"></a>00156 <span class="preprocessor"></span><span class="preprocessor">#include "itkWatershedRelabeler.txx"</span>
<a name="l00157"></a>00157 <span class="preprocessor">#endif</span>
<a name="l00158"></a>00158 <span class="preprocessor"></span>
<a name="l00159"></a>00159 <span class="preprocessor">#endif</span>
<a name="l00160"></a>00160 <span class="preprocessor"></span>
</pre></div></div>
<hr><address><small>
Generated at Fri May 8 00:40:14 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>