Sophie

Sophie

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

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: itkAnisotropicDiffusionFunction.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>itkAnisotropicDiffusionFunction.h</h1><a href="itkAnisotropicDiffusionFunction_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: itkAnisotropicDiffusionFunction.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-07 14:49:29 $</span>
<a name="l00007"></a>00007 <span class="comment">  Version:   $Revision: 1.19 $</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 __itkAnisotropicDiffusionFunction_h</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define __itkAnisotropicDiffusionFunction_h</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span>
<a name="l00020"></a>00020 
<a name="l00021"></a>00021 <span class="preprocessor">#include "<a class="code" href="itkFiniteDifferenceFunction_8h.html">itkFiniteDifferenceFunction.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="l00134"></a>00134 <span class="keyword">template</span> &lt;<span class="keyword">class</span> TImage&gt;
<a name="l00135"></a><a class="code" href="classitk_1_1AnisotropicDiffusionFunction.html">00135</a> <span class="keyword">class </span><a class="code" href="itkWin32Header_8h.html#7d4384322557205d75f0719c012dded6">ITK_EXPORT</a> <a class="code" href="classitk_1_1AnisotropicDiffusionFunction.html">AnisotropicDiffusionFunction</a> :
<a name="l00136"></a>00136     <span class="keyword">public</span> <a class="code" href="classitk_1_1FiniteDifferenceFunction.html">FiniteDifferenceFunction</a>&lt;TImage&gt;
<a name="l00137"></a>00137 {
<a name="l00138"></a>00138 <span class="keyword">public</span>:
<a name="l00139"></a>00139 
<a name="l00141"></a><a class="code" href="classitk_1_1AnisotropicDiffusionFunction.html#bc6196741e6711dfa2d9b0d1392c15a7">00141</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1AnisotropicDiffusionFunction.html">AnisotropicDiffusionFunction</a>     <a class="code" href="classitk_1_1LightObject.html" title="Light weight base class for most itk classes.">Self</a>;
<a name="l00142"></a><a class="code" href="classitk_1_1AnisotropicDiffusionFunction.html#29b31b0c3368fe1de896841a3bf61c6e">00142</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1FiniteDifferenceFunction.html">FiniteDifferenceFunction&lt;TImage&gt;</a> <a class="code" href="classitk_1_1FiniteDifferenceFunction.html">Superclass</a>;
<a name="l00143"></a><a class="code" href="classitk_1_1AnisotropicDiffusionFunction.html#f7490ddf219b7e0236c59fa972cc7264">00143</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="l00144"></a><a class="code" href="classitk_1_1AnisotropicDiffusionFunction.html#212dc87aea53668df417911c85968582">00144</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="l00145"></a>00145 
<a name="l00147"></a><a class="code" href="classitk_1_1AnisotropicDiffusionFunction.html#a5e1ded60960c7bee219f655d14e36a0">00147</a>   <a class="code" href="itkMacro_8h.html#574c1f86661d409dd32c742307a0e96a">itkTypeMacro</a>( <a class="code" href="classitk_1_1AnisotropicDiffusionFunction.html">AnisotropicDiffusionFunction</a>, <a class="code" href="classitk_1_1FiniteDifferenceFunction.html">FiniteDifferenceFunction</a> );
<a name="l00148"></a>00148 
<a name="l00150"></a>00150   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::ImageType        ImageType;
<a name="l00151"></a><a class="code" href="classitk_1_1AnisotropicDiffusionFunction.html#d098ad4af46dfbb576abdbe34441116e">00151</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::PixelType        PixelType;
<a name="l00152"></a><a class="code" href="classitk_1_1AnisotropicDiffusionFunction.html#cfd7617c6580288aeb1863929281e7d6">00152</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::PixelRealType    PixelrealType;
<a name="l00153"></a><a class="code" href="classitk_1_1AnisotropicDiffusionFunction.html#2c83858c301cc121ee04625b0e409c61">00153</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::RadiusType       RadiusType;
<a name="l00154"></a><a class="code" href="classitk_1_1AnisotropicDiffusionFunction.html#85d3797a8b5115cc9c3093d59c33b585">00154</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1ConstNeighborhoodIterator.html" title="Const version of NeighborhoodIterator, defining iteration of a local N-dimensional...">Superclass::NeighborhoodType</a> <a class="code" href="classitk_1_1ConstNeighborhoodIterator.html" title="Const version of NeighborhoodIterator, defining iteration of a local N-dimensional...">NeighborhoodType</a>;
<a name="l00155"></a><a class="code" href="classitk_1_1AnisotropicDiffusionFunction.html#b901187f4f88a6e41c36189a34f0ffa3">00155</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::TimeStepType     TimeStepType;
<a name="l00156"></a><a class="code" href="classitk_1_1AnisotropicDiffusionFunction.html#147cad25ee951cf4cd802b826257304a">00156</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1Vector.html" title="A templated class holding a n-Dimensional vector.">Superclass::FloatOffsetType</a>  <a class="code" href="classitk_1_1Vector.html" title="A templated class holding a n-Dimensional vector.">FloatOffsetType</a>;
<a name="l00157"></a>00157 
<a name="l00159"></a>00159   <a class="code" href="itkMacro_8h.html#1905cf6b2e88235996fa7ff73b2fb0eb">itkStaticConstMacro</a>(ImageDimension, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>,Superclass::ImageDimension);
<a name="l00160"></a>00160 
<a name="l00166"></a>00166   <span class="keyword">virtual</span> <span class="keywordtype">void</span> CalculateAverageGradientMagnitudeSquared(ImageType *) = 0;
<a name="l00167"></a>00167 
<a name="l00171"></a><a class="code" href="classitk_1_1AnisotropicDiffusionFunction.html#0b5c2070377b313bbf1f7e79af29eac5">00171</a>   <span class="keywordtype">void</span> SetTimeStep(<span class="keyword">const</span> TimeStepType &amp;t)
<a name="l00172"></a>00172     {
<a name="l00173"></a>00173     m_TimeStep = t;
<a name="l00174"></a>00174     }
<a name="l00175"></a><a class="code" href="classitk_1_1AnisotropicDiffusionFunction.html#ca776d1cdebfe149540bacf4d0be2f69">00175</a>   <span class="keyword">const</span> TimeStepType &amp;GetTimeStep()<span class="keyword"> const</span>
<a name="l00176"></a>00176 <span class="keyword">    </span>{
<a name="l00177"></a>00177     <span class="keywordflow">return</span> m_TimeStep;
<a name="l00178"></a>00178     }
<a name="l00180"></a>00180 
<a name="l00182"></a><a class="code" href="classitk_1_1AnisotropicDiffusionFunction.html#752efc512c8497da674262b1ab471939">00182</a>   <span class="keywordtype">void</span> SetConductanceParameter(<span class="keyword">const</span> <span class="keywordtype">double</span> &amp;c)
<a name="l00183"></a>00183     {
<a name="l00184"></a>00184     m_ConductanceParameter = c;
<a name="l00185"></a>00185     }
<a name="l00186"></a><a class="code" href="classitk_1_1AnisotropicDiffusionFunction.html#948f681cc4772b745017514b3a426965">00186</a>   <span class="keyword">const</span> <span class="keywordtype">double</span> &amp;GetConductanceParameter()<span class="keyword"> const</span>
<a name="l00187"></a>00187 <span class="keyword">    </span>{
<a name="l00188"></a>00188     <span class="keywordflow">return</span> m_ConductanceParameter;
<a name="l00189"></a>00189     }
<a name="l00191"></a>00191 
<a name="l00193"></a><a class="code" href="classitk_1_1AnisotropicDiffusionFunction.html#33a1db38d75914bf535d36c1f13b8374">00193</a>   <span class="keyword">const</span> <span class="keywordtype">double</span> &amp;GetAverageGradientMagnitudeSquared()<span class="keyword"> const</span>
<a name="l00194"></a>00194 <span class="keyword">    </span>{
<a name="l00195"></a>00195     <span class="keywordflow">return</span> m_AverageGradientMagnitudeSquared;
<a name="l00196"></a>00196     }
<a name="l00197"></a><a class="code" href="classitk_1_1AnisotropicDiffusionFunction.html#6cf6e04bdd25e319713f236af9b54f59">00197</a>   <span class="keywordtype">void</span> SetAverageGradientMagnitudeSquared(<span class="keyword">const</span> <span class="keywordtype">double</span> &amp;c)
<a name="l00198"></a>00198     {
<a name="l00199"></a>00199     m_AverageGradientMagnitudeSquared = c;
<a name="l00200"></a>00200     }
<a name="l00202"></a>00202 
<a name="l00205"></a><a class="code" href="classitk_1_1AnisotropicDiffusionFunction.html#d05d3efbeb2658b20123247510e9ad4f">00205</a>   <span class="keyword">virtual</span> TimeStepType ComputeGlobalTimeStep(<span class="keywordtype">void</span> *<a class="code" href="itkMacro_8h.html#6be3b439282da7a34278c0594589b972">itkNotUsed</a>(GlobalData))<span class="keyword"> const</span>
<a name="l00206"></a>00206 <span class="keyword">    </span>{
<a name="l00207"></a>00207     <span class="keywordflow">return</span> this-&gt;GetTimeStep();
<a name="l00208"></a>00208     }
<a name="l00209"></a>00209 
<a name="l00212"></a><a class="code" href="classitk_1_1AnisotropicDiffusionFunction.html#4b59f04efa61965559f1211243c5c223">00212</a>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> *GetGlobalDataPointer()<span class="keyword"> const</span>
<a name="l00213"></a>00213 <span class="keyword">    </span>{
<a name="l00214"></a>00214     <span class="keywordflow">return</span> 0;
<a name="l00215"></a>00215     }
<a name="l00216"></a>00216 
<a name="l00218"></a><a class="code" href="classitk_1_1AnisotropicDiffusionFunction.html#93dae7020418a3e5786e96107ba5aa05">00218</a>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> ReleaseGlobalDataPointer(<span class="keywordtype">void</span> *<a class="code" href="itkMacro_8h.html#6be3b439282da7a34278c0594589b972">itkNotUsed</a>(GlobalData))<span class="keyword"> const</span>
<a name="l00219"></a>00219 <span class="keyword">    </span>{
<a name="l00220"></a>00220     <span class="comment">/* do nothing */</span>
<a name="l00221"></a>00221     }
<a name="l00222"></a>00222 
<a name="l00223"></a>00223 <span class="keyword">protected</span>:
<a name="l00224"></a><a class="code" href="classitk_1_1AnisotropicDiffusionFunction.html#bdd1b2f3a6e99c69c6f5582f3d266062">00224</a>   <a class="code" href="classitk_1_1AnisotropicDiffusionFunction.html">AnisotropicDiffusionFunction</a>()
<a name="l00225"></a>00225     {
<a name="l00226"></a>00226     m_AverageGradientMagnitudeSquared = 0.0;
<a name="l00227"></a>00227     m_ConductanceParameter     = 1.0;     <span class="comment">// default value</span>
<a name="l00228"></a>00228     m_TimeStep                 = 0.125f;  <span class="comment">// default value</span>
<a name="l00229"></a>00229     }
<a name="l00230"></a><a class="code" href="classitk_1_1AnisotropicDiffusionFunction.html#baaf0217e1599cfdd1107c6d0e8a3c08">00230</a>   <a class="code" href="classitk_1_1AnisotropicDiffusionFunction.html#baaf0217e1599cfdd1107c6d0e8a3c08">~AnisotropicDiffusionFunction</a>() {}
<a name="l00231"></a>00231 
<a name="l00232"></a><a class="code" href="classitk_1_1AnisotropicDiffusionFunction.html#1eb835f694ab9919ed32c44ed7e1d0e7">00232</a>   <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="l00233"></a>00233 <span class="keyword">    </span>{
<a name="l00234"></a>00234     <a class="code" href="namespaceHardConnectedComponentImageFilter.html#920ae03048a5ad715d803ca2e92b52de">Superclass::PrintSelf</a>(os,indent);
<a name="l00235"></a>00235     os &lt;&lt; indent &lt;&lt; <span class="stringliteral">"TimeStep: "</span> &lt;&lt; m_TimeStep &lt;&lt; std::endl;
<a name="l00236"></a>00236     os &lt;&lt; indent &lt;&lt; <span class="stringliteral">"ConductanceParameter: "</span> &lt;&lt; m_ConductanceParameter &lt;&lt;
<a name="l00237"></a>00237       std::endl;
<a name="l00238"></a>00238     }
<a name="l00239"></a>00239 
<a name="l00240"></a>00240 <span class="keyword">private</span>:
<a name="l00241"></a>00241   <a class="code" href="classitk_1_1AnisotropicDiffusionFunction.html">AnisotropicDiffusionFunction</a>(<span class="keyword">const</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ac7d0120fe5292cdcdddb6163b8cb150">Self</a>&amp;); <span class="comment">//purposely not implemented</span>
<a name="l00242"></a>00242   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ac7d0120fe5292cdcdddb6163b8cb150">Self</a>&amp;); <span class="comment">//purposely not implemented</span>
<a name="l00243"></a>00243 
<a name="l00244"></a>00244   <span class="keywordtype">double</span>          m_AverageGradientMagnitudeSquared;
<a name="l00245"></a>00245   <span class="keywordtype">double</span>          m_ConductanceParameter;
<a name="l00246"></a>00246   TimeStepType    m_TimeStep;
<a name="l00247"></a>00247 };
<a name="l00248"></a>00248 
<a name="l00249"></a>00249 }<span class="comment">// end namespace itk</span>
<a name="l00250"></a>00250 
<a name="l00251"></a>00251 <span class="preprocessor">#endif</span>
<a name="l00252"></a>00252 <span class="preprocessor"></span>
</pre></div></div>
<hr><address><small>
Generated at Thu May 7 22:06:01 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>