Sophie

Sophie

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

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: itkDemonsRegistrationFunction.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>itkDemonsRegistrationFunction.h</h1><a href="itkDemonsRegistrationFunction_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: itkDemonsRegistrationFunction.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-12-08 16:00:52 $</span>
<a name="l00007"></a>00007 <span class="comment">  Version:   $Revision: 1.29 $</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 __itkDemonsRegistrationFunction_h</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define __itkDemonsRegistrationFunction_h</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span>
<a name="l00020"></a>00020 <span class="preprocessor">#include "<a class="code" href="itkPDEDeformableRegistrationFunction_8h.html">itkPDEDeformableRegistrationFunction.h</a>"</span>
<a name="l00021"></a>00021 <span class="preprocessor">#include "<a class="code" href="itkPoint_8h.html">itkPoint.h</a>"</span>
<a name="l00022"></a>00022 <span class="preprocessor">#include "<a class="code" href="itkCovariantVector_8h.html">itkCovariantVector.h</a>"</span>
<a name="l00023"></a>00023 <span class="preprocessor">#include "<a class="code" href="itkInterpolateImageFunction_8h.html">itkInterpolateImageFunction.h</a>"</span>
<a name="l00024"></a>00024 <span class="preprocessor">#include "<a class="code" href="itkLinearInterpolateImageFunction_8h.html">itkLinearInterpolateImageFunction.h</a>"</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include "<a class="code" href="itkCentralDifferenceImageFunction_8h.html">itkCentralDifferenceImageFunction.h</a>"</span>
<a name="l00026"></a>00026 
<a name="l00027"></a>00027 <span class="keyword">namespace </span>itk {
<a name="l00028"></a>00028 
<a name="l00052"></a>00052 <span class="keyword">template</span>&lt;<span class="keyword">class</span> TFixedImage, <span class="keyword">class</span> TMovingImage, <span class="keyword">class</span> TDeformationField&gt;
<a name="l00053"></a><a class="code" href="classitk_1_1DemonsRegistrationFunction.html">00053</a> <span class="keyword">class </span><a class="code" href="itkWin32Header_8h.html#7d4384322557205d75f0719c012dded6">ITK_EXPORT</a> <a class="code" href="classitk_1_1DemonsRegistrationFunction.html">DemonsRegistrationFunction</a> :
<a name="l00054"></a>00054     <span class="keyword">public</span> <a class="code" href="classitk_1_1PDEDeformableRegistrationFunction.html">PDEDeformableRegistrationFunction</a>&lt; TFixedImage,
<a name="l00055"></a>00055                                               TMovingImage, 
<a name="l00056"></a>00056 TDeformationField&gt;
<a name="l00057"></a>00057 {
<a name="l00058"></a>00058 <span class="keyword">public</span>:
<a name="l00059"></a>00059 
<a name="l00061"></a><a class="code" href="classitk_1_1DemonsRegistrationFunction.html#26a911902d0aab281ab61208d8ffc659">00061</a>   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1DemonsRegistrationFunction.html">DemonsRegistrationFunction</a>    <a class="code" href="classitk_1_1DemonsRegistrationFunction.html">Self</a>;
<a name="l00062"></a>00062   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1PDEDeformableRegistrationFunction.html">PDEDeformableRegistrationFunction</a>&lt; TFixedImage,
<a name="l00063"></a>00063                                              TMovingImage, TDeformationField 
<a name="l00064"></a><a class="code" href="classitk_1_1DemonsRegistrationFunction.html#b2c865dcdc1353ab59b44c8f4f77f7ee">00064</a>  &gt;                                      <a class="code" href="classitk_1_1PDEDeformableRegistrationFunction.html">Superclass</a>;
<a name="l00065"></a><a class="code" href="classitk_1_1DemonsRegistrationFunction.html#e028fdfadafea28726b68fe4a59a8051">00065</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="l00066"></a><a class="code" href="classitk_1_1DemonsRegistrationFunction.html#1eb7fcea18b35a2ac46fce28bbba091e">00066</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="l00067"></a>00067 
<a name="l00069"></a>00069   <a class="code" href="itkMacro_8h.html#0fdc15685afa271857c57e7cd482f30c">itkNewMacro</a>(<a class="code" href="classitk_1_1DemonsRegistrationFunction.html">Self</a>);
<a name="l00070"></a>00070 
<a name="l00072"></a>00072   <a class="code" href="itkMacro_8h.html#574c1f86661d409dd32c742307a0e96a">itkTypeMacro</a>( <a class="code" href="classitk_1_1DemonsRegistrationFunction.html">DemonsRegistrationFunction</a>,
<a name="l00073"></a><a class="code" href="classitk_1_1DemonsRegistrationFunction.html#1f31ca9173d6e5cc87f61bd6921815bc">00073</a>                 <a class="code" href="classitk_1_1PDEDeformableRegistrationFunction.html">PDEDeformableRegistrationFunction</a> );
<a name="l00074"></a>00074 
<a name="l00076"></a>00076   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::MovingImageType     MovingImageType;
<a name="l00077"></a><a class="code" href="classitk_1_1DemonsRegistrationFunction.html#3845b5468672c5b56d22744591ce2000">00077</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::MovingImagePointer  MovingImagePointer;
<a name="l00078"></a>00078 
<a name="l00080"></a><a class="code" href="classitk_1_1DemonsRegistrationFunction.html#df4ca1012483a5632204caa7a5831be5">00080</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::FixedImageType     FixedImageType;
<a name="l00081"></a><a class="code" href="classitk_1_1DemonsRegistrationFunction.html#70f30324d5f49b1c137f515850d816d7">00081</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::FixedImagePointer  FixedImagePointer;
<a name="l00082"></a><a class="code" href="classitk_1_1DemonsRegistrationFunction.html#198bd2cdeea014425ed8a7cbb1f7184a">00082</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#be32dc19e71d40322ad9828b9ab40853">FixedImageType::IndexType</a>      <a class="code" href="namespaceHardConnectedComponentImageFilter.html#be32dc19e71d40322ad9828b9ab40853">IndexType</a>;
<a name="l00083"></a><a class="code" href="classitk_1_1DemonsRegistrationFunction.html#472e6942a0f418caf608f155c1f84d12">00083</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#5bf82236e1e50e653de84c8ead448599">FixedImageType::SizeType</a>       <a class="code" href="namespaceHardConnectedComponentImageFilter.html#5bf82236e1e50e653de84c8ead448599">SizeType</a>;
<a name="l00084"></a><a class="code" href="classitk_1_1DemonsRegistrationFunction.html#ce8f957e336847b484d031606e666c34">00084</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> FixedImageType::SpacingType    SpacingType;
<a name="l00085"></a>00085 
<a name="l00087"></a><a class="code" href="classitk_1_1DemonsRegistrationFunction.html#c9d7ab58d4388863d6f35bac71902085">00087</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::DeformationFieldType  DeformationFieldType;
<a name="l00088"></a>00088   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::DeformationFieldTypePointer
<a name="l00089"></a><a class="code" href="classitk_1_1DemonsRegistrationFunction.html#08ca86d24c4f1c89c91e73d0754d17f0">00089</a>                                                      DeformationFieldTypePointer;
<a name="l00090"></a>00090 
<a name="l00092"></a>00092   <a class="code" href="itkMacro_8h.html#1905cf6b2e88235996fa7ff73b2fb0eb">itkStaticConstMacro</a>(ImageDimension, <span class="keywordtype">unsigned</span> 
<a name="l00093"></a>00093 <span class="keywordtype">int</span>,Superclass::ImageDimension);
<a name="l00094"></a>00094 
<a name="l00096"></a><a class="code" href="classitk_1_1DemonsRegistrationFunction.html#f9380c3187ef14bfa18db3029d0d5439">00096</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::PixelType         PixelType;
<a name="l00097"></a><a class="code" href="classitk_1_1DemonsRegistrationFunction.html#55749ddd9c3ce409e6652c4a427a36f6">00097</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::RadiusType        RadiusType;
<a name="l00098"></a><a class="code" href="classitk_1_1DemonsRegistrationFunction.html#98bf16dde434c1ee9a4d135a49cf0fe7">00098</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="l00099"></a><a class="code" href="classitk_1_1DemonsRegistrationFunction.html#5e78c922bd254673905cf022c6834d5c">00099</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="l00100"></a><a class="code" href="classitk_1_1DemonsRegistrationFunction.html#96c89ab964eee21617b6d1bc45cc530c">00100</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::TimeStepType      TimeStepType;
<a name="l00101"></a>00101 
<a name="l00103"></a><a class="code" href="classitk_1_1DemonsRegistrationFunction.html#a8e5b433d857e8627aa009e7dbf1926a">00103</a>   <span class="keyword">typedef</span> <span class="keywordtype">double</span>                                     CoordRepType;
<a name="l00104"></a>00104   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1InterpolateImageFunction.html" title="Base class for all image interpolaters.">InterpolateImageFunction&lt;MovingImageType,CoordRepType&gt;</a> 
<a name="l00105"></a><a class="code" href="classitk_1_1DemonsRegistrationFunction.html#e764a66d51b12abb762c9fa0ea3f61c6">00105</a>                                                      <a class="code" href="classitk_1_1InterpolateImageFunction.html" title="Base class for all image interpolaters.">InterpolatorType</a>;
<a name="l00106"></a><a class="code" href="classitk_1_1DemonsRegistrationFunction.html#874213d9c4259e7402979d280dd61a9b">00106</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">InterpolatorType::Pointer</a>         <a class="code" href="classitk_1_1SmartPointer.html">InterpolatorPointer</a>;
<a name="l00107"></a><a class="code" href="classitk_1_1DemonsRegistrationFunction.html#a5cb8ea1b6f99b53d1ea3e2636a7dece">00107</a>   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1Point.html" title="A templated class holding a geometric point in n-Dimensional space.">InterpolatorType::PointType</a>       <a class="code" href="classitk_1_1Point.html" title="A templated class holding a geometric point in n-Dimensional space.">PointType</a>;
<a name="l00108"></a>00108   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1LinearInterpolateImageFunction.html" title="Linearly interpolate an image at specified positions.">LinearInterpolateImageFunction&lt;MovingImageType,CoordRepType&gt;</a>
<a name="l00109"></a><a class="code" href="classitk_1_1DemonsRegistrationFunction.html#ea4c74922fd509bdb8c42a841c54676a">00109</a>                                                      <a class="code" href="classitk_1_1LinearInterpolateImageFunction.html" title="Linearly interpolate an image at specified positions.">DefaultInterpolatorType</a>;
<a name="l00110"></a>00110 
<a name="l00112"></a>00112   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1CovariantVector.html" title="A templated class holding a n-Dimensional covariant vector.">CovariantVector&lt;double,itkGetStaticConstMacro(ImageDimension)&gt;</a> 
<a name="l00113"></a><a class="code" href="classitk_1_1DemonsRegistrationFunction.html#4a3100d5f4bf1094cb9d8aa3055c79b0">00113</a> <a class="code" href="classitk_1_1CovariantVector.html" title="A templated class holding a n-Dimensional covariant vector.">CovariantVectorType</a>;
<a name="l00114"></a>00114 
<a name="l00116"></a>00116   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1CentralDifferenceImageFunction.html" title="Calculate the derivative by central differencing.">CentralDifferenceImageFunction&lt;FixedImageType&gt;</a> 
<a name="l00117"></a><a class="code" href="classitk_1_1DemonsRegistrationFunction.html#0fac51282488ea380a34bad843da74aa">00117</a>                                                     <a class="code" href="classitk_1_1CentralDifferenceImageFunction.html" title="Calculate the derivative by central differencing.">GradientCalculatorType</a>;
<a name="l00118"></a>00118   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">GradientCalculatorType::Pointer</a>   
<a name="l00119"></a><a class="code" href="classitk_1_1DemonsRegistrationFunction.html#2b157f6c16e35b648e55024f3bca30fd">00119</a>                                                     <a class="code" href="classitk_1_1SmartPointer.html">GradientCalculatorPointer</a>;
<a name="l00120"></a>00120 
<a name="l00122"></a>00122   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1CentralDifferenceImageFunction.html" title="Calculate the derivative by central differencing.">CentralDifferenceImageFunction&lt;MovingImageType,CoordRepType&gt;</a>
<a name="l00123"></a><a class="code" href="classitk_1_1DemonsRegistrationFunction.html#eb9732c526fea6de12745715d63d67fb">00123</a>                                           <a class="code" href="classitk_1_1CentralDifferenceImageFunction.html" title="Calculate the derivative by central differencing.">MovingImageGradientCalculatorType</a>;
<a name="l00124"></a>00124   <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">MovingImageGradientCalculatorType::Pointer</a>
<a name="l00125"></a><a class="code" href="classitk_1_1DemonsRegistrationFunction.html#19b027f9fc0d7b55663e0a8df845b20f">00125</a>                                           <a class="code" href="classitk_1_1SmartPointer.html">MovingImageGradientCalculatorPointer</a>;
<a name="l00126"></a>00126 
<a name="l00128"></a><a class="code" href="classitk_1_1DemonsRegistrationFunction.html#694e0d238a9f98f54a7ead1f6e197ce8">00128</a>   <span class="keywordtype">void</span> SetMovingImageInterpolator( <a class="code" href="classitk_1_1InterpolateImageFunction.html" title="Base class for all image interpolaters.">InterpolatorType</a> * ptr )
<a name="l00129"></a>00129   { m_MovingImageInterpolator = ptr; }
<a name="l00130"></a>00130 
<a name="l00132"></a><a class="code" href="classitk_1_1DemonsRegistrationFunction.html#a62217c74467ee20812b428f5cfaa1a2">00132</a>   <a class="code" href="classitk_1_1InterpolateImageFunction.html" title="Base class for all image interpolaters.">InterpolatorType</a> * GetMovingImageInterpolator(<span class="keywordtype">void</span>)
<a name="l00133"></a>00133   { <span class="keywordflow">return</span> m_MovingImageInterpolator; }
<a name="l00134"></a>00134 
<a name="l00136"></a><a class="code" href="classitk_1_1DemonsRegistrationFunction.html#5db89e5e9ee0332ebce5592a11d9af30">00136</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"> </span>
<a name="l00137"></a>00137 <span class="keyword">const</span>
<a name="l00138"></a>00138 <span class="keyword">    </span>{ <span class="keywordflow">return</span> m_TimeStep; }
<a name="l00139"></a>00139 
<a name="l00142"></a><a class="code" href="classitk_1_1DemonsRegistrationFunction.html#a36e27631ece07e035e59ee6cf52a415">00142</a>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> *GetGlobalDataPointer()<span class="keyword"> const</span>
<a name="l00143"></a>00143 <span class="keyword">    </span>{
<a name="l00144"></a>00144     <a class="code" href="structitk_1_1DemonsRegistrationFunction_1_1GlobalDataStruct.html">GlobalDataStruct</a> *global = <span class="keyword">new</span> <a class="code" href="structitk_1_1DemonsRegistrationFunction_1_1GlobalDataStruct.html">GlobalDataStruct</a>();
<a name="l00145"></a>00145     global-&gt;<a class="code" href="structitk_1_1DemonsRegistrationFunction_1_1GlobalDataStruct.html#93c798ac8a585b12fbf37ded8f525c59">m_SumOfSquaredDifference</a>  = 0.0;
<a name="l00146"></a>00146     global-&gt;<a class="code" href="structitk_1_1DemonsRegistrationFunction_1_1GlobalDataStruct.html#603a6211eb91c5e404172fb49db92432">m_NumberOfPixelsProcessed</a> = 0L;
<a name="l00147"></a>00147     global-&gt;<a class="code" href="structitk_1_1DemonsRegistrationFunction_1_1GlobalDataStruct.html#9b9b18a941c47f5d23a80d550a85972b">m_SumOfSquaredChange</a>      = 0;
<a name="l00148"></a>00148     <span class="keywordflow">return</span> global;
<a name="l00149"></a>00149     }
<a name="l00151"></a>00151 
<a name="l00153"></a>00153   <span class="keyword">virtual</span> <span class="keywordtype">void</span> ReleaseGlobalDataPointer( <span class="keywordtype">void</span> *GlobalData ) <span class="keyword">const</span>;
<a name="l00154"></a>00154 
<a name="l00156"></a>00156   <span class="keyword">virtual</span> <span class="keywordtype">void</span> InitializeIteration();
<a name="l00157"></a>00157 
<a name="l00160"></a>00160   <span class="keyword">virtual</span> PixelType  ComputeUpdate(<span class="keyword">const</span> NeighborhoodType &amp;neighborhood,
<a name="l00161"></a>00161                                    <span class="keywordtype">void</span> *globalData,
<a name="l00162"></a>00162                                    <span class="keyword">const</span> FloatOffsetType &amp;offset = 
<a name="l00163"></a>00163 FloatOffsetType(0.0));
<a name="l00164"></a>00164 
<a name="l00168"></a><a class="code" href="classitk_1_1DemonsRegistrationFunction.html#cd5f587755d74c9e3e916e6c51cf08a7">00168</a>   <span class="keyword">virtual</span> <span class="keywordtype">double</span> GetMetric()<span class="keyword"> const</span>
<a name="l00169"></a>00169 <span class="keyword">    </span>{ <span class="keywordflow">return</span> m_Metric; }
<a name="l00170"></a>00170 
<a name="l00172"></a><a class="code" href="classitk_1_1DemonsRegistrationFunction.html#ddb76ac5190de2764e778f6c2bfd6f8a">00172</a>   <span class="keyword">virtual</span> <span class="keywordtype">double</span> GetRMSChange()<span class="keyword"> const</span>
<a name="l00173"></a>00173 <span class="keyword">    </span>{ <span class="keywordflow">return</span> m_RMSChange; }
<a name="l00174"></a>00174 
<a name="l00178"></a><a class="code" href="classitk_1_1DemonsRegistrationFunction.html#f39fb5e95e5a47b2a9373a87f48089e2">00178</a>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetUseMovingImageGradient( <span class="keywordtype">bool</span> flag )
<a name="l00179"></a>00179     { m_UseMovingImageGradient = flag; }
<a name="l00180"></a><a class="code" href="classitk_1_1DemonsRegistrationFunction.html#ef8018e0f9342b9ff7efc3a60142a866">00180</a>   <span class="keyword">virtual</span> <span class="keywordtype">bool</span> GetUseMovingImageGradient()<span class="keyword"> const</span>
<a name="l00181"></a>00181 <span class="keyword">    </span>{ <span class="keywordflow">return</span> m_UseMovingImageGradient; }
<a name="l00183"></a>00183 
<a name="l00188"></a>00188   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetIntensityDifferenceThreshold(<span class="keywordtype">double</span>);
<a name="l00189"></a>00189   <span class="keyword">virtual</span> <span class="keywordtype">double</span> GetIntensityDifferenceThreshold() <span class="keyword">const</span>;
<a name="l00191"></a>00191 
<a name="l00192"></a>00192 <span class="keyword">protected</span>:
<a name="l00193"></a>00193   <a class="code" href="classitk_1_1DemonsRegistrationFunction.html">DemonsRegistrationFunction</a>();
<a name="l00194"></a><a class="code" href="classitk_1_1DemonsRegistrationFunction.html#433f0fbf72326697eabcad7f6f23c46b">00194</a>   <a class="code" href="classitk_1_1DemonsRegistrationFunction.html#433f0fbf72326697eabcad7f6f23c46b">~DemonsRegistrationFunction</a>() {}
<a name="l00195"></a>00195   <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="l00196"></a>00196 
<a name="l00198"></a>00198   <span class="keyword">typedef</span> <a class="code" href="classitk_1_1ConstNeighborhoodIterator.html">ConstNeighborhoodIterator&lt;FixedImageType&gt;</a> 
<a name="l00199"></a><a class="code" href="classitk_1_1DemonsRegistrationFunction.html#c61a3b850f8e0d6a79c1d8c661da21e3">00199</a> <a class="code" href="classitk_1_1ConstNeighborhoodIterator.html">FixedImageNeighborhoodIteratorType</a>;
<a name="l00200"></a>00200 
<a name="l00203"></a><a class="code" href="structitk_1_1DemonsRegistrationFunction_1_1GlobalDataStruct.html">00203</a>   <span class="keyword">struct </span><a class="code" href="structitk_1_1DemonsRegistrationFunction_1_1GlobalDataStruct.html">GlobalDataStruct</a>
<a name="l00204"></a>00204     {
<a name="l00205"></a><a class="code" href="structitk_1_1DemonsRegistrationFunction_1_1GlobalDataStruct.html#93c798ac8a585b12fbf37ded8f525c59">00205</a>     <span class="keywordtype">double</span>          m_SumOfSquaredDifference;
<a name="l00206"></a><a class="code" href="structitk_1_1DemonsRegistrationFunction_1_1GlobalDataStruct.html#603a6211eb91c5e404172fb49db92432">00206</a>     <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>   m_NumberOfPixelsProcessed;
<a name="l00207"></a><a class="code" href="structitk_1_1DemonsRegistrationFunction_1_1GlobalDataStruct.html#9b9b18a941c47f5d23a80d550a85972b">00207</a>     <span class="keywordtype">double</span>          m_SumOfSquaredChange;
<a name="l00208"></a>00208     };
<a name="l00209"></a>00209 
<a name="l00210"></a>00210 <span class="keyword">private</span>:
<a name="l00211"></a>00211   <a class="code" href="classitk_1_1DemonsRegistrationFunction.html">DemonsRegistrationFunction</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1DemonsRegistrationFunction.html">Self</a>&amp;); <span class="comment">//purposely not implemented</span>
<a name="l00212"></a>00212   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="classitk_1_1DemonsRegistrationFunction.html">Self</a>&amp;); <span class="comment">//purposely not implemented</span>
<a name="l00213"></a>00213 
<a name="l00215"></a>00215   <span class="comment">//SpacingType                  m_FixedImageSpacing;</span>
<a name="l00216"></a>00216   <span class="comment">//PointType                    m_FixedImageOrigin;</span>
<a name="l00217"></a>00217   PixelType                       m_ZeroUpdateReturn;
<a name="l00218"></a>00218   <span class="keywordtype">double</span>                          m_Normalizer;
<a name="l00219"></a>00219 
<a name="l00221"></a>00221   <a class="code" href="classitk_1_1SmartPointer.html">GradientCalculatorPointer</a>       m_FixedImageGradientCalculator;
<a name="l00222"></a>00222 
<a name="l00224"></a>00224   <a class="code" href="classitk_1_1SmartPointer.html">MovingImageGradientCalculatorPointer</a>       m_MovingImageGradientCalculator;
<a name="l00225"></a>00225   <span class="keywordtype">bool</span>                                       m_UseMovingImageGradient;
<a name="l00226"></a>00226 
<a name="l00228"></a>00228   <a class="code" href="classitk_1_1SmartPointer.html">InterpolatorPointer</a>             m_MovingImageInterpolator;
<a name="l00229"></a>00229 
<a name="l00231"></a>00231   TimeStepType                    m_TimeStep;
<a name="l00232"></a>00232 
<a name="l00234"></a>00234   <span class="keywordtype">double</span>                          m_DenominatorThreshold;
<a name="l00235"></a>00235 
<a name="l00237"></a>00237   <span class="keywordtype">double</span>                          m_IntensityDifferenceThreshold;
<a name="l00238"></a>00238 
<a name="l00242"></a>00242   <span class="keyword">mutable</span> <span class="keywordtype">double</span>                  m_Metric;
<a name="l00243"></a>00243   <span class="keyword">mutable</span> <span class="keywordtype">double</span>                  m_SumOfSquaredDifference;
<a name="l00244"></a>00244   <span class="keyword">mutable</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>           m_NumberOfPixelsProcessed;
<a name="l00245"></a>00245   <span class="keyword">mutable</span> <span class="keywordtype">double</span>                  m_RMSChange;
<a name="l00246"></a>00246   <span class="keyword">mutable</span> <span class="keywordtype">double</span>                  m_SumOfSquaredChange;
<a name="l00247"></a>00247 
<a name="l00249"></a>00249   <span class="keyword">mutable</span> <a class="code" href="classitk_1_1SimpleFastMutexLock.html" title="Critical section locking class that can be allocated on the stack.">SimpleFastMutexLock</a>     m_MetricCalculationLock;
<a name="l00250"></a>00250 
<a name="l00251"></a>00251 };
<a name="l00252"></a>00252 
<a name="l00253"></a>00253 
<a name="l00254"></a>00254 } <span class="comment">// end namespace itk</span>
<a name="l00255"></a>00255 
<a name="l00256"></a>00256 <span class="preprocessor">#ifndef ITK_MANUAL_INSTANTIATION</span>
<a name="l00257"></a>00257 <span class="preprocessor"></span><span class="preprocessor">#include "itkDemonsRegistrationFunction.txx"</span>
<a name="l00258"></a>00258 <span class="preprocessor">#endif</span>
<a name="l00259"></a>00259 <span class="preprocessor"></span>
<a name="l00260"></a>00260 <span class="preprocessor">#endif</span>
<a name="l00261"></a>00261 <span class="preprocessor"></span>
</pre></div></div>
<hr><address><small>
Generated at Thu May 7 22:34:23 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>