<!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: itkExtractOrthogonalSwath2DImageFilter.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>itkExtractOrthogonalSwath2DImageFilter.h</h1><a href="itkExtractOrthogonalSwath2DImageFilter_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: itkExtractOrthogonalSwath2DImageFilter.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:34 $</span> <a name="l00007"></a>00007 <span class="comment"> Version: $Revision: 1.7 $</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 __itkExtractOrthogonalSwath2DImageFilter_h</span> <a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define __itkExtractOrthogonalSwath2DImageFilter_h</span> <a name="l00019"></a>00019 <span class="preprocessor"></span> <a name="l00020"></a>00020 <span class="preprocessor">#include "<a class="code" href="itkImageAndPathToImageFilter_8h.html">itkImageAndPathToImageFilter.h</a>"</span> <a name="l00021"></a>00021 <span class="preprocessor">#include "<a class="code" href="itkParametricPath_8h.html">itkParametricPath.h</a>"</span> <a name="l00022"></a>00022 <a name="l00023"></a>00023 <span class="keyword">namespace </span>itk <a name="l00024"></a>00024 { <a name="l00025"></a>00025 <a name="l00040"></a>00040 <span class="keyword">template</span> <<span class="keyword">class</span> TImage> <a name="l00041"></a><a class="code" href="classitk_1_1ExtractOrthogonalSwath2DImageFilter.html">00041</a> <span class="keyword">class </span><a class="code" href="itkWin32Header_8h.html#7d4384322557205d75f0719c012dded6">ITK_EXPORT</a> <a class="code" href="classitk_1_1ExtractOrthogonalSwath2DImageFilter.html" title="Extracts into rectangular form a &quot;swath&quot; image from the input image along...">ExtractOrthogonalSwath2DImageFilter</a> : <span class="keyword">public</span> <a name="l00042"></a>00042 <a class="code" href="classitk_1_1ImageAndPathToImageFilter.html" title="Base class for filters that take both a path and an image as input and produce a...">ImageAndPathToImageFilter</a><TImage,ParametricPath<2>,TImage> <a name="l00043"></a>00043 { <a name="l00044"></a>00044 <span class="keyword">public</span>: <a name="l00046"></a><a class="code" href="classitk_1_1ExtractOrthogonalSwath2DImageFilter.html#cf607e171cee58b3c6c2e3c75bc6e267">00046</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1ExtractOrthogonalSwath2DImageFilter.html" title="Extracts into rectangular form a &quot;swath&quot; image from the input image along...">ExtractOrthogonalSwath2DImageFilter</a> <a class="code" href="classitk_1_1ExtractOrthogonalSwath2DImageFilter.html" title="Extracts into rectangular form a &quot;swath&quot; image from the input image along...">Self</a>; <a name="l00047"></a>00047 <span class="keyword">typedef</span> <a class="code" href="classitk_1_1ImageAndPathToImageFilter.html" title="Base class for filters that take both a path and an image as input and produce a...">ImageAndPathToImageFilter<TImage,ParametricPath<2></a>,TImage> <a name="l00048"></a><a class="code" href="classitk_1_1ExtractOrthogonalSwath2DImageFilter.html#ef3eeb5f778b919da0a9c36c3a732ae2">00048</a> <a class="code" href="classitk_1_1ImageAndPathToImageFilter.html">Superclass</a>; <a name="l00049"></a><a class="code" href="classitk_1_1ExtractOrthogonalSwath2DImageFilter.html#8d762421440dae095744aadfdfee51c3">00049</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="l00050"></a><a class="code" href="classitk_1_1ExtractOrthogonalSwath2DImageFilter.html#89d618a69fcbf36460ccad6c4eef1c8a">00050</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="l00051"></a>00051 <a name="l00053"></a>00053 <a class="code" href="itkMacro_8h.html#0fdc15685afa271857c57e7cd482f30c">itkNewMacro</a>(<a class="code" href="classitk_1_1ExtractOrthogonalSwath2DImageFilter.html" title="Extracts into rectangular form a &quot;swath&quot; image from the input image along...">Self</a>); <a name="l00054"></a>00054 <a name="l00056"></a><a class="code" href="classitk_1_1ExtractOrthogonalSwath2DImageFilter.html#9805ee5a0919dbed0e4ff9b481b4745c">00056</a> <a class="code" href="itkMacro_8h.html#574c1f86661d409dd32c742307a0e96a">itkTypeMacro</a>(<a class="code" href="classitk_1_1ExtractOrthogonalSwath2DImageFilter.html" title="Extracts into rectangular form a &quot;swath&quot; image from the input image along...">ExtractOrthogonalSwath2DImageFilter</a>, <a class="code" href="classitk_1_1ImageAndPathToImageFilter.html" title="Base class for filters that take both a path and an image as input and produce a...">ImageAndPathToImageFilter</a>); <a name="l00057"></a>00057 <a name="l00059"></a>00059 <span class="keyword">typedef</span> TImage ImageType; <a name="l00060"></a><a class="code" href="classitk_1_1ExtractOrthogonalSwath2DImageFilter.html#025cfe8088327d5ad9a6888d7f8c543d">00060</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="itkFEMMacro_8h.html#539cce1a3282ba59952dedcbf9cdb23f">ImageType::Pointer</a> ImagePointer; <a name="l00061"></a><a class="code" href="classitk_1_1ExtractOrthogonalSwath2DImageFilter.html#beab718be677645217b5726bc6f73e07">00061</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="itkFEMMacro_8h.html#68fafcc6909430ccd70cbc4aeee0107c">ImageType::ConstPointer</a> ImageConstPointer; <a name="l00062"></a><a class="code" href="classitk_1_1ExtractOrthogonalSwath2DImageFilter.html#302df943e3767f8c9d5efe00e32b9f81">00062</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ed8c4a40607d317c666eb96ea265e126">ImageType::RegionType</a> ImageRegionType; <a name="l00063"></a><a class="code" href="classitk_1_1ExtractOrthogonalSwath2DImageFilter.html#c467fbf5489512f5480e858d18260abe">00063</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#be32dc19e71d40322ad9828b9ab40853">ImageType::IndexType</a> ImageIndexType; <a name="l00064"></a><a class="code" href="classitk_1_1ExtractOrthogonalSwath2DImageFilter.html#912c586cd5c05cacfd7dd1b2d4d4b47a">00064</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> ImageType::PixelType ImagePixelType; <a name="l00065"></a><a class="code" href="classitk_1_1ExtractOrthogonalSwath2DImageFilter.html#45f564ab0ef38f23b5aea5fd16912e25">00065</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1ParametricPath.html">ParametricPath<2></a> <a class="code" href="classitk_1_1ParametricPath.html">PathType</a>; <a name="l00066"></a><a class="code" href="classitk_1_1ExtractOrthogonalSwath2DImageFilter.html#e87632836c2f98317e13f069a95ef976">00066</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1SmartPointer.html">PathType::ConstPointer</a> <a class="code" href="classitk_1_1SmartPointer.html">PathConstPointer</a>; <a name="l00067"></a><a class="code" href="classitk_1_1ExtractOrthogonalSwath2DImageFilter.html#261dd2f4f4cd5351944dfacb50cef438">00067</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> PathType::InputType PathInputType; <a name="l00068"></a><a class="code" href="classitk_1_1ExtractOrthogonalSwath2DImageFilter.html#2dacba6d9391380503dc9b00cf5cfc4b">00068</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> PathType::OutputType PathOutputType; <a name="l00069"></a><a class="code" href="classitk_1_1ExtractOrthogonalSwath2DImageFilter.html#dfc4a21378cf64a0872ad2c521787f8a">00069</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1Index.html">PathType::IndexType</a> <a class="code" href="classitk_1_1Index.html">PathIndexType</a>; <a name="l00070"></a><a class="code" href="classitk_1_1ExtractOrthogonalSwath2DImageFilter.html#35d44b666ecf4248773f5118c28c34ca">00070</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1ContinuousIndex.html" title="A templated class holding a point in n-Dimensional image space.">PathType::ContinuousIndexType</a> <a class="code" href="classitk_1_1ContinuousIndex.html" title="A templated class holding a point in n-Dimensional image space.">PathContinuousIndexType</a>; <a name="l00071"></a><a class="code" href="classitk_1_1ExtractOrthogonalSwath2DImageFilter.html#fc2f8b96c4610da44a19d3e9964a3b83">00071</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1Offset.html">PathType::OffsetType</a> <a class="code" href="classitk_1_1Offset.html">PathOffsetType</a>; <a name="l00072"></a><a class="code" href="classitk_1_1ExtractOrthogonalSwath2DImageFilter.html#f531eff1bd53e568509826dc2f5275af">00072</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="classitk_1_1Vector.html">PathType::VectorType</a> <a class="code" href="classitk_1_1Vector.html">PathVectorType</a>; <a name="l00073"></a><a class="code" href="classitk_1_1ExtractOrthogonalSwath2DImageFilter.html#a9239d0bd08b2816346b569bf4b9d813">00073</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#5bf82236e1e50e653de84c8ead448599">ImageType::SizeType</a> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#5bf82236e1e50e653de84c8ead448599">SizeType</a>; <a name="l00074"></a>00074 <a name="l00075"></a>00075 <a name="l00077"></a>00077 <a class="code" href="itkMacro_8h.html#1905cf6b2e88235996fa7ff73b2fb0eb">itkStaticConstMacro</a>(PathDimension, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>, <a name="l00078"></a>00078 2); <a name="l00079"></a>00079 <a class="code" href="itkMacro_8h.html#1905cf6b2e88235996fa7ff73b2fb0eb">itkStaticConstMacro</a>(ImageDimension, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>, <a name="l00080"></a>00080 TImage::ImageDimension); <a name="l00082"></a>00082 <a name="l00089"></a>00089 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetSpacing(<span class="keyword">const</span> <span class="keywordtype">double</span>* spacing); <a name="l00090"></a>00090 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetSpacing(<span class="keyword">const</span> <span class="keywordtype">float</span>* spacing); <a name="l00091"></a>00091 <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">double</span>* GetSpacing() <span class="keyword">const</span>; <a name="l00093"></a>00093 <a name="l00098"></a>00098 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetOrigin(<span class="keyword">const</span> <span class="keywordtype">double</span>* origin); <a name="l00099"></a>00099 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetOrigin(<span class="keyword">const</span> <span class="keywordtype">float</span>* origin); <a name="l00100"></a>00100 <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">double</span> * GetOrigin() <span class="keyword">const</span>; <a name="l00102"></a>00102 <a name="l00104"></a>00104 <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="namespaceHardConnectedComponentImageFilter.html#5bf82236e1e50e653de84c8ead448599">SizeType</a> ) <a name="l00105"></a>00105 <a name="l00106"></a>00106 <a name="l00108"></a>00108 <a class="code" href="itkMacro_8h.html#7ebdd33cc5e7d74720ced9099c034faa">itkSetMacro</a>( DefaultPixelValue, ImagePixelType ) <a name="l00109"></a>00109 <a name="l00110"></a>00110 <span class="comment">//--------------------------------------------------------------------------</span> <a name="l00111"></a>00111 <span class="comment">//</span> <a name="l00112"></a>00112 <a name="l00114"></a><a class="code" href="classitk_1_1ExtractOrthogonalSwath2DImageFilter.html#70657cb0beda16e3c4fb79f55b88cfbe">00114</a> virtual <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="l00115"></a>00115 { <a name="l00116"></a>00116 output->SetRequestedRegionToLargestPossibleRegion(); <a name="l00117"></a>00117 } <a name="l00118"></a>00118 <a name="l00119"></a>00119 <span class="comment">//</span> <a name="l00120"></a>00120 <span class="comment">//--------------------------------------------------------------------------</span> <a name="l00121"></a>00121 <a name="l00122"></a>00122 <span class="keyword">protected</span>: <a name="l00123"></a><a class="code" href="classitk_1_1ExtractOrthogonalSwath2DImageFilter.html#2ed26e3b19387da78c87cc82fd1115aa">00123</a> <a class="code" href="classitk_1_1ExtractOrthogonalSwath2DImageFilter.html" title="Extracts into rectangular form a &quot;swath&quot; image from the input image along...">ExtractOrthogonalSwath2DImageFilter</a>() <a name="l00124"></a>00124 { <a name="l00125"></a>00125 m_DefaultPixelValue = NumericTraits<ImagePixelType>::Zero; <a name="l00126"></a>00126 m_Size[0] = 512; <a name="l00127"></a>00127 m_Size[1] = 16*2+1; <span class="comment">// must be odd</span> <a name="l00128"></a>00128 m_Origin[0] = m_Origin[1] = 0.0; <a name="l00129"></a>00129 m_Spacing[0] = m_Spacing[1] = 1.0; <a name="l00130"></a>00130 } <a name="l00131"></a><a class="code" href="classitk_1_1ExtractOrthogonalSwath2DImageFilter.html#308c1a355c270b1770f6d2abdab79757">00131</a> <span class="keyword">virtual</span> <a class="code" href="classitk_1_1ExtractOrthogonalSwath2DImageFilter.html#308c1a355c270b1770f6d2abdab79757">~ExtractOrthogonalSwath2DImageFilter</a>() {}; <a name="l00132"></a>00132 <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="l00133"></a>00133 <a name="l00134"></a>00134 <span class="comment">//--------------------------------------------------------------------------</span> <a name="l00135"></a>00135 <span class="comment">//</span> <a name="l00136"></a>00136 <a name="l00138"></a>00138 <span class="keyword">virtual</span> <span class="keywordtype">void</span> GenerateOutputInformation(<span class="keywordtype">void</span>); <a name="l00139"></a>00139 <a name="l00141"></a><a class="code" href="classitk_1_1ExtractOrthogonalSwath2DImageFilter.html#75e0ec4d697c9d7e9fd70dfbfd89585c">00141</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> GenerateInputRequestedRegion() <a name="l00142"></a>00142 { <a name="l00143"></a>00143 Superclass::GenerateInputRequestedRegion(); <a name="l00144"></a>00144 ( <span class="keyword">const_cast<</span> ImageType * <span class="keyword">></span> (this->GetImageInput()) ) -> <a name="l00145"></a>00145 SetRequestedRegionToLargestPossibleRegion(); <a name="l00146"></a>00146 ( <span class="keyword">const_cast<</span> <a class="code" href="classitk_1_1ParametricPath.html">PathType</a> * <span class="keyword">></span> (this->GetPathInput()) ) -> <a name="l00147"></a>00147 SetRequestedRegionToLargestPossibleRegion(); <a name="l00148"></a>00148 } <a name="l00150"></a>00150 <a name="l00151"></a>00151 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#f75a5945cdd8315676941024a0b8c1e9">GenerateData</a>(<span class="keywordtype">void</span>); <a name="l00152"></a>00152 <a name="l00153"></a>00153 <span class="comment">//</span> <a name="l00154"></a>00154 <span class="comment">//--------------------------------------------------------------------------</span> <a name="l00155"></a>00155 <a name="l00156"></a>00156 <span class="keyword">private</span>: <a name="l00157"></a>00157 <a class="code" href="classitk_1_1ExtractOrthogonalSwath2DImageFilter.html" title="Extracts into rectangular form a &quot;swath&quot; image from the input image along...">ExtractOrthogonalSwath2DImageFilter</a>(<span class="keyword">const</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ac7d0120fe5292cdcdddb6163b8cb150">Self</a>&); <span class="comment">//purposely not implemented</span> <a name="l00158"></a>00158 <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="l00159"></a>00159 <a name="l00160"></a>00160 ImagePixelType m_DefaultPixelValue; <a name="l00161"></a>00161 <a class="code" href="namespaceHardConnectedComponentImageFilter.html#5bf82236e1e50e653de84c8ead448599">SizeType</a> m_Size; <a name="l00162"></a>00162 <span class="keywordtype">double</span> m_Origin[ImageDimension]; <a name="l00163"></a>00163 <span class="keywordtype">double</span> m_Spacing[ImageDimension]; <a name="l00164"></a>00164 }; <a name="l00165"></a>00165 <a name="l00166"></a>00166 } <span class="comment">// end namespace itk</span> <a name="l00167"></a>00167 <a name="l00168"></a>00168 <span class="preprocessor">#ifndef ITK_MANUAL_INSTANTIATION</span> <a name="l00169"></a>00169 <span class="preprocessor"></span><span class="preprocessor">#include "itkExtractOrthogonalSwath2DImageFilter.txx"</span> <a name="l00170"></a>00170 <span class="preprocessor">#endif</span> <a name="l00171"></a>00171 <span class="preprocessor"></span> <a name="l00172"></a>00172 <span class="preprocessor">#endif</span> <a name="l00173"></a>00173 <span class="preprocessor"></span> </pre></div></div> <hr><address><small> Generated at Thu May 7 22:39:37 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>