<!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: itkImageRegionIteratorWithIndex.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_ea7fc529ede9a38b0438cf13831ae873.html">Common</a> </div> <div class="contents"> <h1>itkImageRegionIteratorWithIndex.h</h1><a href="itkImageRegionIteratorWithIndex_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: itkImageRegionIteratorWithIndex.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-18 21:13:25 $</span> <a name="l00007"></a>00007 <span class="comment"> Version: $Revision: 1.12 $</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 __itkImageRegionIteratorWithIndex_h</span> <a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define __itkImageRegionIteratorWithIndex_h</span> <a name="l00019"></a>00019 <span class="preprocessor"></span> <a name="l00020"></a>00020 <span class="preprocessor">#include "<a class="code" href="itkImageRegionConstIteratorWithIndex_8h.html">itkImageRegionConstIteratorWithIndex.h</a>"</span> <a name="l00021"></a>00021 <span class="preprocessor">#include "<a class="code" href="itkImageIteratorWithIndex_8h.html">itkImageIteratorWithIndex.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="l00064"></a>00064 <span class="keyword">template</span><<span class="keyword">typename</span> TImage> <a name="l00065"></a><a class="code" href="classitk_1_1ImageRegionIteratorWithIndex.html">00065</a> <span class="keyword">class </span><a class="code" href="itkWin32Header_8h.html#7d4384322557205d75f0719c012dded6">ITK_EXPORT</a> <a class="code" href="classitk_1_1ImageRegionIteratorWithIndex.html" title="A multi-dimensional iterator templated over image type that walks pixels within a...">ImageRegionIteratorWithIndex</a> : <span class="keyword">public</span> <a class="code" href="classitk_1_1ImageRegionConstIteratorWithIndex.html" title="A multi-dimensional iterator templated over image type that walks an image region...">ImageRegionConstIteratorWithIndex</a><TImage> <a name="l00066"></a>00066 { <a name="l00067"></a>00067 <span class="keyword">public</span>: <a name="l00069"></a><a class="code" href="classitk_1_1ImageRegionIteratorWithIndex.html#fc57eec7e9a9c92569a51f2e1cb8407d">00069</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1ImageRegionIteratorWithIndex.html" title="A multi-dimensional iterator templated over image type that walks pixels within a...">ImageRegionIteratorWithIndex</a> <a class="code" href="classitk_1_1ImageRegionIteratorWithIndex.html" title="A multi-dimensional iterator templated over image type that walks pixels within a...">Self</a>; <a name="l00070"></a><a class="code" href="classitk_1_1ImageRegionIteratorWithIndex.html#464c88fc6ccac8da15f37df36c78f153">00070</a> <span class="keyword">typedef</span> <a class="code" href="classitk_1_1ImageRegionConstIteratorWithIndex.html">ImageRegionConstIteratorWithIndex<TImage></a> <a class="code" href="classitk_1_1ImageRegionConstIteratorWithIndex.html">Superclass</a>; <a name="l00071"></a>00071 <a name="l00073"></a><a class="code" href="classitk_1_1ImageRegionIteratorWithIndex.html#8a408d9a02273dae3dbb62bd264c57ac">00073</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#be32dc19e71d40322ad9828b9ab40853">Superclass::IndexType</a> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#be32dc19e71d40322ad9828b9ab40853">IndexType</a>; <a name="l00074"></a><a class="code" href="classitk_1_1ImageRegionIteratorWithIndex.html#d9a992e948dce66e773d8509363eccb0">00074</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::IndexValueType IndexValueType; <a name="l00075"></a><a class="code" href="classitk_1_1ImageRegionIteratorWithIndex.html#3113ded993d9eeced91e53b28fe85ea6">00075</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#5bf82236e1e50e653de84c8ead448599">Superclass::SizeType</a> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#5bf82236e1e50e653de84c8ead448599">SizeType</a>; <a name="l00076"></a><a class="code" href="classitk_1_1ImageRegionIteratorWithIndex.html#d7e81983413a07aba61f409367073fd0">00076</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::SizeValueType SizeValueType; <a name="l00077"></a><a class="code" href="classitk_1_1ImageRegionIteratorWithIndex.html#2db21db09e4df4b839464f27ef6c2203">00077</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::OffsetType OffsetType; <a name="l00078"></a><a class="code" href="classitk_1_1ImageRegionIteratorWithIndex.html#c7021fd049fdebe9cefd678eec6147c7">00078</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::OffsetValueType OffsetValueType; <a name="l00079"></a><a class="code" href="classitk_1_1ImageRegionIteratorWithIndex.html#7723652456e1bce1352ff1f66ac797f1">00079</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ed8c4a40607d317c666eb96ea265e126">Superclass::RegionType</a> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ed8c4a40607d317c666eb96ea265e126">RegionType</a>; <a name="l00080"></a><a class="code" href="classitk_1_1ImageRegionIteratorWithIndex.html#0fead70e44e9696f0693d80b8c682044">00080</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::ImageType ImageType; <a name="l00081"></a><a class="code" href="classitk_1_1ImageRegionIteratorWithIndex.html#6fdeee27eed135a650af6dd3f5e5eb6e">00081</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::PixelContainer PixelContainer; <a name="l00082"></a><a class="code" href="classitk_1_1ImageRegionIteratorWithIndex.html#85d179cab157a78ca6c45c1474207c0a">00082</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::PixelContainerPointer PixelContainerPointer; <a name="l00083"></a><a class="code" href="classitk_1_1ImageRegionIteratorWithIndex.html#afd99f94b902c094666d536cc6fe8cf7">00083</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::InternalPixelType InternalPixelType; <a name="l00084"></a><a class="code" href="classitk_1_1ImageRegionIteratorWithIndex.html#4a711b644e2981875d2d165d18d4025a">00084</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::PixelType PixelType; <a name="l00085"></a><a class="code" href="classitk_1_1ImageRegionIteratorWithIndex.html#e289c1a666db412fec3a74527d994e0a">00085</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> Superclass::AccessorType AccessorType; <a name="l00086"></a>00086 <a name="l00087"></a>00087 <a name="l00089"></a>00089 <a class="code" href="classitk_1_1ImageRegionIteratorWithIndex.html" title="A multi-dimensional iterator templated over image type that walks pixels within a...">ImageRegionIteratorWithIndex</a>(); <a name="l00090"></a>00090 <a name="l00093"></a>00093 <a class="code" href="classitk_1_1ImageRegionIteratorWithIndex.html" title="A multi-dimensional iterator templated over image type that walks pixels within a...">ImageRegionIteratorWithIndex</a>(TImage *ptr, <span class="keyword">const</span> <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ed8c4a40607d317c666eb96ea265e126">RegionType</a>& region); <a name="l00094"></a>00094 <a name="l00101"></a>00101 <a class="code" href="classitk_1_1ImageRegionIteratorWithIndex.html" title="A multi-dimensional iterator templated over image type that walks pixels within a...">ImageRegionIteratorWithIndex</a>( <span class="keyword">const</span> <a class="code" href="classitk_1_1ImageIteratorWithIndex.html" title="A base class for multi-dimensional iterators templated over image type that are designed...">ImageIteratorWithIndex<TImage></a> &it); <a name="l00102"></a>00102 <a name="l00104"></a><a class="code" href="classitk_1_1ImageRegionIteratorWithIndex.html#2e893b9e0d052be50c2ea156f0e5013c">00104</a> <span class="keywordtype">void</span> Set( <span class="keyword">const</span> PixelType & value)<span class="keyword"> const </span> <a name="l00105"></a>00105 <span class="keyword"> </span>{ this->m_PixelAccessorFunctor.Set(*(const_cast<InternalPixelType *>(this->m_Position)),value); } <a name="l00106"></a>00106 <a name="l00110"></a><a class="code" href="classitk_1_1ImageRegionIteratorWithIndex.html#e629b35e6c90f03bd3b1461a88691a86">00110</a> PixelType & Value(<span class="keywordtype">void</span>) <a name="l00111"></a>00111 { <span class="keywordflow">return</span> *(<span class="keyword">const_cast<</span>InternalPixelType *<span class="keyword">></span>(this->m_Position)); } <a name="l00112"></a>00112 <a name="l00113"></a>00113 <span class="keyword">protected</span>: <a name="l00116"></a>00116 <a class="code" href="classitk_1_1ImageRegionIteratorWithIndex.html" title="A multi-dimensional iterator templated over image type that walks pixels within a...">ImageRegionIteratorWithIndex</a>( <span class="keyword">const</span> <a class="code" href="classitk_1_1ImageRegionConstIteratorWithIndex.html">ImageRegionConstIteratorWithIndex<TImage></a> &it); <a name="l00117"></a>00117 <a class="code" href="namespaceHardConnectedComponentImageFilter.html#ac7d0120fe5292cdcdddb6163b8cb150">Self</a> &operator=(<span class="keyword">const</span> <a class="code" href="classitk_1_1ImageRegionConstIteratorWithIndex.html">ImageRegionConstIteratorWithIndex<TImage></a> & it); <a name="l00119"></a>00119 <a name="l00120"></a>00120 }; <a name="l00121"></a>00121 <a name="l00122"></a>00122 } <span class="comment">// end namespace itk</span> <a name="l00123"></a>00123 <a name="l00124"></a>00124 <span class="comment">// Define instantiation macro for this template.</span> <a name="l00125"></a><a class="code" href="itkImageRegionIteratorWithIndex_8h.html#8c2e8503be500af963d8452c9dd05815">00125</a> <span class="preprocessor">#define ITK_TEMPLATE_ImageRegionIteratorWithIndex(_, EXPORT, x, y) namespace itk { \</span> <a name="l00126"></a>00126 <span class="preprocessor"> _(1(class EXPORT ImageRegionIteratorWithIndex< ITK_TEMPLATE_1 x >)) \</span> <a name="l00127"></a>00127 <span class="preprocessor"> namespace Templates { typedef ImageRegionIteratorWithIndex< ITK_TEMPLATE_1 x > ImageRegionIteratorWithIndex##y; } \</span> <a name="l00128"></a>00128 <span class="preprocessor"> }</span> <a name="l00129"></a>00129 <span class="preprocessor"></span> <a name="l00130"></a>00130 <a name="l00131"></a>00131 <span class="preprocessor">#if ITK_TEMPLATE_EXPLICIT</span> <a name="l00132"></a>00132 <span class="preprocessor"></span><span class="preprocessor"># include "Templates/itkImageRegionIteratorWithIndex+-.h"</span> <a name="l00133"></a>00133 <span class="preprocessor">#endif</span> <a name="l00134"></a>00134 <span class="preprocessor"></span> <a name="l00135"></a>00135 <span class="preprocessor">#if ITK_TEMPLATE_TXX</span> <a name="l00136"></a>00136 <span class="preprocessor"></span><span class="preprocessor"># include "itkImageRegionIteratorWithIndex.txx"</span> <a name="l00137"></a>00137 <span class="preprocessor">#endif</span> <a name="l00138"></a>00138 <span class="preprocessor"></span> <a name="l00139"></a>00139 <span class="preprocessor">#endif </span> <a name="l00140"></a>00140 <span class="preprocessor"></span> </pre></div></div> <hr><address><small> Generated at Thu May 7 23:09:59 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>