<!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: itkGradientDifferenceImageToImageMetric.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_16b0d2d22c345042f35cebae66b36010.html">Algorithms</a> </div> <div class="contents"> <h1>itkGradientDifferenceImageToImageMetric.h</h1><a href="itkGradientDifferenceImageToImageMetric_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: itkGradientDifferenceImageToImageMetric.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-06-29 01:24:10 $</span> <a name="l00007"></a>00007 <span class="comment"> Version: $Revision: 1.9 $</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 __itkGradientDifferenceImageToImageMetric_h</span> <a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define __itkGradientDifferenceImageToImageMetric_h</span> <a name="l00019"></a>00019 <span class="preprocessor"></span> <a name="l00020"></a>00020 <span class="preprocessor">#include "<a class="code" href="itkImageToImageMetric_8h.html">itkImageToImageMetric.h</a>"</span> <a name="l00021"></a>00021 <a name="l00022"></a>00022 <span class="preprocessor">#include "<a class="code" href="itkSobelOperator_8h.html">itkSobelOperator.h</a>"</span> <a name="l00023"></a>00023 <span class="preprocessor">#include "<a class="code" href="itkNeighborhoodOperatorImageFilter_8h.html">itkNeighborhoodOperatorImageFilter.h</a>"</span> <a name="l00024"></a>00024 <span class="preprocessor">#include "<a class="code" href="itkPoint_8h.html">itkPoint.h</a>"</span> <a name="l00025"></a>00025 <span class="preprocessor">#include "<a class="code" href="itkCastImageFilter_8h.html">itkCastImageFilter.h</a>"</span> <a name="l00026"></a>00026 <span class="preprocessor">#include "<a class="code" href="itkResampleImageFilter_8h.html">itkResampleImageFilter.h</a>"</span> <a name="l00027"></a>00027 <a name="l00028"></a>00028 <span class="keyword">namespace </span>itk <a name="l00029"></a>00029 { <a name="l00055"></a>00055 <span class="keyword">template</span> < <span class="keyword">class</span> TFixedImage, <span class="keyword">class</span> TMovingImage > <a name="l00056"></a><a class="code" href="classitk_1_1GradientDifferenceImageToImageMetric.html">00056</a> <span class="keyword">class </span><a class="code" href="itkWin32Header_8h.html#7d4384322557205d75f0719c012dded6">ITK_EXPORT</a> <a class="code" href="classitk_1_1GradientDifferenceImageToImageMetric.html" title="Computes similarity between two objects to be registered.">GradientDifferenceImageToImageMetric</a> : <a name="l00057"></a>00057 <span class="keyword">public</span> <a class="code" href="classitk_1_1ImageToImageMetric.html" title="Computes similarity between regions of two images.">ImageToImageMetric</a>< TFixedImage, TMovingImage> <a name="l00058"></a>00058 { <a name="l00059"></a>00059 <span class="keyword">public</span>: <a name="l00060"></a>00060 <a name="l00062"></a><a class="code" href="classitk_1_1GradientDifferenceImageToImageMetric.html#b4449afab06c010e41e24110dcc9cb7b">00062</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1GradientDifferenceImageToImageMetric.html" title="Computes similarity between two objects to be registered.">GradientDifferenceImageToImageMetric</a> <a class="code" href="classitk_1_1GradientDifferenceImageToImageMetric.html" title="Computes similarity between two objects to be registered.">Self</a>; <a name="l00063"></a><a class="code" href="classitk_1_1GradientDifferenceImageToImageMetric.html#c0aa1b5f57afaac47e4e88276e758ea3">00063</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1ImageToImageMetric.html">ImageToImageMetric<TFixedImage, TMovingImage ></a> <a class="code" href="classitk_1_1ImageToImageMetric.html">Superclass</a>; <a name="l00064"></a>00064 <a name="l00065"></a><a class="code" href="classitk_1_1GradientDifferenceImageToImageMetric.html#6ad6975ca239bc101ca8c15d6b3d8e2e">00065</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="l00066"></a><a class="code" href="classitk_1_1GradientDifferenceImageToImageMetric.html#abae87099bf723bf4c7e56d2e6c1a71d">00066</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="l00067"></a>00067 <a name="l00069"></a>00069 <a class="code" href="itkMacro_8h.html#0fdc15685afa271857c57e7cd482f30c">itkNewMacro</a>(<a class="code" href="classitk_1_1GradientDifferenceImageToImageMetric.html" title="Computes similarity between two objects to be registered.">Self</a>); <a name="l00070"></a>00070 <a name="l00072"></a><a class="code" href="classitk_1_1GradientDifferenceImageToImageMetric.html#d567c3a90fd6f5429da5cd1dcfe6d6d6">00072</a> <a class="code" href="itkMacro_8h.html#574c1f86661d409dd32c742307a0e96a">itkTypeMacro</a>(<a class="code" href="classitk_1_1GradientDifferenceImageToImageMetric.html" title="Computes similarity between two objects to be registered.">GradientDifferenceImageToImageMetric</a>, <a class="code" href="classitk_1_1ImageToImageMetric.html" title="Computes similarity between regions of two images.">ImageToImageMetric</a>); <a name="l00073"></a>00073 <a name="l00074"></a>00074 <a name="l00076"></a>00076 <span class="comment">// Work around a Visual Studio .NET bug</span> <a name="l00077"></a>00077 <span class="preprocessor">#if defined(_MSC_VER) && (_MSC_VER == 1300)</span> <a name="l00078"></a>00078 <span class="preprocessor"></span> <span class="keyword">typedef</span> <span class="keywordtype">double</span> RealType; <a name="l00079"></a>00079 <span class="preprocessor">#else</span> <a name="l00080"></a>00080 <span class="preprocessor"></span> <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::RealType RealType; <a name="l00081"></a>00081 <span class="preprocessor">#endif</span> <a name="l00082"></a><a class="code" href="classitk_1_1GradientDifferenceImageToImageMetric.html#9d0015dae6e1d5a855ab8f992c75f8a3">00082</a> <span class="preprocessor"></span> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1Transform.html" title="Transform points and vector from an input space to an output space.">Superclass::TransformType</a> <a class="code" href="classitk_1_1Transform.html" title="Transform points and vector from an input space to an output space.">TransformType</a>; <a name="l00083"></a><a class="code" href="classitk_1_1GradientDifferenceImageToImageMetric.html#b51b78ebaf14693f8439707c17800c9e">00083</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">Superclass::TransformPointer</a> <a class="code" href="classitk_1_1SmartPointer.html">TransformPointer</a>; <a name="l00084"></a><a class="code" href="classitk_1_1GradientDifferenceImageToImageMetric.html#d3b8b75e40bc9c25252762ee9a29e2ec">00084</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::TransformParametersType TransformParametersType; <a name="l00085"></a><a class="code" href="classitk_1_1GradientDifferenceImageToImageMetric.html#b15886a55ce0f2d90ba77badfe01187c">00085</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1Array2D.html">Superclass::TransformJacobianType</a> <a class="code" href="classitk_1_1Array2D.html">TransformJacobianType</a>; <a name="l00086"></a>00086 <a name="l00087"></a><a class="code" href="classitk_1_1GradientDifferenceImageToImageMetric.html#d3a9309e77d99ad4b73ce935f451c047">00087</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::MeasureType MeasureType; <a name="l00088"></a><a class="code" href="classitk_1_1GradientDifferenceImageToImageMetric.html#0602e789390280c463cfe570999feb1b">00088</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1Array.html">Superclass::DerivativeType</a> <a class="code" href="classitk_1_1Array.html">DerivativeType</a>; <a name="l00089"></a><a class="code" href="classitk_1_1GradientDifferenceImageToImageMetric.html#aa0474887a4dd5556277128b235b2d45">00089</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::FixedImageType FixedImageType; <a name="l00090"></a><a class="code" href="classitk_1_1GradientDifferenceImageToImageMetric.html#826a0663cd32d0172f6f3306063c2e40">00090</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::MovingImageType MovingImageType; <a name="l00091"></a><a class="code" href="classitk_1_1GradientDifferenceImageToImageMetric.html#ca7e0bcb8c5913991af20e67976af379">00091</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::FixedImageConstPointer FixedImageConstPointer; <a name="l00092"></a><a class="code" href="classitk_1_1GradientDifferenceImageToImageMetric.html#93f4589f959c7d3b71694dadda9ab62c">00092</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::MovingImageConstPointer MovingImageConstPointer; <a name="l00093"></a>00093 <a name="l00094"></a><a class="code" href="classitk_1_1GradientDifferenceImageToImageMetric.html#c954c25299af92d335eeccb61e3f0c0a">00094</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> TFixedImage::PixelType FixedImagePixelType; <a name="l00095"></a><a class="code" href="classitk_1_1GradientDifferenceImageToImageMetric.html#df67ca79a7aab4207ef70f2b8485ebda">00095</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> TMovingImage::PixelType MovedImagePixelType; <a name="l00096"></a>00096 <a name="l00097"></a>00097 <a class="code" href="itkMacro_8h.html#1905cf6b2e88235996fa7ff73b2fb0eb">itkStaticConstMacro</a>(FixedImageDimension, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>, TFixedImage::ImageDimension); <a name="l00099"></a>00099 <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">itk::Image</a>< FixedImagePixelType, <a name="l00100"></a>00100 <a class="code" href="itkMacro_8h.html#94ef2dc11d52c8ef0a78e34558feb8cb">itkGetStaticConstMacro</a>( FixedImageDimension ) > <a name="l00101"></a><a class="code" href="classitk_1_1GradientDifferenceImageToImageMetric.html#a6c1679ace77f0ece3b088c7764f086c">00101</a> <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">TransformedMovingImageType</a>; <a name="l00102"></a>00102 <a name="l00103"></a>00103 <span class="keyword">typedef</span> <a class="code" href="classitk_1_1ResampleImageFilter.html" title="Resample an image via a coordinate transform.">itk::ResampleImageFilter< MovingImageType, TransformedMovingImageType ></a> <a name="l00104"></a><a class="code" href="classitk_1_1GradientDifferenceImageToImageMetric.html#74ce0fe0ceaffe2cdc9b910398e296b1">00104</a> <a class="code" href="classitk_1_1ResampleImageFilter.html" title="Resample an image via a coordinate transform.">TransformMovingImageFilterType</a>; <a name="l00105"></a>00105 <a name="l00108"></a>00108 <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">itk::Image</a>< RealType, <a name="l00109"></a>00109 <a class="code" href="itkMacro_8h.html#94ef2dc11d52c8ef0a78e34558feb8cb">itkGetStaticConstMacro</a>( FixedImageDimension ) > <a name="l00110"></a><a class="code" href="classitk_1_1GradientDifferenceImageToImageMetric.html#f4df4de1007f68635c430ac8464bad6e">00110</a> <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">FixedGradientImageType</a>; <a name="l00111"></a>00111 <a name="l00112"></a>00112 <span class="keyword">typedef</span> <a class="code" href="classitk_1_1CastImageFilter.html" title="Casts input pixels to output pixel type.">itk::CastImageFilter< FixedImageType, FixedGradientImageType ></a> <a name="l00113"></a><a class="code" href="classitk_1_1GradientDifferenceImageToImageMetric.html#65e0e14408e60f28393e44482ab54363">00113</a> <a class="code" href="classitk_1_1CastImageFilter.html" title="Casts input pixels to output pixel type.">CastFixedImageFilterType</a>; <a name="l00114"></a><a class="code" href="classitk_1_1GradientDifferenceImageToImageMetric.html#a9d33fb458d90de59ba71859abfd3e80">00114</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">CastFixedImageFilterType::Pointer</a> <a class="code" href="classitk_1_1SmartPointer.html">CastFixedImageFilterPointer</a>; <a name="l00115"></a>00115 <a name="l00116"></a><a class="code" href="classitk_1_1GradientDifferenceImageToImageMetric.html#458542e544f07b4f96c3aa0a35da08e5">00116</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> FixedGradientImageType::PixelType FixedGradientPixelType; <a name="l00117"></a>00117 <a name="l00118"></a>00118 <a name="l00121"></a>00121 <a class="code" href="itkMacro_8h.html#1905cf6b2e88235996fa7ff73b2fb0eb">itkStaticConstMacro</a>( MovedImageDimension, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>, <a name="l00122"></a>00122 MovingImageType::ImageDimension ); <a name="l00123"></a>00123 <a name="l00124"></a>00124 <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">itk::Image</a>< RealType, <a name="l00125"></a>00125 <a class="code" href="itkMacro_8h.html#94ef2dc11d52c8ef0a78e34558feb8cb">itkGetStaticConstMacro</a>( MovedImageDimension ) > <a name="l00126"></a><a class="code" href="classitk_1_1GradientDifferenceImageToImageMetric.html#0323035c1c029f259587b0365a575037">00126</a> <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">MovedGradientImageType</a>; <a name="l00127"></a>00127 <a name="l00128"></a>00128 <span class="keyword">typedef</span> <a class="code" href="classitk_1_1CastImageFilter.html" title="Casts input pixels to output pixel type.">itk::CastImageFilter< TransformedMovingImageType, MovedGradientImageType ></a> <a name="l00129"></a><a class="code" href="classitk_1_1GradientDifferenceImageToImageMetric.html#77da6860b63fc31b18955eb6d55cae0e">00129</a> <a class="code" href="classitk_1_1CastImageFilter.html" title="Casts input pixels to output pixel type.">CastMovedImageFilterType</a>; <a name="l00130"></a><a class="code" href="classitk_1_1GradientDifferenceImageToImageMetric.html#7067dc676cf15c708162e72c6408e08e">00130</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">CastMovedImageFilterType::Pointer</a> <a class="code" href="classitk_1_1SmartPointer.html">CastMovedImageFilterPointer</a>; <a name="l00131"></a>00131 <a name="l00132"></a><a class="code" href="classitk_1_1GradientDifferenceImageToImageMetric.html#87e47396ca66b12d9682444a9754c188">00132</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> MovedGradientImageType::PixelType MovedGradientPixelType; <a name="l00133"></a>00133 <a name="l00134"></a>00134 <a name="l00136"></a>00136 <span class="keywordtype">void</span> GetDerivative( <span class="keyword">const</span> TransformParametersType & parameters, <a name="l00137"></a>00137 <a class="code" href="classitk_1_1Array.html">DerivativeType</a> & derivative ) <span class="keyword">const</span>; <a name="l00138"></a>00138 <a name="l00140"></a>00140 MeasureType GetValue( <span class="keyword">const</span> TransformParametersType & parameters ) <span class="keyword">const</span>; <a name="l00141"></a>00141 <a name="l00143"></a>00143 <span class="keywordtype">void</span> GetValueAndDerivative( <span class="keyword">const</span> TransformParametersType & parameters, <a name="l00144"></a>00144 MeasureType& Value, <a class="code" href="classitk_1_1Array.html">DerivativeType</a>& derivative ) <span class="keyword">const</span>; <a name="l00145"></a>00145 <a name="l00148"></a>00148 <span class="keyword">virtual</span> <span class="keywordtype">void</span> Initialize(<span class="keywordtype">void</span>) throw ( ExceptionObject ); <a name="l00149"></a>00149 <a name="l00151"></a>00151 <span class="keywordtype">void</span> WriteGradientImagesToFiles(<span class="keywordtype">void</span>) const; <a name="l00152"></a>00152 <a name="l00155"></a>00155 <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>( DerivativeDelta, <span class="keywordtype">double</span> ); <a name="l00156"></a>00156 <a class="code" href="itkMacro_8h.html#7d989c13a1a213168db99ae0f84185d4">itkGetConstReferenceMacro</a>( DerivativeDelta, <span class="keywordtype">double</span> ); <a name="l00158"></a>00158 <a name="l00159"></a>00159 protected: <a name="l00160"></a>00160 <a class="code" href="classitk_1_1GradientDifferenceImageToImageMetric.html" title="Computes similarity between two objects to be registered.">GradientDifferenceImageToImageMetric</a>(); <a name="l00161"></a><a class="code" href="classitk_1_1GradientDifferenceImageToImageMetric.html#d7e719ca9f05279aa67f4cad5812e5b8">00161</a> virtual ~GradientDifferenceImageToImageMetric() {}; <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="keywordtype">void</span> ComputeMovedGradientRange( <span class="keywordtype">void</span> ) <span class="keyword">const</span>; <a name="l00166"></a>00166 <a name="l00168"></a>00168 <span class="keywordtype">void</span> ComputeVariance( <span class="keywordtype">void</span> ) <span class="keyword">const</span>; <a name="l00169"></a>00169 <a name="l00171"></a>00171 MeasureType ComputeMeasure( <span class="keyword">const</span> TransformParametersType &parameters, <a name="l00172"></a>00172 <span class="keyword">const</span> <span class="keywordtype">double</span> *subtractionFactor ) <span class="keyword">const</span>; <a name="l00173"></a>00173 <a name="l00174"></a>00174 <span class="keyword">typedef</span> <a class="code" href="classitk_1_1NeighborhoodOperatorImageFilter.html" title="Applies a single NeighborhoodOperator to an image region.">NeighborhoodOperatorImageFilter</a>< <a name="l00175"></a><a class="code" href="classitk_1_1GradientDifferenceImageToImageMetric.html#1fe42a46ccfe49a70a6a6d02bc59023b">00175</a> <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">FixedGradientImageType</a>, <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">FixedGradientImageType</a> > <a class="code" href="classitk_1_1NeighborhoodOperatorImageFilter.html" title="Applies a single NeighborhoodOperator to an image region.">FixedSobelFilter</a>; <a name="l00176"></a>00176 <a name="l00177"></a>00177 <span class="keyword">typedef</span> <a class="code" href="classitk_1_1NeighborhoodOperatorImageFilter.html" title="Applies a single NeighborhoodOperator to an image region.">NeighborhoodOperatorImageFilter</a>< <a name="l00178"></a><a class="code" href="classitk_1_1GradientDifferenceImageToImageMetric.html#9980d35998dc4b396c84875ff8edc2cb">00178</a> <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">MovedGradientImageType</a>, <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">MovedGradientImageType</a> > <a class="code" href="classitk_1_1NeighborhoodOperatorImageFilter.html" title="Applies a single NeighborhoodOperator to an image region.">MovedSobelFilter</a>; <a name="l00179"></a>00179 <a name="l00180"></a>00180 <span class="keyword">private</span>: <a name="l00181"></a>00181 <a class="code" href="classitk_1_1GradientDifferenceImageToImageMetric.html" title="Computes similarity between two objects to be registered.">GradientDifferenceImageToImageMetric</a>(<span class="keyword">const</span> <a class="code" href="classitk_1_1GradientDifferenceImageToImageMetric.html" title="Computes similarity between two objects to be registered.">Self</a>&); <span class="comment">//purposely not implemented</span> <a name="l00182"></a>00182 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="classitk_1_1GradientDifferenceImageToImageMetric.html" title="Computes similarity between two objects to be registered.">Self</a>&); <span class="comment">//purposely not implemented</span> <a name="l00183"></a>00183 <a name="l00185"></a>00185 <span class="keyword">mutable</span> MovedGradientPixelType m_Variance[FixedImageDimension]; <a name="l00186"></a>00186 <a name="l00188"></a>00188 <span class="keyword">mutable</span> MovedGradientPixelType m_MinMovedGradient[MovedImageDimension]; <a name="l00189"></a>00189 <span class="keyword">mutable</span> MovedGradientPixelType m_MaxMovedGradient[MovedImageDimension]; <a name="l00190"></a>00190 <a name="l00192"></a>00192 <span class="keyword">mutable</span> FixedGradientPixelType m_MinFixedGradient[FixedImageDimension]; <a name="l00193"></a>00193 <span class="keyword">mutable</span> FixedGradientPixelType m_MaxFixedGradient[FixedImageDimension]; <a name="l00194"></a>00194 <a name="l00196"></a>00196 <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">TransformMovingImageFilterType::Pointer</a> m_TransformMovingImageFilter; <a name="l00197"></a>00197 <a name="l00199"></a>00199 <a class="code" href="classitk_1_1SmartPointer.html">CastFixedImageFilterPointer</a> m_CastFixedImageFilter; <a name="l00200"></a>00200 <a name="l00201"></a>00201 SobelOperator< FixedGradientPixelType, <a name="l00202"></a>00202 <a class="code" href="itkMacro_8h.html#94ef2dc11d52c8ef0a78e34558feb8cb">itkGetStaticConstMacro</a>(FixedImageDimension) > <a name="l00203"></a>00203 m_FixedSobelOperators[FixedImageDimension]; <a name="l00204"></a>00204 <a name="l00205"></a>00205 <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">FixedSobelFilter::Pointer</a> m_FixedSobelFilters[<a class="code" href="itkMacro_8h.html#94ef2dc11d52c8ef0a78e34558feb8cb">itkGetStaticConstMacro</a>( FixedImageDimension )]; <a name="l00206"></a>00206 <a name="l00207"></a>00207 <a class="code" href="classitk_1_1ZeroFluxNeumannBoundaryCondition.html">ZeroFluxNeumannBoundaryCondition< MovedGradientImageType ></a> m_MovedBoundCond; <a name="l00208"></a>00208 <a class="code" href="classitk_1_1ZeroFluxNeumannBoundaryCondition.html">ZeroFluxNeumannBoundaryCondition< FixedGradientImageType ></a> m_FixedBoundCond; <a name="l00209"></a>00209 <a name="l00211"></a>00211 <a class="code" href="classitk_1_1SmartPointer.html">CastMovedImageFilterPointer</a> m_CastMovedImageFilter; <a name="l00212"></a>00212 <a name="l00213"></a>00213 SobelOperator< MovedGradientPixelType, <a name="l00214"></a>00214 <a class="code" href="itkMacro_8h.html#94ef2dc11d52c8ef0a78e34558feb8cb">itkGetStaticConstMacro</a>(MovedImageDimension) > <a name="l00215"></a>00215 m_MovedSobelOperators[MovedImageDimension]; <a name="l00216"></a>00216 <a name="l00217"></a>00217 <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">MovedSobelFilter::Pointer</a> m_MovedSobelFilters[<a class="code" href="itkMacro_8h.html#94ef2dc11d52c8ef0a78e34558feb8cb">itkGetStaticConstMacro</a>( MovedImageDimension )]; <a name="l00218"></a>00218 <a name="l00219"></a>00219 <span class="keywordtype">double</span> m_DerivativeDelta; <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 "itkGradientDifferenceImageToImageMetric.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:49:54 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>