<!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: itkDiffeomorphicDemonsRegistrationFilter.h Source File</title> <link href="DoxygenStyle.css" rel="stylesheet" type="text/css"> </head><body bgcolor="#ffffff"> <!-- Section customized for INSIGHT : Tue Jul 17 01:02:45 2001 --> <center> <a href="index.html" class="qindex">Main Page</a> <a href="modules.html" class="qindex">Groups</a> <a href="namespaces.html" class="qindex">Namespace List</a> <a href="hierarchy.html" class="qindex">Class Hierarchy</a> <a href="classes.html" class="qindex">Alphabetical List</a> <a href="annotated.html" class="qindex">Compound List</a> <a href="files.html" class="qindex">File List</a> <a href="namespacemembers.html" class="qindex">Namespace Members</a> <a href="functions.html" class="qindex">Compound Members</a> <a href="globals.html" class="qindex">File Members</a> <a href="pages.html" class="qindex">Concepts</a></center> <!-- Generated by Doxygen 1.5.9 --> <div class="navpath"><a class="el" href="dir_02e23d841c198393a6e961e9a0678fff.html">Code</a> » <a class="el" href="dir_dd352b1cbb04f9ff09fa5f33693fed9f.html">Review</a> </div> <div class="contents"> <h1>itkDiffeomorphicDemonsRegistrationFilter.h</h1><a href="itkDiffeomorphicDemonsRegistrationFilter_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*=========================================================================</span> <a name="l00002"></a>00002 <span class="comment"></span> <a name="l00003"></a>00003 <span class="comment"> Program: Insight Segmentation & Registration Toolkit</span> <a name="l00004"></a>00004 <span class="comment"> Module: $RCSfile: itkDiffeomorphicDemonsRegistrationFilter.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-07-05 00:07:02 $</span> <a name="l00007"></a>00007 <span class="comment"> Version: $Revision: 1.1 $</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 <a name="l00018"></a>00018 <span class="preprocessor">#ifndef __itkDiffeomorphicDemonsRegistrationFilter_h</span> <a name="l00019"></a>00019 <span class="preprocessor"></span><span class="preprocessor">#define __itkDiffeomorphicDemonsRegistrationFilter_h</span> <a name="l00020"></a>00020 <span class="preprocessor"></span> <a name="l00021"></a>00021 <span class="preprocessor">#include "<a class="code" href="itkPDEDeformableRegistrationFilter_8h.html">itkPDEDeformableRegistrationFilter.h</a>"</span> <a name="l00022"></a>00022 <span class="preprocessor">#include "<a class="code" href="itkESMDemonsRegistrationFunction_8h.html">itkESMDemonsRegistrationFunction.h</a>"</span> <a name="l00023"></a>00023 <a name="l00024"></a>00024 <span class="preprocessor">#include "<a class="code" href="itkMultiplyByConstantImageFilter_8h.html">itkMultiplyByConstantImageFilter.h</a>"</span> <a name="l00025"></a>00025 <span class="preprocessor">#include "<a class="code" href="itkExponentialDeformationFieldImageFilter_8h.html">itkExponentialDeformationFieldImageFilter.h</a>"</span> <a name="l00026"></a>00026 <span class="preprocessor">#include "<a class="code" href="itkWarpVectorImageFilter_8h.html">itkWarpVectorImageFilter.h</a>"</span> <a name="l00027"></a>00027 <span class="preprocessor">#include "<a class="code" href="itkVectorLinearInterpolateNearestNeighborExtrapolateImageFunction_8h.html">itkVectorLinearInterpolateNearestNeighborExtrapolateImageFunction.h</a>"</span> <a name="l00028"></a>00028 <span class="preprocessor">#include "<a class="code" href="itkAddImageFilter_8h.html">itkAddImageFilter.h</a>"</span> <a name="l00029"></a>00029 <a name="l00030"></a>00030 <span class="keyword">namespace </span>itk { <a name="l00031"></a>00031 <a name="l00079"></a>00079 <span class="keyword">template</span><<span class="keyword">class</span> TFixedImage, <span class="keyword">class</span> TMovingImage, <span class="keyword">class</span> TDeformationField> <a name="l00080"></a><a class="code" href="classitk_1_1DiffeomorphicDemonsRegistrationFilter.html">00080</a> <span class="keyword">class </span><a class="code" href="itkWin32Header_8h.html#7d4384322557205d75f0719c012dded6">ITK_EXPORT</a> <a class="code" href="classitk_1_1DiffeomorphicDemonsRegistrationFilter.html" title="Deformably register two images using a diffeomorphic demons algorithm.">DiffeomorphicDemonsRegistrationFilter</a> : <a name="l00081"></a>00081 <span class="keyword">public</span> <a class="code" href="classitk_1_1PDEDeformableRegistrationFilter.html" title="Deformably register two images using a PDE algorithm.">PDEDeformableRegistrationFilter</a>< TFixedImage, TMovingImage, <a name="l00082"></a>00082 TDeformationField> <a name="l00083"></a>00083 { <a name="l00084"></a>00084 <span class="keyword">public</span>: <a name="l00086"></a><a class="code" href="classitk_1_1DiffeomorphicDemonsRegistrationFilter.html#32508781cfa10c62fc02ad217b911a89">00086</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1DiffeomorphicDemonsRegistrationFilter.html" title="Deformably register two images using a diffeomorphic demons algorithm.">DiffeomorphicDemonsRegistrationFilter</a> <a class="code" href="classitk_1_1LightObject.html" title="Light weight base class for most itk classes.">Self</a>; <a name="l00087"></a>00087 <span class="keyword">typedef</span> <a class="code" href="classitk_1_1PDEDeformableRegistrationFilter.html" title="Deformably register two images using a PDE algorithm.">PDEDeformableRegistrationFilter</a>< <a name="l00088"></a><a class="code" href="classitk_1_1DiffeomorphicDemonsRegistrationFilter.html#21a381194cb6f3c3d5aabac28d56c99a">00088</a> TFixedImage, TMovingImage,TDeformationField> <a class="code" href="classitk_1_1LightObject.html" title="Light weight base class for most itk classes.">Superclass</a>; <a name="l00089"></a><a class="code" href="classitk_1_1DiffeomorphicDemonsRegistrationFilter.html#006e47796a75d5b92902d256eb345799">00089</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1SmartPointer.html">SmartPointer<Self></a> <a class="code" href="classitk_1_1SmartPointer.html">Pointer</a>; <a name="l00090"></a><a class="code" href="classitk_1_1DiffeomorphicDemonsRegistrationFilter.html#9c329e4480ead4426b4687b336915271">00090</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1SmartPointer.html">SmartPointer<const Self></a> <a class="code" href="classitk_1_1SmartPointer.html">ConstPointer</a>; <a name="l00091"></a>00091 <a name="l00093"></a>00093 <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="l00094"></a>00094 <a name="l00096"></a>00096 <a class="code" href="itkMacro_8h.html#574c1f86661d409dd32c742307a0e96a">itkTypeMacro</a>( <a class="code" href="classitk_1_1DiffeomorphicDemonsRegistrationFilter.html" title="Deformably register two images using a diffeomorphic demons algorithm.">DiffeomorphicDemonsRegistrationFilter</a>, <a name="l00097"></a><a class="code" href="classitk_1_1DiffeomorphicDemonsRegistrationFilter.html#3a08423277533e690289a5ed909e6788">00097</a> <a class="code" href="classitk_1_1PDEDeformableRegistrationFilter.html" title="Deformably register two images using a PDE algorithm.">PDEDeformableRegistrationFilter</a> ); <a name="l00098"></a>00098 <a name="l00100"></a>00100 <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::FixedImageType FixedImageType; <a name="l00101"></a><a class="code" href="classitk_1_1DiffeomorphicDemonsRegistrationFilter.html#cde5bdaaf62f68d986fa24e48b241959">00101</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::FixedImagePointer FixedImagePointer; <a name="l00102"></a>00102 <a name="l00104"></a><a class="code" href="classitk_1_1DiffeomorphicDemonsRegistrationFilter.html#4bb1794115181c182dea4b9b4e2caac6">00104</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::MovingImageType MovingImageType; <a name="l00105"></a><a class="code" href="classitk_1_1DiffeomorphicDemonsRegistrationFilter.html#5ceedd67bd87f66f6fa2785641d0497d">00105</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::MovingImagePointer MovingImagePointer; <a name="l00106"></a>00106 <a name="l00108"></a><a class="code" href="classitk_1_1DiffeomorphicDemonsRegistrationFilter.html#0d4b13dc7d93165f1f1cbaca89bace20">00108</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::DeformationFieldType DeformationFieldType; <a name="l00109"></a><a class="code" href="classitk_1_1DiffeomorphicDemonsRegistrationFilter.html#775f6c5b158f7e4cbd4bba1d79d344c3">00109</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::DeformationFieldPointer DeformationFieldPointer; <a name="l00110"></a>00110 <a name="l00112"></a>00112 <span class="keyword">typedef</span> <span class="keyword">typename</span> <a name="l00113"></a><a class="code" href="classitk_1_1DiffeomorphicDemonsRegistrationFilter.html#b37551bee3d6fcdfd257cee820fab867">00113</a> Superclass::FiniteDifferenceFunctionType FiniteDifferenceFunctionType; <a name="l00114"></a>00114 <a name="l00116"></a>00116 <span class="keyword">typedef</span> <span class="keyword">typename</span> <a name="l00117"></a><a class="code" href="classitk_1_1DiffeomorphicDemonsRegistrationFilter.html#c9b75c37d3fc7dd6f6494c110ea261f6">00117</a> FiniteDifferenceFunctionType::TimeStepType TimeStepType; <a name="l00118"></a>00118 <a name="l00120"></a>00120 <span class="keyword">typedef</span> <a class="code" href="classitk_1_1ESMDemonsRegistrationFunction.html" title="Fast implementation of the symmetric demons registration force.">ESMDemonsRegistrationFunction</a>< <a name="l00121"></a>00121 FixedImageType, <a name="l00122"></a><a class="code" href="classitk_1_1DiffeomorphicDemonsRegistrationFilter.html#690fc129c9169b5c1b7f8c12558a5b8b">00122</a> MovingImageType, DeformationFieldType> <a class="code" href="classitk_1_1ESMDemonsRegistrationFunction.html" title="Fast implementation of the symmetric demons registration force.">DemonsRegistrationFunctionType</a>; <a name="l00123"></a>00123 <span class="keyword">typedef</span> <span class="keyword">typename</span> <a name="l00124"></a><a class="code" href="classitk_1_1DiffeomorphicDemonsRegistrationFilter.html#b8b0498b222ee1c5400a9eaf0409c506">00124</a> <a class="code" href="classitk_1_1ESMDemonsRegistrationFunction.html#397739fb120e4b5571f6ab94797e429a">DemonsRegistrationFunctionType::GradientType</a> <a class="code" href="classitk_1_1ESMDemonsRegistrationFunction.html#397739fb120e4b5571f6ab94797e429a">GradientType</a>; <a name="l00125"></a>00125 <a name="l00130"></a>00130 <span class="keyword">virtual</span> <span class="keywordtype">double</span> GetMetric() <span class="keyword">const</span>; <a name="l00131"></a>00131 <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">double</span> &GetRMSChange() <span class="keyword">const</span>; <a name="l00133"></a>00133 <a name="l00134"></a>00134 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetUseGradientType( <a class="code" href="classitk_1_1ESMDemonsRegistrationFunction.html#397739fb120e4b5571f6ab94797e429a">GradientType</a> gtype ); <a name="l00135"></a>00135 <span class="keyword">virtual</span> <a class="code" href="classitk_1_1ESMDemonsRegistrationFunction.html#397739fb120e4b5571f6ab94797e429a">GradientType</a> GetUseGradientType() <span class="keyword">const</span>; <a name="l00136"></a>00136 <a name="l00140"></a>00140 <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>( UseFirstOrderExp, <span class="keywordtype">bool</span> ); <a name="l00141"></a>00141 <a class="code" href="itkMacro_8h.html#1600305bb01e39e87c472d8bf29bd1cf">itkGetMacro</a>( UseFirstOrderExp, <span class="keywordtype">bool</span> ); <a name="l00142"></a>00142 <a class="code" href="itkMacro_8h.html#9e7d129ffebb09fd28bc213e02d87248">itkBooleanMacro</a>( UseFirstOrderExp ); <a name="l00144"></a>00144 <a name="l00149"></a>00149 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetIntensityDifferenceThreshold(<span class="keywordtype">double</span>); <a name="l00150"></a>00150 <span class="keyword">virtual</span> <span class="keywordtype">double</span> GetIntensityDifferenceThreshold() <span class="keyword">const</span>; <a name="l00152"></a>00152 <a name="l00155"></a>00155 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetMaximumUpdateStepLength(<span class="keywordtype">double</span>); <a name="l00156"></a>00156 <span class="keyword">virtual</span> <span class="keywordtype">double</span> GetMaximumUpdateStepLength() <span class="keyword">const</span>; <a name="l00158"></a>00158 <a name="l00159"></a>00159 <span class="keyword">protected</span>: <a name="l00160"></a>00160 <a class="code" href="classitk_1_1DiffeomorphicDemonsRegistrationFilter.html" title="Deformably register two images using a diffeomorphic demons algorithm.">DiffeomorphicDemonsRegistrationFilter</a>(); <a name="l00161"></a><a class="code" href="classitk_1_1DiffeomorphicDemonsRegistrationFilter.html#031c8918d463206b784fb2c507e59847">00161</a> <a class="code" href="classitk_1_1DiffeomorphicDemonsRegistrationFilter.html#031c8918d463206b784fb2c507e59847">~DiffeomorphicDemonsRegistrationFilter</a>() {} <a name="l00162"></a>00162 <span class="keywordtype">void</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#920ae03048a5ad715d803ca2e92b52de">PrintSelf</a>(std::ostream& os, <a class="code" href="classitk_1_1Indent.html" title="Control indentation during Print() invocation.">Indent</a> indent) <span class="keyword">const</span>; <a name="l00163"></a>00163 <a name="l00165"></a>00165 <span class="keyword">virtual</span> <span class="keywordtype">void</span> InitializeIteration(); <a name="l00166"></a>00166 <a name="l00169"></a>00169 <span class="keyword">virtual</span> <span class="keywordtype">void</span> AllocateUpdateBuffer(); <a name="l00170"></a>00170 <a name="l00172"></a>00172 <span class="keyword">virtual</span> <span class="keywordtype">void</span> ApplyUpdate(TimeStepType dt); <a name="l00173"></a>00173 <a name="l00174"></a>00174 <span class="keyword">private</span>: <a name="l00175"></a>00175 <a class="code" href="classitk_1_1DiffeomorphicDemonsRegistrationFilter.html" title="Deformably register two images using a diffeomorphic demons algorithm.">DiffeomorphicDemonsRegistrationFilter</a>(<span class="keyword">const</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ac7d0120fe5292cdcdddb6163b8cb150">Self</a>&); <span class="comment">//purposely not implemented</span> <a name="l00176"></a>00176 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ac7d0120fe5292cdcdddb6163b8cb150">Self</a>&); <span class="comment">//purposely not implemented</span> <a name="l00177"></a>00177 <a name="l00180"></a>00180 DemonsRegistrationFunctionType * DownCastDifferenceFunctionType(); <a name="l00181"></a>00181 <span class="keyword">const</span> DemonsRegistrationFunctionType * DownCastDifferenceFunctionType() <span class="keyword">const</span>; <a name="l00183"></a>00183 <a name="l00184"></a>00184 <a name="l00186"></a>00186 <span class="keyword">typedef</span> <a class="code" href="classitk_1_1MultiplyByConstantImageFilter.html" title="Multiply input pixels by a constant.">MultiplyByConstantImageFilter</a>< <a name="l00187"></a>00187 DeformationFieldType, <a name="l00188"></a>00188 TimeStepType, DeformationFieldType > MultiplyByConstantType; <a name="l00189"></a>00189 <a name="l00190"></a>00190 <span class="keyword">typedef</span> <a class="code" href="classitk_1_1ExponentialDeformationFieldImageFilter.html" title="Computes a diffeomorphic deformation field as the Lie group exponential of a vector...">ExponentialDeformationFieldImageFilter</a>< <a name="l00191"></a>00191 DeformationFieldType, DeformationFieldType > FieldExponentiatorType; <a name="l00192"></a>00192 <a name="l00193"></a>00193 <a name="l00194"></a>00194 <span class="keyword">typedef</span> <a class="code" href="classitk_1_1WarpVectorImageFilter.html" title="Warps an image using an input deformation field.">WarpVectorImageFilter</a>< <a name="l00195"></a>00195 DeformationFieldType, <a name="l00196"></a>00196 DeformationFieldType, DeformationFieldType> VectorWarperType; <a name="l00197"></a>00197 <a name="l00198"></a>00198 <span class="keyword">typedef</span> <a class="code" href="classitk_1_1VectorLinearInterpolateNearestNeighborExtrapolateImageFunction.html" title="Linearly interpolate or NN extrapolate a vector image at specified positions.">VectorLinearInterpolateNearestNeighborExtrapolateImageFunction</a>< <a name="l00199"></a>00199 DeformationFieldType, <span class="keywordtype">double</span>> FieldInterpolatorType; <a name="l00200"></a>00200 <a name="l00201"></a>00201 <span class="keyword">typedef</span> <a class="code" href="classitk_1_1AddImageFilter.html" title="Implements an operator for pixel-wise addition of two images.">AddImageFilter</a>< <a name="l00202"></a>00202 DeformationFieldType, <a name="l00203"></a>00203 DeformationFieldType, DeformationFieldType> AdderType; <a name="l00204"></a>00204 <a name="l00205"></a>00205 <a name="l00206"></a>00206 <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="itkFEMMacro_8h.html#539cce1a3282ba59952dedcbf9cdb23f">MultiplyByConstantType::Pointer</a> MultiplyByConstantPointer; <a name="l00207"></a>00207 <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="itkFEMMacro_8h.html#539cce1a3282ba59952dedcbf9cdb23f">FieldExponentiatorType::Pointer</a> FieldExponentiatorPointer; <a name="l00208"></a>00208 <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="itkFEMMacro_8h.html#539cce1a3282ba59952dedcbf9cdb23f">VectorWarperType::Pointer</a> VectorWarperPointer; <a name="l00209"></a>00209 <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="itkFEMMacro_8h.html#539cce1a3282ba59952dedcbf9cdb23f">FieldInterpolatorType::Pointer</a> FieldInterpolatorPointer; <a name="l00210"></a>00210 <span class="keyword">typedef</span> <span class="keyword">typename</span> FieldInterpolatorType::OutputType FieldInterpolatorOutputType; <a name="l00211"></a>00211 <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="itkFEMMacro_8h.html#539cce1a3282ba59952dedcbf9cdb23f">AdderType::Pointer</a> AdderPointer; <a name="l00212"></a>00212 <a name="l00213"></a>00213 <a name="l00214"></a>00214 MultiplyByConstantPointer m_Multiplier; <a name="l00215"></a>00215 FieldExponentiatorPointer m_Exponentiator; <a name="l00216"></a>00216 VectorWarperPointer m_Warper; <a name="l00217"></a>00217 AdderPointer m_Adder; <a name="l00218"></a>00218 <span class="keywordtype">bool</span> m_UseFirstOrderExp; <a name="l00219"></a>00219 }; <a name="l00220"></a>00220 <a name="l00221"></a>00221 <a name="l00222"></a>00222 } <span class="comment">// end namespace itk</span> <a name="l00223"></a>00223 <a name="l00224"></a>00224 <span class="preprocessor">#ifndef ITK_MANUAL_INSTANTIATION</span> <a name="l00225"></a>00225 <span class="preprocessor"></span><span class="preprocessor">#include "itkDiffeomorphicDemonsRegistrationFilter.txx"</span> <a name="l00226"></a>00226 <span class="preprocessor">#endif</span> <a name="l00227"></a>00227 <span class="preprocessor"></span> <a name="l00228"></a>00228 <span class="preprocessor">#endif</span> <a name="l00229"></a>00229 <span class="preprocessor"></span> </pre></div></div> <hr><address><small> Generated at Thu May 7 22:35: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>, © 1997-2000</small></address> </body> </html>