<!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: itkResampleImageFilter.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>itkResampleImageFilter.h</h1><a href="itkResampleImageFilter_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: itkResampleImageFilter.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-18 13:30:38 $</span> <a name="l00007"></a>00007 <span class="comment"> Version: $Revision: 1.59 $</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 __itkResampleImageFilter_h</span> <a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define __itkResampleImageFilter_h</span> <a name="l00019"></a>00019 <span class="preprocessor"></span> <a name="l00020"></a>00020 <span class="comment">// First make sure that the configuration is available.</span> <a name="l00021"></a>00021 <span class="comment">// This line can be removed once the optimized versions</span> <a name="l00022"></a>00022 <span class="comment">// gets integrated into the main directories.</span> <a name="l00023"></a>00023 <span class="preprocessor">#include "itkConfigure.h"</span> <a name="l00024"></a>00024 <a name="l00025"></a>00025 <span class="preprocessor">#ifdef ITK_USE_OPTIMIZED_REGISTRATION_METHODS</span> <a name="l00026"></a>00026 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="itkOptResampleImageFilter_8h.html">itkOptResampleImageFilter.h</a>"</span> <a name="l00027"></a>00027 <span class="preprocessor">#else</span> <a name="l00028"></a>00028 <span class="preprocessor"></span> <a name="l00029"></a>00029 <span class="preprocessor">#include "<a class="code" href="itkFixedArray_8h.html">itkFixedArray.h</a>"</span> <a name="l00030"></a>00030 <span class="preprocessor">#include "<a class="code" href="itkTransform_8h.html">itkTransform.h</a>"</span> <a name="l00031"></a>00031 <span class="preprocessor">#include "<a class="code" href="itkImageFunction_8h.html">itkImageFunction.h</a>"</span> <a name="l00032"></a>00032 <span class="preprocessor">#include "<a class="code" href="itkImageRegionIterator_8h.html">itkImageRegionIterator.h</a>"</span> <a name="l00033"></a>00033 <span class="preprocessor">#include "<a class="code" href="itkImageToImageFilter_8h.html">itkImageToImageFilter.h</a>"</span> <a name="l00034"></a>00034 <span class="preprocessor">#include "<a class="code" href="itkInterpolateImageFunction_8h.html">itkInterpolateImageFunction.h</a>"</span> <a name="l00035"></a>00035 <span class="preprocessor">#include "<a class="code" href="itkSize_8h.html">itkSize.h</a>"</span> <a name="l00036"></a>00036 <a name="l00037"></a>00037 <span class="keyword">namespace </span>itk <a name="l00038"></a>00038 { <a name="l00039"></a>00039 <a name="l00077"></a>00077 <span class="keyword">template</span> <<span class="keyword">class </span>TInputImage, <span class="keyword">class </span>TOutputImage, <a name="l00078"></a>00078 <span class="keyword">class </span>TInterpolatorPrecisionType=<span class="keywordtype">double</span>> <a name="l00079"></a><a class="code" href="classitk_1_1ResampleImageFilter.html">00079</a> <span class="keyword">class </span><a class="code" href="itkWin32Header_8h.html#7d4384322557205d75f0719c012dded6">ITK_EXPORT</a> <a class="code" href="classitk_1_1ResampleImageFilter.html" title="Resample an image via a coordinate transform.">ResampleImageFilter</a>: <a name="l00080"></a>00080 <span class="keyword">public</span> <a class="code" href="classitk_1_1ImageToImageFilter.html" title="Base class for filters that take an image as input and produce an image as output...">ImageToImageFilter</a><TInputImage, TOutputImage> <a name="l00081"></a>00081 { <a name="l00082"></a>00082 <span class="keyword">public</span>: <a name="l00084"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#66fc26565e32587a79c2c61f03175130">00084</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1ResampleImageFilter.html" title="Resample an image via a coordinate transform.">ResampleImageFilter</a> <a class="code" href="classitk_1_1ResampleImageFilter.html" title="Resample an image via a coordinate transform.">Self</a>; <a name="l00085"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#04190fd87eded0a8283d4e5fc615e487">00085</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1ImageToImageFilter.html">ImageToImageFilter<TInputImage,TOutputImage></a> <a class="code" href="classitk_1_1ImageToImageFilter.html">Superclass</a>; <a name="l00086"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#ff69d5272c9765b96cbc2275ee389813">00086</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="l00087"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#85e544e4a8ecf695e32d363403c7b6d6">00087</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="l00088"></a>00088 <a name="l00089"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#061c71f7ed8402354b9eccb7fcd6c0bd">00089</a> <span class="keyword">typedef</span> TInputImage <a class="code" href="namespaceHardConnectedComponentImageFilter.html#3742cbac150bee74daa9aab85ed80623">InputImageType</a>; <a name="l00090"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#dd446449d47fd8877471c798cfc4bfd4">00090</a> <span class="keyword">typedef</span> TOutputImage <a class="code" href="namespaceHardConnectedComponentImageFilter.html#386ea018cab3835dcdff2603f4d2280e">OutputImageType</a>; <a name="l00091"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#34d0b6a1794e6428d6fb185864debcc1">00091</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="itkFEMMacro_8h.html#539cce1a3282ba59952dedcbf9cdb23f">InputImageType::Pointer</a> InputImagePointer; <a name="l00092"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#6a9edbcaeea21c59d628583ba3ff73b1">00092</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="itkFEMMacro_8h.html#68fafcc6909430ccd70cbc4aeee0107c">InputImageType::ConstPointer</a> InputImageConstPointer; <a name="l00093"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#d1b010d52f54bd3557e157be2bc9511c">00093</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="l00094"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#534a75b33ced08ea6a83351b0fddf954">00094</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ed8c4a40607d317c666eb96ea265e126">InputImageType::RegionType</a> InputImageRegionType; <a name="l00095"></a>00095 <a name="l00097"></a>00097 <a class="code" href="itkMacro_8h.html#0fdc15685afa271857c57e7cd482f30c">itkNewMacro</a>(<a class="code" href="classitk_1_1ResampleImageFilter.html" title="Resample an image via a coordinate transform.">Self</a>); <a name="l00098"></a>00098 <a name="l00100"></a>00100 <a class="code" href="itkMacro_8h.html#574c1f86661d409dd32c742307a0e96a">itkTypeMacro</a>(<a class="code" href="classitk_1_1ResampleImageFilter.html" title="Resample an image via a coordinate transform.">ResampleImageFilter</a>, <a class="code" href="classitk_1_1ImageToImageFilter.html" title="Base class for filters that take an image as input and produce an image as output...">ImageToImageFilter</a>); <a name="l00101"></a>00101 <a name="l00103"></a>00103 <a class="code" href="itkMacro_8h.html#1905cf6b2e88235996fa7ff73b2fb0eb">itkStaticConstMacro</a>(ImageDimension, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>, <a name="l00104"></a>00104 TOutputImage::ImageDimension); <a name="l00105"></a>00105 <a class="code" href="itkMacro_8h.html#1905cf6b2e88235996fa7ff73b2fb0eb">itkStaticConstMacro</a>(InputImageDimension, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>, <a name="l00106"></a>00106 TInputImage::ImageDimension); <a name="l00108"></a>00108 <a name="l00109"></a>00109 <a name="l00111"></a>00111 <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Transform.html" title="Transform points and vector from an input space to an output space.">Transform</a><TInterpolatorPrecisionType, <a name="l00112"></a>00112 <a class="code" href="itkMacro_8h.html#94ef2dc11d52c8ef0a78e34558feb8cb">itkGetStaticConstMacro</a>(ImageDimension), <a name="l00113"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#f4e5cf6bfe617e685428a51dd6e6f1f6">00113</a> <a class="code" href="itkMacro_8h.html#94ef2dc11d52c8ef0a78e34558feb8cb">itkGetStaticConstMacro</a>(ImageDimension)> <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="l00114"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#5efd04a9abb2c4775248c9438923127f">00114</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html" title="Implements transparent reference counting.">TransformType::ConstPointer</a> <a class="code" href="classitk_1_1SmartPointer.html">TransformPointerType</a>; <a name="l00116"></a>00116 <a name="l00118"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#efe7dddb2f4a5cdcabfc2f0e4d18e17c">00118</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1InterpolateImageFunction.html" title="Base class for all image interpolaters.">InterpolateImageFunction<InputImageType, TInterpolatorPrecisionType></a> <a class="code" href="classitk_1_1InterpolateImageFunction.html" title="Base class for all image interpolaters.">InterpolatorType</a>; <a name="l00119"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#bddbacb556802f92abacdc53ec16a31b">00119</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">InterpolatorPointerType</a>; <a name="l00120"></a>00120 <a name="l00122"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#6cb1fae4e00c5a746a4b5774ea62561c">00122</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Size.html">Size<itkGetStaticConstMacro(ImageDimension)></a> <a class="code" href="classitk_1_1Size.html">SizeType</a>; <a name="l00123"></a>00123 <a name="l00125"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#e37fcaff7eb9f0743be6503704a8fb9a">00125</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#be32dc19e71d40322ad9828b9ab40853">TOutputImage::IndexType</a> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#be32dc19e71d40322ad9828b9ab40853">IndexType</a>; <a name="l00126"></a>00126 <a name="l00128"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#0b4d8b53a9c5b2ce47e029e23a51eddc">00128</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="l00129"></a>00129 <span class="comment">//typedef typename TOutputImage::PointType PointType;</span> <a name="l00130"></a>00130 <a name="l00132"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#da0d736d07aceac995787f1c4f4a36a9">00132</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> TOutputImage::PixelType PixelType; <a name="l00133"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#615370c70134e1dfb8963567fb1798e7">00133</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> TInputImage::PixelType <a class="code" href="namespaceHardConnectedComponentImageFilter.html#6e44b89d73d576fe68c175566a634ab8">InputPixelType</a>; <a name="l00134"></a>00134 <a name="l00136"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#f3b0a84cff1a614443b5e330d86811fc">00136</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ed8c4a40607d317c666eb96ea265e126">TOutputImage::RegionType</a> OutputImageRegionType; <a name="l00137"></a>00137 <a name="l00139"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#413858cbea57b8b40fa7c79c4ad5bde0">00139</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> TOutputImage::SpacingType SpacingType; <a name="l00140"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#8445f3750b49c041e1a26e138b6a8f2d">00140</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> TOutputImage::PointType OriginPointType; <a name="l00141"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#ab5db08ec110a1d4f4af71e4a4061a1a">00141</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> TOutputImage::DirectionType DirectionType; <a name="l00142"></a>00142 <a name="l00150"></a>00150 <a class="code" href="itkMacro_8h.html#1e680e0abf41fd9bbefa2829ea3d1e6a">itkSetConstObjectMacro</a>( <a class="code" href="classitk_1_1Transform.html" title="Transform points and vector from an input space to an output space.">Transform</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="l00151"></a>00151 <a name="l00153"></a>00153 <a class="code" href="itkMacro_8h.html#d11f8adb47609be2b4b58948904f8a7c">itkGetConstObjectMacro</a>( <a class="code" href="classitk_1_1Transform.html" title="Transform points and vector from an input space to an output space.">Transform</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="l00154"></a>00154 <a name="l00161"></a>00161 <a class="code" href="itkMacro_8h.html#b950b763422e5059348e6178e2a5f425">itkSetObjectMacro</a>( Interpolator, <a class="code" href="classitk_1_1InterpolateImageFunction.html" title="Base class for all image interpolaters.">InterpolatorType</a> ); <a name="l00162"></a>00162 <a name="l00164"></a>00164 <a class="code" href="itkMacro_8h.html#d11f8adb47609be2b4b58948904f8a7c">itkGetConstObjectMacro</a>( Interpolator, <a class="code" href="classitk_1_1InterpolateImageFunction.html" title="Base class for all image interpolaters.">InterpolatorType</a> ); <a name="l00165"></a>00165 <a name="l00167"></a>00167 <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>( <a class="code" href="classitk_1_1Size.html" title="Represent the size (bounds) of a n-dimensional image.">Size</a>, <a class="code" href="classitk_1_1Size.html">SizeType</a> ); <a name="l00168"></a>00168 <a name="l00170"></a>00170 <a class="code" href="itkMacro_8h.html#7d989c13a1a213168db99ae0f84185d4">itkGetConstReferenceMacro</a>( <a class="code" href="classitk_1_1Size.html" title="Represent the size (bounds) of a n-dimensional image.">Size</a>, <a class="code" href="classitk_1_1Size.html">SizeType</a> ); <a name="l00171"></a>00171 <a name="l00174"></a>00174 <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>( DefaultPixelValue, PixelType ); <a name="l00175"></a>00175 <a name="l00177"></a>00177 <a class="code" href="itkMacro_8h.html#7d989c13a1a213168db99ae0f84185d4">itkGetConstReferenceMacro</a>( DefaultPixelValue, PixelType ); <a name="l00178"></a>00178 <a name="l00180"></a>00180 <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>( OutputSpacing, SpacingType ); <a name="l00181"></a>00181 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetOutputSpacing( <span class="keyword">const</span> <span class="keywordtype">double</span>* values ); <a name="l00183"></a>00183 <a name="l00185"></a>00185 <a class="code" href="itkMacro_8h.html#7d989c13a1a213168db99ae0f84185d4">itkGetConstReferenceMacro</a>( OutputSpacing, SpacingType ); <a name="l00186"></a>00186 <a name="l00188"></a>00188 <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>( OutputOrigin, OriginPointType ); <a name="l00189"></a>00189 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetOutputOrigin( <span class="keyword">const</span> <span class="keywordtype">double</span>* values); <a name="l00191"></a>00191 <a name="l00193"></a>00193 <a class="code" href="itkMacro_8h.html#7d989c13a1a213168db99ae0f84185d4">itkGetConstReferenceMacro</a>( OutputOrigin, OriginPointType ); <a name="l00194"></a>00194 <a name="l00196"></a>00196 <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>( OutputDirection, DirectionType ); <a name="l00197"></a>00197 <a class="code" href="itkMacro_8h.html#7d989c13a1a213168db99ae0f84185d4">itkGetConstReferenceMacro</a>( OutputDirection, DirectionType ); <a name="l00199"></a>00199 <a name="l00201"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#b8f0d9a8a8f29e3776130a0da712c949">00201</a> <span class="keywordtype">void</span> SetOutputParametersFromImage ( <span class="keyword">typename</span> <a class="code" href="itkFEMMacro_8h.html#539cce1a3282ba59952dedcbf9cdb23f">OutputImageType::Pointer</a> <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">Image</a> ) <a name="l00202"></a>00202 { <a name="l00203"></a>00203 this->SetOutputOrigin ( Image->GetOrigin() ); <a name="l00204"></a>00204 this->SetOutputSpacing ( Image->GetSpacing() ); <a name="l00205"></a>00205 this->SetOutputDirection ( Image->GetDirection() ); <a name="l00206"></a>00206 this->SetOutputStartIndex ( Image->GetLargestPossibleRegion().GetIndex() ); <a name="l00207"></a>00207 this->SetSize ( Image->GetLargestPossibleRegion().GetSize() ); <a name="l00208"></a>00208 } <a name="l00210"></a>00210 <a name="l00212"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#806937a4bf397d326889a8f5565b6d7d">00212</a> <span class="keywordtype">void</span> SetOutputParametersFromConstImage ( <span class="keyword">typename</span> <a class="code" href="itkFEMMacro_8h.html#68fafcc6909430ccd70cbc4aeee0107c">OutputImageType::ConstPointer</a> <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">Image</a> ) <a name="l00213"></a>00213 { <a name="l00214"></a>00214 this->SetOutputOrigin ( Image->GetOrigin() ); <a name="l00215"></a>00215 this->SetOutputSpacing ( Image->GetSpacing() ); <a name="l00216"></a>00216 this->SetOutputDirection ( Image->GetDirection() ); <a name="l00217"></a>00217 this->SetOutputStartIndex ( Image->GetLargestPossibleRegion().GetIndex() ); this->SetSize ( Image->GetLargestPossibleRegion().GetSize() ); <a name="l00218"></a>00218 } <a name="l00220"></a>00220 <a name="l00223"></a>00223 <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>( OutputStartIndex, <a class="code" href="namespaceHardConnectedComponentImageFilter.html#be32dc19e71d40322ad9828b9ab40853">IndexType</a> ); <a name="l00224"></a>00224 <a name="l00226"></a>00226 <a class="code" href="itkMacro_8h.html#7d989c13a1a213168db99ae0f84185d4">itkGetConstReferenceMacro</a>( OutputStartIndex, <a class="code" href="namespaceHardConnectedComponentImageFilter.html#be32dc19e71d40322ad9828b9ab40853">IndexType</a> ); <a name="l00227"></a>00227 <a name="l00234"></a>00234 <span class="keywordtype">void</span> SetReferenceImage ( <span class="keyword">const</span> TOutputImage *image ); <a name="l00235"></a>00235 <span class="keyword">const</span> TOutputImage * GetReferenceImage( <span class="keywordtype">void</span> ) <span class="keyword">const</span>; <a name="l00237"></a>00237 <a name="l00238"></a>00238 <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>( UseReferenceImage, <span class="keywordtype">bool</span> ); <a name="l00239"></a>00239 <a class="code" href="itkMacro_8h.html#9e7d129ffebb09fd28bc213e02d87248">itkBooleanMacro</a>( UseReferenceImage ); <a name="l00240"></a>00240 <a class="code" href="itkMacro_8h.html#1600305bb01e39e87c472d8bf29bd1cf">itkGetMacro</a>( UseReferenceImage, <span class="keywordtype">bool</span> ); <a name="l00241"></a>00241 <a name="l00247"></a>00247 <span class="keyword">virtual</span> <span class="keywordtype">void</span> GenerateOutputInformation( <span class="keywordtype">void</span> ); <a name="l00248"></a>00248 <a name="l00254"></a>00254 <span class="keyword">virtual</span> <span class="keywordtype">void</span> GenerateInputRequestedRegion( <span class="keywordtype">void</span> ); <a name="l00255"></a>00255 <a name="l00258"></a>00258 <span class="keyword">virtual</span> <span class="keywordtype">void</span> BeforeThreadedGenerateData( <span class="keywordtype">void</span> ); <a name="l00259"></a>00259 <a name="l00262"></a>00262 <span class="keyword">virtual</span> <span class="keywordtype">void</span> AfterThreadedGenerateData( <span class="keywordtype">void</span> ); <a name="l00263"></a>00263 <a name="l00265"></a>00265 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> GetMTime( <span class="keywordtype">void</span> ) <span class="keyword">const</span>; <a name="l00266"></a>00266 <a name="l00267"></a>00267 <span class="preprocessor">#ifdef ITK_USE_CONCEPT_CHECKING</span> <a name="l00268"></a>00268 <span class="preprocessor"></span> <a name="l00269"></a>00269 <a class="code" href="itkConceptChecking_8h.html#009eae6c305d9c390972159815e6a710">itkConceptMacro</a>(OutputHasNumericTraitsCheck, <a name="l00270"></a>00270 (<a class="code" href="structitk_1_1Concept_1_1HasNumericTraits.html">Concept::HasNumericTraits<PixelType></a>)); <a name="l00271"></a>00271 <a name="l00273"></a>00273 <span class="preprocessor">#endif</span> <a name="l00274"></a>00274 <span class="preprocessor"></span> <a name="l00275"></a>00275 <span class="keyword">protected</span>: <a name="l00276"></a>00276 <a class="code" href="classitk_1_1ResampleImageFilter.html" title="Resample an image via a coordinate transform.">ResampleImageFilter</a>( <span class="keywordtype">void</span> ); <a name="l00277"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#7eebcf6a32f873666f6f5085fb377ced">00277</a> <a class="code" href="classitk_1_1ResampleImageFilter.html#7eebcf6a32f873666f6f5085fb377ced">~ResampleImageFilter</a>( <span class="keywordtype">void</span> ) {}; <a name="l00278"></a>00278 <a name="l00279"></a>00279 <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="l00280"></a>00280 <a name="l00289"></a>00289 <span class="keywordtype">void</span> ThreadedGenerateData( <span class="keyword">const</span> OutputImageRegionType& outputRegionForThread, <a name="l00290"></a>00290 <span class="keywordtype">int</span> threadId ); <a name="l00291"></a>00291 <a name="l00294"></a>00294 <span class="keywordtype">void</span> NonlinearThreadedGenerateData( <span class="keyword">const</span> OutputImageRegionType& outputRegionForThread, <a name="l00295"></a>00295 <span class="keywordtype">int</span> threadId ); <a name="l00296"></a>00296 <a name="l00300"></a>00300 <span class="keywordtype">void</span> LinearThreadedGenerateData( <span class="keyword">const</span> OutputImageRegionType& <a name="l00301"></a>00301 outputRegionForThread, <a name="l00302"></a>00302 <span class="keywordtype">int</span> threadId ); <a name="l00303"></a>00303 <a name="l00304"></a>00304 <a name="l00305"></a>00305 <span class="keyword">private</span>: <a name="l00306"></a>00306 <a class="code" href="classitk_1_1ResampleImageFilter.html" title="Resample an image via a coordinate transform.">ResampleImageFilter</a>( <span class="keyword">const</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ac7d0120fe5292cdcdddb6163b8cb150">Self</a>& ); <span class="comment">//purposely not implemented</span> <a name="l00307"></a>00307 <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="l00308"></a>00308 <a name="l00309"></a>00309 <a class="code" href="namespaceHardConnectedComponentImageFilter.html#5bf82236e1e50e653de84c8ead448599">SizeType</a> m_Size; <span class="comment">// Size of the output image</span> <a name="l00310"></a>00310 <a class="code" href="namespaceitk_1_1QuaternionOrientationAdapterClasses.html#26dccd59a6f473b34f88f01ed5b02646">TransformPointerType</a> m_Transform; <span class="comment">// Coordinate transform to use</span> <a name="l00311"></a>00311 InterpolatorPointerType m_Interpolator; <span class="comment">// Image function for</span> <a name="l00312"></a>00312 <span class="comment">// interpolation</span> <a name="l00313"></a>00313 PixelType m_DefaultPixelValue; <span class="comment">// default pixel value</span> <a name="l00314"></a>00314 <span class="comment">// if the point is</span> <a name="l00315"></a>00315 <span class="comment">// outside the image</span> <a name="l00316"></a>00316 SpacingType m_OutputSpacing; <span class="comment">// output image spacing</span> <a name="l00317"></a>00317 OriginPointType m_OutputOrigin; <span class="comment">// output image origin</span> <a name="l00318"></a>00318 DirectionType m_OutputDirection; <span class="comment">// output image direction cosines</span> <a name="l00319"></a>00319 <a class="code" href="namespaceHardConnectedComponentImageFilter.html#be32dc19e71d40322ad9828b9ab40853">IndexType</a> m_OutputStartIndex; <span class="comment">// output image start index</span> <a name="l00320"></a>00320 <span class="keywordtype">bool</span> m_UseReferenceImage; <a name="l00321"></a>00321 <a name="l00322"></a>00322 }; <a name="l00323"></a>00323 <a name="l00324"></a>00324 <a name="l00325"></a>00325 } <span class="comment">// end namespace itk</span> <a name="l00326"></a>00326 <a name="l00327"></a>00327 <span class="preprocessor">#ifndef ITK_MANUAL_INSTANTIATION</span> <a name="l00328"></a>00328 <span class="preprocessor"></span><span class="preprocessor">#include "itkResampleImageFilter.txx"</span> <a name="l00329"></a>00329 <span class="preprocessor">#endif</span> <a name="l00330"></a>00330 <span class="preprocessor"></span> <a name="l00331"></a>00331 <span class="preprocessor">#endif</span> <a name="l00332"></a>00332 <span class="preprocessor"></span> <a name="l00333"></a>00333 <span class="preprocessor">#endif</span> <a name="l00334"></a>00334 <span class="preprocessor"></span> </pre></div></div> <hr><address><small> Generated at Fri May 8 00:04:45 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>