<!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: itkOptResampleImageFilter.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>itkOptResampleImageFilter.h</h1><a href="itkOptResampleImageFilter_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: itkOptResampleImageFilter.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-11-06 15:25:08 $</span> <a name="l00007"></a>00007 <span class="comment"> Version: $Revision: 1.6 $</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 __itkOptResampleImageFilter_h</span> <a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define __itkOptResampleImageFilter_h</span> <a name="l00019"></a>00019 <span class="preprocessor"></span> <a name="l00020"></a>00020 <span class="preprocessor">#include "<a class="code" href="itkFixedArray_8h.html">itkFixedArray.h</a>"</span> <a name="l00021"></a>00021 <span class="preprocessor">#include "<a class="code" href="itkTransform_8h.html">itkTransform.h</a>"</span> <a name="l00022"></a>00022 <span class="preprocessor">#include "<a class="code" href="itkImageFunction_8h.html">itkImageFunction.h</a>"</span> <a name="l00023"></a>00023 <span class="preprocessor">#include "<a class="code" href="itkImageRegionIterator_8h.html">itkImageRegionIterator.h</a>"</span> <a name="l00024"></a>00024 <span class="preprocessor">#include "<a class="code" href="itkImageToImageFilter_8h.html">itkImageToImageFilter.h</a>"</span> <a name="l00025"></a>00025 <span class="preprocessor">#include "<a class="code" href="itkInterpolateImageFunction_8h.html">itkInterpolateImageFunction.h</a>"</span> <a name="l00026"></a>00026 <span class="preprocessor">#include "<a class="code" href="itkLinearInterpolateImageFunction_8h.html">itkLinearInterpolateImageFunction.h</a>"</span> <a name="l00027"></a>00027 <span class="preprocessor">#include "<a class="code" href="itkBSplineInterpolateImageFunction_8h.html">itkBSplineInterpolateImageFunction.h</a>"</span> <a name="l00028"></a>00028 <span class="preprocessor">#include "<a class="code" href="itkSize_8h.html">itkSize.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="l00032"></a>00032 <a name="l00071"></a>00071 <span class="keyword">template</span> <<span class="keyword">class </span>TInputImage, <a name="l00072"></a>00072 <span class="keyword">class </span>TOutputImage, <a name="l00073"></a>00073 <span class="keyword">class </span>TInterpolatorPrecisionType=<span class="keywordtype">double</span>> <a name="l00074"></a>00074 <span class="keyword">class </span><a class="code" href="itkWin32Header_8h.html#7d4384322557205d75f0719c012dded6">ITK_EXPORT</a> ResampleImageFilter: <a name="l00075"></a>00075 <span class="keyword">public</span> ImageToImageFilter<TInputImage, TOutputImage> <a name="l00076"></a>00076 { <a name="l00077"></a>00077 <span class="keyword">public</span>: <a name="l00079"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#66fc26565e32587a79c2c61f03175130">00079</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="l00080"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#04190fd87eded0a8283d4e5fc615e487">00080</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="l00081"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#ff69d5272c9765b96cbc2275ee389813">00081</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="l00082"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#85e544e4a8ecf695e32d363403c7b6d6">00082</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="l00083"></a>00083 <a name="l00084"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#061c71f7ed8402354b9eccb7fcd6c0bd">00084</a> <span class="keyword">typedef</span> TInputImage <a class="code" href="namespaceHardConnectedComponentImageFilter.html#3742cbac150bee74daa9aab85ed80623">InputImageType</a>; <a name="l00085"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#dd446449d47fd8877471c798cfc4bfd4">00085</a> <span class="keyword">typedef</span> TOutputImage <a class="code" href="namespaceHardConnectedComponentImageFilter.html#386ea018cab3835dcdff2603f4d2280e">OutputImageType</a>; <a name="l00086"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#34d0b6a1794e6428d6fb185864debcc1">00086</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="l00087"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#6a9edbcaeea21c59d628583ba3ff73b1">00087</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="l00088"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#d1b010d52f54bd3557e157be2bc9511c">00088</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="l00089"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#534a75b33ced08ea6a83351b0fddf954">00089</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ed8c4a40607d317c666eb96ea265e126">InputImageType::RegionType</a> InputImageRegionType; <a name="l00090"></a>00090 <a name="l00092"></a>00092 <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="l00093"></a>00093 <a name="l00095"></a>00095 <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="l00096"></a>00096 <a name="l00098"></a>00098 <a class="code" href="itkMacro_8h.html#1905cf6b2e88235996fa7ff73b2fb0eb">itkStaticConstMacro</a>(ImageDimension, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>, <a name="l00099"></a>00099 TOutputImage::ImageDimension); <a name="l00100"></a>00100 <a class="code" href="itkMacro_8h.html#1905cf6b2e88235996fa7ff73b2fb0eb">itkStaticConstMacro</a>(InputImageDimension, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>, <a name="l00101"></a>00101 TInputImage::ImageDimension); <a name="l00103"></a>00103 <a name="l00104"></a>00104 <a name="l00108"></a>00108 <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="l00109"></a>00109 <a class="code" href="itkMacro_8h.html#94ef2dc11d52c8ef0a78e34558feb8cb">itkGetStaticConstMacro</a>(ImageDimension), <a name="l00110"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#f4e5cf6bfe617e685428a51dd6e6f1f6">00110</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="l00111"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#5efd04a9abb2c4775248c9438923127f">00111</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="l00113"></a>00113 <a name="l00115"></a>00115 <span class="keyword">typedef</span> <a class="code" href="classitk_1_1InterpolateImageFunction.html" title="Base class for all image interpolaters.">InterpolateImageFunction</a><<a class="code" href="namespaceHardConnectedComponentImageFilter.html#3742cbac150bee74daa9aab85ed80623">InputImageType</a>, <a name="l00116"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#efe7dddb2f4a5cdcabfc2f0e4d18e17c">00116</a> TInterpolatorPrecisionType> <a class="code" href="classitk_1_1InterpolateImageFunction.html" title="Base class for all image interpolaters.">InterpolatorType</a>; <a name="l00117"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#bddbacb556802f92abacdc53ec16a31b">00117</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="l00118"></a>00118 <a name="l00119"></a>00119 <span class="keyword">typedef</span> <a class="code" href="classitk_1_1LinearInterpolateImageFunction.html" title="Linearly interpolate an image at specified positions.">LinearInterpolateImageFunction</a><<a class="code" href="namespaceHardConnectedComponentImageFilter.html#3742cbac150bee74daa9aab85ed80623">InputImageType</a>, <a name="l00120"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#5f4f0b889fa80223f57fdf54759c056a">00120</a> TInterpolatorPrecisionType> <a class="code" href="classitk_1_1LinearInterpolateImageFunction.html" title="Linearly interpolate an image at specified positions.">LinearInterpolatorType</a>; <a name="l00121"></a>00121 <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">LinearInterpolatorType::Pointer</a> <a name="l00122"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#acf0a85481f377510bafb4a753b251f6">00122</a> <a class="code" href="classitk_1_1SmartPointer.html">LinearInterpolatorPointerType</a>; <a name="l00123"></a>00123 <a name="l00124"></a>00124 <span class="keyword">typedef</span> <a class="code" href="classitk_1_1BSplineInterpolateImageFunction.html" title="Evaluates the B-Spline interpolation of an image. Spline order may be from 0 to 5...">BSplineInterpolateImageFunction</a><<a class="code" href="namespaceHardConnectedComponentImageFilter.html#3742cbac150bee74daa9aab85ed80623">InputImageType</a>, <a name="l00125"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#bd7e9dd1dae1c760bb49a1c108d069ed">00125</a> TInterpolatorPrecisionType> <a class="code" href="classitk_1_1BSplineInterpolateImageFunction.html" title="Evaluates the B-Spline interpolation of an image. Spline order may be from 0 to 5...">BSplineInterpolatorType</a>; <a name="l00126"></a>00126 <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">BSplineInterpolatorType::Pointer</a> <a name="l00127"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#16ac423ad5edf99dbd0b7e14e2e986f0">00127</a> <a class="code" href="classitk_1_1SmartPointer.html">BSplineInterpolatorPointerType</a>; <a name="l00128"></a>00128 <a name="l00130"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#6cb1fae4e00c5a746a4b5774ea62561c">00130</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="l00131"></a>00131 <a name="l00133"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#e37fcaff7eb9f0743be6503704a8fb9a">00133</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="l00134"></a>00134 <a name="l00136"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#0b4d8b53a9c5b2ce47e029e23a51eddc">00136</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="l00137"></a>00137 <span class="comment">//typedef typename TOutputImage::PointType PointType;</span> <a name="l00138"></a>00138 <a name="l00140"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#da0d736d07aceac995787f1c4f4a36a9">00140</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> TOutputImage::PixelType PixelType; <a name="l00141"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#615370c70134e1dfb8963567fb1798e7">00141</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> TInputImage::PixelType <a class="code" href="namespaceHardConnectedComponentImageFilter.html#6e44b89d73d576fe68c175566a634ab8">InputPixelType</a>; <a name="l00142"></a>00142 <a name="l00144"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#f3b0a84cff1a614443b5e330d86811fc">00144</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ed8c4a40607d317c666eb96ea265e126">TOutputImage::RegionType</a> OutputImageRegionType; <a name="l00145"></a>00145 <a name="l00147"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#413858cbea57b8b40fa7c79c4ad5bde0">00147</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> TOutputImage::SpacingType SpacingType; <a name="l00148"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#8445f3750b49c041e1a26e138b6a8f2d">00148</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> TOutputImage::PointType OriginPointType; <a name="l00149"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#ab5db08ec110a1d4f4af71e4a4061a1a">00149</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> TOutputImage::DirectionType DirectionType; <a name="l00150"></a>00150 <a name="l00158"></a>00158 <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="l00159"></a>00159 <a name="l00161"></a>00161 <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="l00162"></a>00162 <a name="l00170"></a>00170 <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="l00171"></a>00171 <a name="l00173"></a>00173 <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="l00174"></a>00174 <a name="l00176"></a>00176 <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="l00177"></a>00177 <a name="l00179"></a>00179 <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="l00180"></a>00180 <a name="l00183"></a>00183 <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>(DefaultPixelValue,PixelType); <a name="l00184"></a>00184 <a name="l00186"></a>00186 <a class="code" href="itkMacro_8h.html#7d989c13a1a213168db99ae0f84185d4">itkGetConstReferenceMacro</a>(DefaultPixelValue,PixelType); <a name="l00187"></a>00187 <a name="l00189"></a>00189 <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>(OutputSpacing, SpacingType); <a name="l00190"></a>00190 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetOutputSpacing( <span class="keyword">const</span> <span class="keywordtype">double</span>* values); <a name="l00192"></a>00192 <a name="l00194"></a>00194 <a class="code" href="itkMacro_8h.html#7d989c13a1a213168db99ae0f84185d4">itkGetConstReferenceMacro</a>( OutputSpacing, SpacingType ); <a name="l00195"></a>00195 <a name="l00197"></a>00197 <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>(OutputOrigin, OriginPointType); <a name="l00198"></a>00198 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetOutputOrigin( <span class="keyword">const</span> <span class="keywordtype">double</span>* values); <a name="l00200"></a>00200 <a name="l00202"></a>00202 <a class="code" href="itkMacro_8h.html#7d989c13a1a213168db99ae0f84185d4">itkGetConstReferenceMacro</a>( OutputOrigin, OriginPointType ); <a name="l00203"></a>00203 <a name="l00205"></a>00205 <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>(OutputDirection, DirectionType); <a name="l00206"></a>00206 <a class="code" href="itkMacro_8h.html#7d989c13a1a213168db99ae0f84185d4">itkGetConstReferenceMacro</a>(OutputDirection, DirectionType); <a name="l00208"></a>00208 <a name="l00210"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#b8f0d9a8a8f29e3776130a0da712c949">00210</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="l00211"></a>00211 { <a name="l00212"></a>00212 this->SetOutputOrigin ( Image->GetOrigin() ); <a name="l00213"></a>00213 this->SetOutputSpacing ( Image->GetSpacing() ); <a name="l00214"></a>00214 this->SetOutputDirection ( Image->GetDirection() ); <a name="l00215"></a>00215 this->SetSize ( Image->GetLargestPossibleRegion().GetSize() ); <a name="l00216"></a>00216 } <a name="l00218"></a>00218 <a name="l00220"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#806937a4bf397d326889a8f5565b6d7d">00220</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="l00221"></a>00221 { <a name="l00222"></a>00222 this->SetOutputOrigin ( Image->GetOrigin() ); <a name="l00223"></a>00223 this->SetOutputSpacing ( Image->GetSpacing() ); <a name="l00224"></a>00224 this->SetOutputDirection ( Image->GetDirection() ); <a name="l00225"></a>00225 this->SetSize ( Image->GetLargestPossibleRegion().GetSize() ); <a name="l00226"></a>00226 } <a name="l00228"></a>00228 <a name="l00231"></a>00231 <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>( OutputStartIndex, <a class="code" href="namespaceHardConnectedComponentImageFilter.html#be32dc19e71d40322ad9828b9ab40853">IndexType</a> ); <a name="l00232"></a>00232 <a name="l00234"></a>00234 <a class="code" href="itkMacro_8h.html#7d989c13a1a213168db99ae0f84185d4">itkGetConstReferenceMacro</a>( OutputStartIndex, <a class="code" href="namespaceHardConnectedComponentImageFilter.html#be32dc19e71d40322ad9828b9ab40853">IndexType</a> ); <a name="l00235"></a>00235 <a name="l00241"></a>00241 <span class="keywordtype">void</span> SetReferenceImage ( <span class="keyword">const</span> TOutputImage *image ); <a name="l00242"></a>00242 <span class="keyword">const</span> TOutputImage * GetReferenceImage() <span class="keyword">const</span>; <a name="l00244"></a>00244 <a name="l00245"></a>00245 <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>(UseReferenceImage, <span class="keywordtype">bool</span>); <a name="l00246"></a>00246 <a class="code" href="itkMacro_8h.html#9e7d129ffebb09fd28bc213e02d87248">itkBooleanMacro</a>(UseReferenceImage); <a name="l00247"></a>00247 <a class="code" href="itkMacro_8h.html#1600305bb01e39e87c472d8bf29bd1cf">itkGetMacro</a>(UseReferenceImage, <span class="keywordtype">bool</span>); <a name="l00248"></a>00248 <a name="l00254"></a>00254 <span class="keyword">virtual</span> <span class="keywordtype">void</span> GenerateOutputInformation(); <a name="l00255"></a>00255 <a name="l00261"></a>00261 <span class="keyword">virtual</span> <span class="keywordtype">void</span> GenerateInputRequestedRegion(); <a name="l00262"></a>00262 <a name="l00265"></a>00265 <span class="keyword">virtual</span> <span class="keywordtype">void</span> BeforeThreadedGenerateData(); <a name="l00266"></a>00266 <a name="l00269"></a>00269 <span class="keyword">virtual</span> <span class="keywordtype">void</span> AfterThreadedGenerateData(); <a name="l00270"></a>00270 <a name="l00272"></a>00272 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> GetMTime( <span class="keywordtype">void</span> ) <span class="keyword">const</span>; <a name="l00273"></a>00273 <a name="l00274"></a>00274 <span class="preprocessor">#ifdef ITK_USE_CONCEPT_CHECKING</span> <a name="l00275"></a>00275 <span class="preprocessor"></span> <a name="l00276"></a>00276 <a class="code" href="itkConceptChecking_8h.html#009eae6c305d9c390972159815e6a710">itkConceptMacro</a>(OutputHasNumericTraitsCheck, <a name="l00277"></a>00277 (<a class="code" href="structitk_1_1Concept_1_1HasNumericTraits.html">Concept::HasNumericTraits<PixelType></a>)); <a name="l00278"></a>00278 <a name="l00280"></a>00280 <span class="preprocessor">#endif</span> <a name="l00281"></a>00281 <span class="preprocessor"></span> <a name="l00282"></a>00282 <span class="keyword">protected</span>: <a name="l00283"></a>00283 <a class="code" href="classitk_1_1ResampleImageFilter.html" title="Resample an image via a coordinate transform.">ResampleImageFilter</a>(); <a name="l00284"></a><a class="code" href="classitk_1_1ResampleImageFilter.html#78a2a089f797663c8190077b1af36edb">00284</a> <a class="code" href="classitk_1_1ResampleImageFilter.html#78a2a089f797663c8190077b1af36edb">~ResampleImageFilter</a>() {}; <a name="l00285"></a>00285 <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="l00286"></a>00286 <a name="l00296"></a>00296 <span class="keywordtype">void</span> ThreadedGenerateData(<span class="keyword">const</span> OutputImageRegionType& outputRegionForThread, <a name="l00297"></a>00297 <span class="keywordtype">int</span> threadId ); <a name="l00298"></a>00298 <a name="l00301"></a>00301 <span class="keywordtype">void</span> NonlinearThreadedGenerateData(<span class="keyword">const</span> OutputImageRegionType & <a name="l00302"></a>00302 outputRegionForThread, <a name="l00303"></a>00303 <span class="keywordtype">int</span> threadId ); <a name="l00304"></a>00304 <a name="l00308"></a>00308 <span class="keywordtype">void</span> LinearThreadedGenerateData(<span class="keyword">const</span> OutputImageRegionType & <a name="l00309"></a>00309 outputRegionForThread, <a name="l00310"></a>00310 <span class="keywordtype">int</span> threadId ); <a name="l00311"></a>00311 <a name="l00312"></a>00312 <a name="l00313"></a>00313 <span class="keyword">private</span>: <a name="l00314"></a>00314 <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="l00315"></a>00315 <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="l00316"></a>00316 <a name="l00317"></a>00317 <a class="code" href="namespaceHardConnectedComponentImageFilter.html#5bf82236e1e50e653de84c8ead448599">SizeType</a> m_Size; <span class="comment">// Size of the output image</span> <a name="l00318"></a>00318 <a class="code" href="namespaceitk_1_1QuaternionOrientationAdapterClasses.html#26dccd59a6f473b34f88f01ed5b02646">TransformPointerType</a> m_Transform; <span class="comment">// Coordinate transform to use</span> <a name="l00319"></a>00319 InterpolatorPointerType m_Interpolator; <span class="comment">// Image function for</span> <a name="l00320"></a>00320 <span class="comment">// interpolation</span> <a name="l00321"></a>00321 PixelType m_DefaultPixelValue; <span class="comment">// default pixel value</span> <a name="l00322"></a>00322 <span class="comment">// if the point is</span> <a name="l00323"></a>00323 <span class="comment">// outside the image</span> <a name="l00324"></a>00324 SpacingType m_OutputSpacing; <span class="comment">// output image spacing</span> <a name="l00325"></a>00325 OriginPointType m_OutputOrigin; <span class="comment">// output image origin</span> <a name="l00326"></a>00326 DirectionType m_OutputDirection; <span class="comment">// output image direction cosines</span> <a name="l00327"></a>00327 <a class="code" href="namespaceHardConnectedComponentImageFilter.html#be32dc19e71d40322ad9828b9ab40853">IndexType</a> m_OutputStartIndex; <span class="comment">// output image start index</span> <a name="l00328"></a>00328 <span class="keywordtype">bool</span> m_UseReferenceImage; <a name="l00329"></a>00329 <a name="l00330"></a>00330 <span class="keywordtype">bool</span> m_InterpolatorIsLinear; <a name="l00331"></a>00331 LinearInterpolatorPointerType m_LinearInterpolator; <a name="l00332"></a>00332 <span class="keywordtype">bool</span> m_InterpolatorIsBSpline; <a name="l00333"></a>00333 BSplineInterpolatorPointerType m_BSplineInterpolator; <a name="l00334"></a>00334 <a name="l00335"></a>00335 }; <a name="l00336"></a>00336 <a name="l00337"></a>00337 <a name="l00338"></a>00338 } <span class="comment">// end namespace itk</span> <a name="l00339"></a>00339 <a name="l00340"></a>00340 <span class="preprocessor">#ifndef ITK_MANUAL_INSTANTIATION</span> <a name="l00341"></a>00341 <span class="preprocessor"></span><span class="preprocessor">#include "itkOptResampleImageFilter.txx"</span> <a name="l00342"></a>00342 <span class="preprocessor">#endif</span> <a name="l00343"></a>00343 <span class="preprocessor"></span> <a name="l00344"></a>00344 <span class="preprocessor">#endif</span> <a name="l00345"></a>00345 <span class="preprocessor"></span> </pre></div></div> <hr><address><small> Generated at Thu May 7 23:45:48 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>