<!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: itkGradientRecursiveGaussianImageFilter.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>itkGradientRecursiveGaussianImageFilter.h</h1><a href="itkGradientRecursiveGaussianImageFilter_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: itkGradientRecursiveGaussianImageFilter.h,v $</span> <a name="l00005"></a>00005 <span class="comment"> Language: C++</span> <a name="l00006"></a>00006 <span class="comment"> Date: $Date: 2009-01-24 20:13:36 $</span> <a name="l00007"></a>00007 <span class="comment"> Version: $Revision: 1.41 $</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 __itkGradientRecursiveGaussianImageFilter_h</span> <a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define __itkGradientRecursiveGaussianImageFilter_h</span> <a name="l00019"></a>00019 <span class="preprocessor"></span> <a name="l00020"></a>00020 <span class="preprocessor">#include "<a class="code" href="itkRecursiveGaussianImageFilter_8h.html">itkRecursiveGaussianImageFilter.h</a>"</span> <a name="l00021"></a>00021 <span class="preprocessor">#include "<a class="code" href="itkNthElementImageAdaptor_8h.html">itkNthElementImageAdaptor.h</a>"</span> <a name="l00022"></a>00022 <span class="preprocessor">#include "<a class="code" href="itkImage_8h.html">itkImage.h</a>"</span> <a name="l00023"></a>00023 <span class="preprocessor">#include "<a class="code" href="itkCovariantVector_8h.html">itkCovariantVector.h</a>"</span> <a name="l00024"></a>00024 <span class="preprocessor">#include "itkPixelTraits.h"</span> <a name="l00025"></a>00025 <span class="preprocessor">#include "<a class="code" href="itkProgressAccumulator_8h.html">itkProgressAccumulator.h</a>"</span> <a name="l00026"></a>00026 <span class="preprocessor">#include <vector></span> <a name="l00027"></a>00027 <a name="l00028"></a>00028 <a name="l00029"></a>00029 <span class="keyword">namespace </span>itk <a name="l00030"></a>00030 { <a name="l00031"></a>00031 <a name="l00043"></a>00043 <span class="comment">// NOTE that the ITK_TYPENAME macro has to be used here in lieu </span> <a name="l00044"></a>00044 <span class="comment">// of "typename" because VC++ doesn't like the typename keyword </span> <a name="l00045"></a>00045 <span class="comment">// on the defaults of template parameters</span> <a name="l00046"></a>00046 <span class="keyword">template</span> <<span class="keyword">typename</span> TInputImage, <a name="l00047"></a>00047 <span class="keyword">typename</span> TOutputImage= Image< CovariantVector< <a name="l00048"></a>00048 <a class="code" href="itkWin32Header_8h.html#140a5da12f0043ba181c7ae0109c31bf">ITK_TYPENAME</a> NumericTraits< ITK_TYPENAME TInputImage::PixelType>::RealType,<a class="code" href="structitk_1_1GetImageDimension.html"></a> <a name="l00049"></a>00049 <a class="code" href="structitk_1_1GetImageDimension.html"> ::itk::GetImageDimension<TInputImage>::ImageDimension</a> >,<a class="code" href="structitk_1_1GetImageDimension.html"></a> <a name="l00050"></a>00050 <a class="code" href="structitk_1_1GetImageDimension.html"> ::itk::GetImageDimension<TInputImage>::ImageDimension</a> > > <a name="l00051"></a><a class="code" href="classitk_1_1GradientRecursiveGaussianImageFilter.html">00051</a> <span class="keyword">class </span><a class="code" href="itkWin32Header_8h.html#7d4384322557205d75f0719c012dded6">ITK_EXPORT</a> <a class="code" href="classitk_1_1GradientRecursiveGaussianImageFilter.html" title="Computes the gradient of an image by convolution with the first derivative of a Gaussian...">GradientRecursiveGaussianImageFilter</a>: <a name="l00052"></a>00052 <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="l00053"></a>00053 { <a name="l00054"></a>00054 <span class="keyword">public</span>: <a name="l00056"></a><a class="code" href="classitk_1_1GradientRecursiveGaussianImageFilter.html#427257664deba1df12c2cb3b5ac045c6">00056</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1GradientRecursiveGaussianImageFilter.html" title="Computes the gradient of an image by convolution with the first derivative of a Gaussian...">GradientRecursiveGaussianImageFilter</a> <a class="code" href="classitk_1_1GradientRecursiveGaussianImageFilter.html" title="Computes the gradient of an image by convolution with the first derivative of a Gaussian...">Self</a>; <a name="l00057"></a><a class="code" href="classitk_1_1GradientRecursiveGaussianImageFilter.html#89070619485e4124ea18538cc51298b0">00057</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="l00058"></a><a class="code" href="classitk_1_1GradientRecursiveGaussianImageFilter.html#5291905cf9370db0c431dbec28e17343">00058</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="l00059"></a><a class="code" href="classitk_1_1GradientRecursiveGaussianImageFilter.html#9f7d5f8c728b5fb46e6b5994b149cb0d">00059</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="l00060"></a>00060 <a name="l00061"></a>00061 <a name="l00063"></a><a class="code" href="classitk_1_1GradientRecursiveGaussianImageFilter.html#bebcefa9d54eb2523d4134b580d5e9ba">00063</a> <span class="keyword">typedef</span> TInputImage <a class="code" href="namespaceHardConnectedComponentImageFilter.html#3742cbac150bee74daa9aab85ed80623">InputImageType</a>; <a name="l00064"></a><a class="code" href="classitk_1_1GradientRecursiveGaussianImageFilter.html#186de0250dbdae69f76ac75cd514fc18">00064</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> TInputImage::PixelType PixelType; <a name="l00065"></a><a class="code" href="classitk_1_1GradientRecursiveGaussianImageFilter.html#84396de1be9e70df17968f427c61232c">00065</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> NumericTraits<PixelType>::RealType RealType; <a name="l00066"></a>00066 <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 TInputImage::ImageDimension); <a name="l00071"></a>00071 <a name="l00076"></a><a class="code" href="classitk_1_1GradientRecursiveGaussianImageFilter.html#2cb1e127c08014dc90e092a28c730516">00076</a> <span class="keyword">typedef</span> <span class="keywordtype">float</span> InternalRealType; <a name="l00077"></a>00077 <span class="keyword">typedef</span> <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">Image</a><InternalRealType, <a name="l00078"></a><a class="code" href="classitk_1_1GradientRecursiveGaussianImageFilter.html#0ca55429f5210baac4efea1037ff75c0">00078</a> <a class="code" href="itkMacro_8h.html#94ef2dc11d52c8ef0a78e34558feb8cb">itkGetStaticConstMacro</a>(ImageDimension) > <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">RealImageType</a>; <a name="l00079"></a>00079 <a name="l00080"></a>00080 <a name="l00085"></a>00085 <span class="keyword">typedef</span> <a class="code" href="classitk_1_1NthElementImageAdaptor.html" title="Presents an image as being composed of the N-th element of its pixels.">NthElementImageAdaptor</a>< TOutputImage, <a name="l00086"></a><a class="code" href="classitk_1_1GradientRecursiveGaussianImageFilter.html#76213ac9d6d54a601e72ff4cfd4c19e2">00086</a> InternalRealType > <a class="code" href="classitk_1_1NthElementImageAdaptor.html" title="Presents an image as being composed of the N-th element of its pixels.">OutputImageAdaptorType</a>; <a name="l00087"></a><a class="code" href="classitk_1_1GradientRecursiveGaussianImageFilter.html#df130ca93a697ea4dd263c12ec0d1e12">00087</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">OutputImageAdaptorType::Pointer</a> <a class="code" href="classitk_1_1SmartPointer.html">OutputImageAdaptorPointer</a>; <a name="l00088"></a>00088 <a name="l00090"></a>00090 <span class="keyword">typedef</span> <a class="code" href="classitk_1_1RecursiveGaussianImageFilter.html" title="Base class for computing IIR convolution with an approximation of a Gaussian kernel...">RecursiveGaussianImageFilter</a>< <a name="l00091"></a>00091 <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">RealImageType</a>, <a name="l00092"></a>00092 <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">RealImageType</a> <a name="l00093"></a><a class="code" href="classitk_1_1GradientRecursiveGaussianImageFilter.html#342cd0a7c0e943a74c31ee931242da0e">00093</a> > <a class="code" href="classitk_1_1RecursiveGaussianImageFilter.html" title="Base class for computing IIR convolution with an approximation of a Gaussian kernel...">GaussianFilterType</a>; <a name="l00094"></a>00094 <a name="l00096"></a>00096 <span class="keyword">typedef</span> <a class="code" href="classitk_1_1RecursiveGaussianImageFilter.html" title="Base class for computing IIR convolution with an approximation of a Gaussian kernel...">RecursiveGaussianImageFilter</a>< <a name="l00097"></a>00097 <a class="code" href="namespaceHardConnectedComponentImageFilter.html#3742cbac150bee74daa9aab85ed80623">InputImageType</a>, <a name="l00098"></a>00098 <a class="code" href="classitk_1_1Image.html" title="Templated n-dimensional image class.">RealImageType</a> <a name="l00099"></a><a class="code" href="classitk_1_1GradientRecursiveGaussianImageFilter.html#5453caeee8b78e170d955dcd24faf242">00099</a> > <a class="code" href="classitk_1_1RecursiveGaussianImageFilter.html" title="Base class for computing IIR convolution with an approximation of a Gaussian kernel...">DerivativeFilterType</a>; <a name="l00100"></a>00100 <a name="l00101"></a>00101 <a name="l00103"></a><a class="code" href="classitk_1_1GradientRecursiveGaussianImageFilter.html#85663fc5748ed8e21ebe5af09a22d9cb">00103</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">GaussianFilterType::Pointer</a> <a class="code" href="classitk_1_1SmartPointer.html">GaussianFilterPointer</a>; <a name="l00104"></a>00104 <a name="l00106"></a><a class="code" href="classitk_1_1GradientRecursiveGaussianImageFilter.html#b64dc9ecb6f5221534aec3b5fbe357cd">00106</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">DerivativeFilterType::Pointer</a> <a class="code" href="classitk_1_1SmartPointer.html">DerivativeFilterPointer</a>; <a name="l00107"></a>00107 <a name="l00109"></a><a class="code" href="classitk_1_1GradientRecursiveGaussianImageFilter.html#f774aad62e830adf956080ee446157dd">00109</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="itkFEMMacro_8h.html#539cce1a3282ba59952dedcbf9cdb23f">TOutputImage::Pointer</a> OutputImagePointer; <a name="l00110"></a>00110 <a name="l00111"></a>00111 <a name="l00113"></a><a class="code" href="classitk_1_1GradientRecursiveGaussianImageFilter.html#592b203d0f4300c364a1dd5cd5a9d47a">00113</a> <span class="keyword">typedef</span> TOutputImage <a class="code" href="namespaceHardConnectedComponentImageFilter.html#386ea018cab3835dcdff2603f4d2280e">OutputImageType</a>; <a name="l00114"></a><a class="code" href="classitk_1_1GradientRecursiveGaussianImageFilter.html#95edc344486e07b6ca43b305ebb01f66">00114</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> OutputImageType::PixelType <a class="code" href="namespaceHardConnectedComponentImageFilter.html#73549c9066bb62470db248f27cde10d2">OutputPixelType</a>; <a name="l00115"></a><a class="code" href="classitk_1_1GradientRecursiveGaussianImageFilter.html#9f7cff9235d03dacbf73d77bd9d5362b">00115</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> PixelTraits<OutputPixelType>::ValueType OutputComponentType; <a name="l00116"></a>00116 <a name="l00118"></a>00118 <a class="code" href="itkMacro_8h.html#0fdc15685afa271857c57e7cd482f30c">itkNewMacro</a>(<a class="code" href="classitk_1_1GradientRecursiveGaussianImageFilter.html" title="Computes the gradient of an image by convolution with the first derivative of a Gaussian...">Self</a>); <a name="l00119"></a>00119 <a name="l00121"></a>00121 <a class="code" href="itkMacro_8h.html#574c1f86661d409dd32c742307a0e96a">itkTypeMacro</a>(<a class="code" href="classitk_1_1GradientRecursiveGaussianImageFilter.html" title="Computes the gradient of an image by convolution with the first derivative of a Gaussian...">GradientRecursiveGaussianImageFilter</a>, <a name="l00122"></a>00122 <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="l00123"></a>00123 <a name="l00125"></a>00125 <span class="keywordtype">void</span> SetSigma( RealType sigma ); <a name="l00126"></a>00126 <a name="l00128"></a>00128 <span class="keywordtype">void</span> SetNormalizeAcrossScale( <span class="keywordtype">bool</span> normalizeInScaleSpace ); <a name="l00129"></a>00129 <a class="code" href="itkMacro_8h.html#1600305bb01e39e87c472d8bf29bd1cf">itkGetMacro</a>( NormalizeAcrossScale, <span class="keywordtype">bool</span> ); <a name="l00131"></a>00131 <a name="l00137"></a>00137 <span class="keyword">virtual</span> <span class="keywordtype">void</span> GenerateInputRequestedRegion() throw(<a class="code" href="classitk_1_1InvalidRequestedRegionError.html">InvalidRequestedRegionError</a>); <a name="l00138"></a>00138 <a name="l00151"></a>00151 <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>( UseImageDirection, <span class="keywordtype">bool</span> ); <a name="l00152"></a>00152 <a class="code" href="itkMacro_8h.html#1600305bb01e39e87c472d8bf29bd1cf">itkGetMacro</a>( UseImageDirection, <span class="keywordtype">bool</span> ); <a name="l00153"></a>00153 <a class="code" href="itkMacro_8h.html#9e7d129ffebb09fd28bc213e02d87248">itkBooleanMacro</a>( UseImageDirection ); <a name="l00155"></a>00155 <a name="l00156"></a>00156 <span class="preprocessor">#ifdef ITK_USE_CONCEPT_CHECKING</span> <a name="l00157"></a>00157 <span class="preprocessor"></span> <a name="l00158"></a>00158 <a class="code" href="itkConceptChecking_8h.html#009eae6c305d9c390972159815e6a710">itkConceptMacro</a>(InputHasNumericTraitsCheck, <a name="l00159"></a>00159 (<a class="code" href="structitk_1_1Concept_1_1HasNumericTraits.html">Concept::HasNumericTraits<PixelType></a>)); <a name="l00160"></a>00160 <a class="code" href="itkConceptChecking_8h.html#009eae6c305d9c390972159815e6a710">itkConceptMacro</a>(OutputHasPixelTraitsCheck, <a name="l00161"></a>00161 (<a class="code" href="structitk_1_1Concept_1_1HasPixelTraits.html">Concept::HasPixelTraits<OutputPixelType></a>)); <a name="l00162"></a>00162 <a name="l00164"></a>00164 <span class="preprocessor">#endif</span> <a name="l00165"></a>00165 <span class="preprocessor"></span> <a name="l00166"></a>00166 <span class="keyword">protected</span>: <a name="l00167"></a>00167 <a class="code" href="classitk_1_1GradientRecursiveGaussianImageFilter.html" title="Computes the gradient of an image by convolution with the first derivative of a Gaussian...">GradientRecursiveGaussianImageFilter</a>(); <a name="l00168"></a><a class="code" href="classitk_1_1GradientRecursiveGaussianImageFilter.html#b57c4962b206249fb2b83391621834f8">00168</a> <span class="keyword">virtual</span> <a class="code" href="classitk_1_1GradientRecursiveGaussianImageFilter.html#b57c4962b206249fb2b83391621834f8">~GradientRecursiveGaussianImageFilter</a>() {}; <a name="l00169"></a>00169 <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="l00170"></a>00170 <a name="l00172"></a>00172 <span class="keywordtype">void</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#f75a5945cdd8315676941024a0b8c1e9">GenerateData</a>( <span class="keywordtype">void</span> ); <a name="l00173"></a>00173 <a name="l00174"></a>00174 <span class="comment">// Override since the filter produces the entire dataset</span> <a name="l00175"></a>00175 <span class="keywordtype">void</span> EnlargeOutputRequestedRegion(<a class="code" href="classitk_1_1DataObject.html" title="Base class for all data objects in ITK.">DataObject</a> *output); <a name="l00176"></a>00176 <a name="l00177"></a>00177 <span class="keyword">private</span>: <a name="l00178"></a>00178 <a class="code" href="classitk_1_1GradientRecursiveGaussianImageFilter.html" title="Computes the gradient of an image by convolution with the first derivative of a Gaussian...">GradientRecursiveGaussianImageFilter</a>(<span class="keyword">const</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ac7d0120fe5292cdcdddb6163b8cb150">Self</a>&); <span class="comment">//purposely not implemented</span> <a name="l00179"></a>00179 <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="l00180"></a>00180 <a name="l00181"></a>00181 std::vector<GaussianFilterPointer> m_SmoothingFilters; <a name="l00182"></a>00182 DerivativeFilterPointer m_DerivativeFilter; <a name="l00183"></a>00183 OutputImageAdaptorPointer m_ImageAdaptor; <a name="l00184"></a>00184 <a name="l00186"></a>00186 <span class="keywordtype">bool</span> m_NormalizeAcrossScale; <a name="l00187"></a>00187 <a name="l00189"></a>00189 <span class="keywordtype">bool</span> m_UseImageDirection; <a name="l00190"></a>00190 }; <a name="l00191"></a>00191 <a name="l00192"></a>00192 } <span class="comment">// end namespace itk</span> <a name="l00193"></a>00193 <a name="l00194"></a>00194 <span class="preprocessor">#ifndef ITK_MANUAL_INSTANTIATION</span> <a name="l00195"></a>00195 <span class="preprocessor"></span><span class="preprocessor">#include "itkGradientRecursiveGaussianImageFilter.txx"</span> <a name="l00196"></a>00196 <span class="preprocessor">#endif</span> <a name="l00197"></a>00197 <span class="preprocessor"></span> <a name="l00198"></a>00198 <span class="preprocessor">#endif</span> <a name="l00199"></a>00199 <span class="preprocessor"></span> </pre></div></div> <hr><address><small> Generated at Thu May 7 22:51:00 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>