<!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: itkDeformationFieldSource.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_00ffda33c24cbbf617b202f4f3bcb7e8.html">BasicFilters</a> </div> <div class="contents"> <h1>itkDeformationFieldSource.h</h1><a href="itkDeformationFieldSource_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: itkDeformationFieldSource.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-14 19:20:33 $</span> <a name="l00007"></a>00007 <span class="comment"> Version: $Revision: 1.5 $</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 __itkDeformationFieldSource_h</span> <a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define __itkDeformationFieldSource_h</span> <a name="l00019"></a>00019 <span class="preprocessor"></span> <a name="l00020"></a>00020 <span class="preprocessor">#include "<a class="code" href="itkImageSource_8h.html">itkImageSource.h</a>"</span> <a name="l00021"></a>00021 <span class="preprocessor">#include "<a class="code" href="itkKernelTransform_8h.html">itkKernelTransform.h</a>"</span> <a name="l00022"></a>00022 <span class="preprocessor">#include "<a class="code" href="itkImageRegionIteratorWithIndex_8h.html">itkImageRegionIteratorWithIndex.h</a>"</span> <a name="l00023"></a>00023 <a name="l00024"></a>00024 <span class="keyword">namespace </span>itk <a name="l00025"></a>00025 { <a name="l00026"></a>00026 <a name="l00047"></a>00047 <span class="keyword">template</span> <<span class="keyword">class</span> TOutputImage> <a name="l00048"></a><a class="code" href="classitk_1_1DeformationFieldSource.html">00048</a> <span class="keyword">class </span><a class="code" href="itkWin32Header_8h.html#7d4384322557205d75f0719c012dded6">ITK_EXPORT</a> <a class="code" href="classitk_1_1DeformationFieldSource.html" title="Computes a deformation field from two sets of landmarks.">DeformationFieldSource</a>: <a name="l00049"></a>00049 <span class="keyword">public</span> <a class="code" href="classitk_1_1ImageSource.html" title="Base class for all process objects that output image data.">ImageSource</a><TOutputImage> <a name="l00050"></a>00050 { <a name="l00051"></a>00051 <span class="keyword">public</span>: <a name="l00053"></a><a class="code" href="classitk_1_1DeformationFieldSource.html#ae0ef352579c8aa735e5361d1541104a">00053</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1DeformationFieldSource.html" title="Computes a deformation field from two sets of landmarks.">DeformationFieldSource</a> <a class="code" href="classitk_1_1DeformationFieldSource.html" title="Computes a deformation field from two sets of landmarks.">Self</a>; <a name="l00054"></a><a class="code" href="classitk_1_1DeformationFieldSource.html#7bcd3ba5f8bc03b04f05e6491c4c49dd">00054</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1ImageSource.html">ImageSource<TOutputImage></a> <a class="code" href="classitk_1_1ImageSource.html">Superclass</a>; <a name="l00055"></a><a class="code" href="classitk_1_1DeformationFieldSource.html#ff3f8f4f8c886b08afaf21f656035749">00055</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="l00056"></a><a class="code" href="classitk_1_1DeformationFieldSource.html#8f75964aa79afd0ef64e265ab990ebb6">00056</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="l00057"></a>00057 <a name="l00058"></a><a class="code" href="classitk_1_1DeformationFieldSource.html#d8c507af034e4464ff5013b3ddf87d32">00058</a> <span class="keyword">typedef</span> TOutputImage <a class="code" href="namespaceHardConnectedComponentImageFilter.html#386ea018cab3835dcdff2603f4d2280e">OutputImageType</a>; <a name="l00059"></a><a class="code" href="classitk_1_1DeformationFieldSource.html#12e56b6e63edd81985836a76b38d63f4">00059</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="itkFEMMacro_8h.html#539cce1a3282ba59952dedcbf9cdb23f">OutputImageType::Pointer</a> OutputImagePointer; <a name="l00060"></a><a class="code" href="classitk_1_1DeformationFieldSource.html#3c3a3520e08c4def48b27949bb41e5de">00060</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ed8c4a40607d317c666eb96ea265e126">OutputImageType::RegionType</a> OutputImageRegionType; <a name="l00061"></a>00061 <a name="l00063"></a>00063 <a class="code" href="itkMacro_8h.html#0fdc15685afa271857c57e7cd482f30c">itkNewMacro</a>(<a class="code" href="classitk_1_1DeformationFieldSource.html" title="Computes a deformation field from two sets of landmarks.">Self</a>); <a name="l00064"></a>00064 <a name="l00066"></a>00066 <a class="code" href="itkMacro_8h.html#574c1f86661d409dd32c742307a0e96a">itkTypeMacro</a>(<a class="code" href="classitk_1_1DeformationFieldSource.html" title="Computes a deformation field from two sets of landmarks.">DeformationFieldSource</a>, <a class="code" href="classitk_1_1ImageSource.html" title="Base class for all process objects that output image data.">ImageSource</a>); <a name="l00067"></a>00067 <a name="l00069"></a>00069 <a class="code" href="itkMacro_8h.html#1905cf6b2e88235996fa7ff73b2fb0eb">itkStaticConstMacro</a>(ImageDimension, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>, <a name="l00070"></a>00070 TOutputImage::ImageDimension); <a name="l00071"></a>00071 <a name="l00076"></a><a class="code" href="classitk_1_1DeformationFieldSource.html#5a93a105982779c715e649a6da3f6a23">00076</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1KernelTransform.html">KernelTransform<double, itkGetStaticConstMacro(ImageDimension)></a> <a class="code" href="classitk_1_1KernelTransform.html">KernelTransformType</a>; <a name="l00077"></a><a class="code" href="classitk_1_1DeformationFieldSource.html#e6a47258aed97b8e90a13aae0ce0cba9">00077</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1PointSet.html" title="A superclass of the N-dimensional mesh structure; supports point (geometric coordinate...">KernelTransformType::PointSetType</a> <a class="code" href="classitk_1_1PointSet.html" title="A superclass of the N-dimensional mesh structure; supports point (geometric coordinate...">LandmarkPointSetType</a>; <a name="l00078"></a><a class="code" href="classitk_1_1DeformationFieldSource.html#5905b10943b25c12873fa98776f530d3">00078</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> LandmarkPointSetType::PointType LandmarkPointType; <a name="l00079"></a><a class="code" href="classitk_1_1DeformationFieldSource.html#9fd19aee1d05fda42996330d057b3dcb">00079</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">KernelTransformType::Pointer</a> <a class="code" href="classitk_1_1SmartPointer.html">KernelTransformPointerType</a>; <a name="l00080"></a><a class="code" href="classitk_1_1DeformationFieldSource.html#87902c53c5f8dffc30088c415019d159">00080</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> KernelTransformType::PointsContainer LandmarkContainer; <a name="l00081"></a><a class="code" href="classitk_1_1DeformationFieldSource.html#a9c8a21f4cc456a3ce2e9cf437715198">00081</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="itkFEMMacro_8h.html#68fafcc6909430ccd70cbc4aeee0107c">LandmarkContainer::ConstPointer</a> LandmarkContainerPointer; <a name="l00082"></a>00082 <a name="l00083"></a>00083 <a name="l00085"></a><a class="code" href="classitk_1_1DeformationFieldSource.html#58fc89a0096bff1bc0bd223eb0731887">00085</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#5bf82236e1e50e653de84c8ead448599">OutputImageType::SizeType</a> OutputSizeType; <a name="l00086"></a>00086 <a name="l00088"></a><a class="code" href="classitk_1_1DeformationFieldSource.html#c72bc82f8abacf1035011a516f54f079">00088</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#be32dc19e71d40322ad9828b9ab40853">OutputImageType::IndexType</a> OutputIndexType; <a name="l00089"></a>00089 <a name="l00091"></a><a class="code" href="classitk_1_1DeformationFieldSource.html#2b65298c5c8b6cbdb56ab14bb11443fa">00091</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> TOutputImage::PixelType <a class="code" href="namespaceHardConnectedComponentImageFilter.html#73549c9066bb62470db248f27cde10d2">OutputPixelType</a>; <a name="l00092"></a><a class="code" href="classitk_1_1DeformationFieldSource.html#4a2e23cec3b8dd51d8ca34f03542281d">00092</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> OutputPixelType::ValueType OutputPixelComponentType; <a name="l00093"></a>00093 <a name="l00095"></a><a class="code" href="classitk_1_1DeformationFieldSource.html#7e69a10511dce48d2c7aa197d9ffbd66">00095</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> TOutputImage::SpacingType SpacingType; <a name="l00096"></a><a class="code" href="classitk_1_1DeformationFieldSource.html#010e928e3449ac2fdc7951d69caa3d86">00096</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> TOutputImage::PointType OriginPointType; <a name="l00097"></a>00097 <a name="l00101"></a>00101 <a class="code" href="itkMacro_8h.html#b950b763422e5059348e6178e2a5f425">itkSetObjectMacro</a>( <a class="code" href="classitk_1_1KernelTransform.html">KernelTransform</a>, <a class="code" href="classitk_1_1KernelTransform.html">KernelTransformType</a> ); <a name="l00102"></a>00102 <a name="l00104"></a>00104 <a class="code" href="itkMacro_8h.html#f6bef9ee7e4c077b96a08848ed4e7660">itkGetObjectMacro</a>( <a class="code" href="classitk_1_1KernelTransform.html">KernelTransform</a>, <a class="code" href="classitk_1_1KernelTransform.html">KernelTransformType</a> ); <a name="l00105"></a>00105 <a name="l00107"></a>00107 <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>( OutputRegion, OutputImageRegionType ); <a name="l00108"></a>00108 <a name="l00110"></a>00110 <a class="code" href="itkMacro_8h.html#7d989c13a1a213168db99ae0f84185d4">itkGetConstReferenceMacro</a>( OutputRegion, OutputImageRegionType ); <a name="l00111"></a>00111 <a name="l00113"></a>00113 <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>(OutputSpacing, SpacingType); <a name="l00114"></a>00114 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetOutputSpacing( <span class="keyword">const</span> <span class="keywordtype">double</span>* values); <a name="l00116"></a>00116 <a name="l00118"></a>00118 <a class="code" href="itkMacro_8h.html#7d989c13a1a213168db99ae0f84185d4">itkGetConstReferenceMacro</a>( OutputSpacing, SpacingType ); <a name="l00119"></a>00119 <a name="l00121"></a>00121 <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>(OutputOrigin, OriginPointType); <a name="l00122"></a>00122 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetOutputOrigin( <span class="keyword">const</span> <span class="keywordtype">double</span>* values); <a name="l00124"></a>00124 <a name="l00126"></a>00126 <a class="code" href="itkMacro_8h.html#7d989c13a1a213168db99ae0f84185d4">itkGetConstReferenceMacro</a>( OutputOrigin, OriginPointType ); <a name="l00127"></a>00127 <a name="l00129"></a>00129 <a class="code" href="itkMacro_8h.html#1e680e0abf41fd9bbefa2829ea3d1e6a">itkSetConstObjectMacro</a>( SourceLandmarks, LandmarkContainer ); <a name="l00130"></a>00130 <a class="code" href="itkMacro_8h.html#1e680e0abf41fd9bbefa2829ea3d1e6a">itkSetConstObjectMacro</a>( TargetLandmarks, LandmarkContainer ); <a name="l00132"></a>00132 <a name="l00138"></a>00138 <span class="keyword">virtual</span> <span class="keywordtype">void</span> GenerateOutputInformation(); <a name="l00139"></a>00139 <a name="l00140"></a>00140 <a name="l00142"></a>00142 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> GetMTime( <span class="keywordtype">void</span> ) <span class="keyword">const</span>; <a name="l00143"></a>00143 <a name="l00144"></a>00144 <span class="keyword">protected</span>: <a name="l00145"></a>00145 <a class="code" href="classitk_1_1DeformationFieldSource.html" title="Computes a deformation field from two sets of landmarks.">DeformationFieldSource</a>(); <a name="l00146"></a><a class="code" href="classitk_1_1DeformationFieldSource.html#3a6f89029443dbba2d038da671384af2">00146</a> <a class="code" href="classitk_1_1DeformationFieldSource.html#3a6f89029443dbba2d038da671384af2">~DeformationFieldSource</a>() {}; <a name="l00147"></a>00147 <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="l00148"></a>00148 <a name="l00153"></a>00153 <span class="keywordtype">void</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#f75a5945cdd8315676941024a0b8c1e9">GenerateData</a>(); <a name="l00154"></a>00154 <a name="l00158"></a>00158 <span class="keywordtype">void</span> PrepareKernelBaseSpline(); <a name="l00159"></a>00159 <a name="l00160"></a>00160 <span class="keyword">private</span>: <a name="l00161"></a>00161 <a class="code" href="classitk_1_1DeformationFieldSource.html" title="Computes a deformation field from two sets of landmarks.">DeformationFieldSource</a>(<span class="keyword">const</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ac7d0120fe5292cdcdddb6163b8cb150">Self</a>&); <span class="comment">//purposely not implemented</span> <a name="l00162"></a>00162 <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="l00163"></a>00163 <a name="l00164"></a>00164 KernelTransformPointerType m_KernelTransform; <span class="comment">// Coordinate transform to use</span> <a name="l00165"></a>00165 <a name="l00166"></a>00166 OutputImageRegionType m_OutputRegion; <span class="comment">// Region of the output image</span> <a name="l00167"></a>00167 SpacingType m_OutputSpacing; <span class="comment">// output image spacing</span> <a name="l00168"></a>00168 OriginPointType m_OutputOrigin; <span class="comment">// output image origin</span> <a name="l00169"></a>00169 <a name="l00170"></a>00170 LandmarkContainerPointer m_SourceLandmarks; <span class="comment">// List of source landmarks</span> <a name="l00171"></a>00171 LandmarkContainerPointer m_TargetLandmarks; <span class="comment">// List of target landmarks</span> <a name="l00172"></a>00172 <a name="l00173"></a>00173 }; <a name="l00174"></a>00174 <a name="l00175"></a>00175 <a name="l00176"></a>00176 } <span class="comment">// end namespace itk</span> <a name="l00177"></a>00177 <a name="l00178"></a>00178 <span class="preprocessor">#ifndef ITK_MANUAL_INSTANTIATION</span> <a name="l00179"></a>00179 <span class="preprocessor"></span><span class="preprocessor">#include "itkDeformationFieldSource.txx"</span> <a name="l00180"></a>00180 <span class="preprocessor">#endif</span> <a name="l00181"></a>00181 <span class="preprocessor"></span> <a name="l00182"></a>00182 <span class="preprocessor">#endif</span> <a name="l00183"></a>00183 <span class="preprocessor"></span> </pre></div></div> <hr><address><small> Generated at Thu May 7 22:34:02 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>